1
0
mirror of git://repo.or.cz/rocks.git synced 2024-09-30 08:10:39 +02:00
rocks/geologica.lua

125 lines
4.6 KiB
Lua
Raw Normal View History

2015-01-10 15:46:45 +01:00
local CcHard=3
local CcStrong=3
local CcMed=3
local CcSoft=3
--
-- Main rocks (top to bottom)
--
-- Granite In/Felsic hard Very common, below sed on land
minetest.register_node( "rocks:granite", {
description = S("Granite"),
2015-01-11 11:16:16 +01:00
tiles = { "rocks_Granite.png" },
2015-01-10 15:46:45 +01:00
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
groups = {cracky=CcStrong, stone=1},
})
2015-01-11 11:16:16 +01:00
rocks.register_layer( "granite",{ gain=20, height=-55, limit=2, seed=1 }, "rocks:granite")
2015-01-10 15:46:45 +01:00
-- Diorite In/Inter vhard Below granite
minetest.register_node( "rocks:diorite", {
description = S("Diorite"),
2015-01-11 11:16:16 +01:00
tiles = { "rocks_Diorite.png" },
2015-01-10 15:46:45 +01:00
groups = {cracky=CcHard, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
2015-01-11 11:16:16 +01:00
rocks.register_layer( "diorite",{ gain=20, height=-80, limit=2, seed=2 }, "rocks:diorite")
2015-01-10 15:46:45 +01:00
-- Basalt Ex/Mafic hard same as diorite, byt limit=0.5
minetest.register_node( "rocks:basalt", {
description = S("Basalt"),
2015-01-11 11:16:16 +01:00
tiles = { "rocks_Basalt.png" },
2015-01-10 15:46:45 +01:00
groups = {cracky=CcStrong, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
2015-01-11 11:16:16 +01:00
rocks.register_layer( "basalt",{ gain=20, height=-75, limit=-0.7, seed=2 }, "rocks:basalt")
2015-01-10 15:46:45 +01:00
-- Gabbro In/Mafic vhard Below basalt/diorite (mtns, ocean)
minetest.register_node( "rocks:gabbro", {
description = S("Gabbro"),
2015-01-11 11:16:16 +01:00
tiles = { "rocks_Gabbro.png" },
2015-01-10 15:46:45 +01:00
groups = {cracky=CcHard, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
2015-01-11 11:16:16 +01:00
rocks.register_layer( "gabbro",{ gain=20, height=-120, limit=2, seed=3 }, "rocks:gabbro")
2015-01-10 15:46:45 +01:00
-- Peridotite In/UMafic vhard Rarely under gabbro
minetest.register_node( "rocks:peridotite", {
description = S("Peridotite"),
2015-01-11 11:16:16 +01:00
tiles = { "rocks_Peridotite.png" },
2015-01-10 15:46:45 +01:00
groups = {cracky=CcStrong, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
2015-01-11 11:16:16 +01:00
rocks.register_layer( "peridotite",{ gain=20, height=-130, limit=-0.8, seed=4 }, "rocks:peridotite")
2015-01-10 15:46:45 +01:00
-- Komatiite Ex/UMafic - Too deep
2015-01-11 11:16:16 +01:00
minetest.register_node( "rocks:komatiite", {
description = S("Komatiite"),
tiles = { "default_stone.png" }, -- no texture, yet
groups = {cracky=CcHard, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
rocks.register_layer( "komatiite",{ gain=20, height=-200, limit=2, seed=5 }, "rocks:komatiite")
2015-01-10 15:46:45 +01:00
--
2015-01-11 11:16:16 +01:00
-- top sedimentary rocks
2015-01-10 15:46:45 +01:00
--
-- Mudstone Sed soft Ocean, beach, river, glaciers
minetest.register_node( "rocks:mudstone", {
description = S("Mudstone"),
2015-01-11 11:16:16 +01:00
tiles = { "rocks_Mudstone.png" },
2015-01-10 15:46:45 +01:00
groups = {cracky=CcSoft, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
2015-02-08 17:13:50 +01:00
rocks.register_layer( "mudstone",{ gain=10, height=-13, limit=2, seed=4 }, "rocks:mudstone")
2015-01-10 15:46:45 +01:00
-- Slate MM/barro med Under mud/clay/siltstone
2015-01-11 11:16:16 +01:00
minetest.register_node( "rocks:slate", {
description = S("slate"),
tiles = { "rocks_Slate.png" },
groups = {cracky=CcMed, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
rocks.register_layer( "slate",{ gain=10, height=-15, limit=2, seed=5 }, "rocks:slate")
2015-01-10 15:46:45 +01:00
-- Schist MM/barro med Under slate, sometimes igneous
2015-01-11 11:16:16 +01:00
minetest.register_node( "rocks:schist", {
description = S("schist"),
tiles = { "rocks_Schist.png" },
groups = {cracky=CcMed, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
rocks.register_layer( "schist",{ gain=10, height=-18, limit=2, seed=5 }, "rocks:schist")
2015-01-10 15:46:45 +01:00
2015-01-11 11:16:16 +01:00
-- Gneiss MM/barro hard Under schist, sometimes igneous
minetest.register_node( "rocks:gneiss", {
description = S("gneiss"),
2015-01-11 11:18:33 +01:00
tiles = { "rocks_Gneiss.png" },
2015-01-11 11:16:16 +01:00
groups = {cracky=CcStrong, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
rocks.register_layer( "gneiss",{ gain=10, height=-21, limit=2, seed=6 }, "rocks:gneiss")
2015-01-10 15:46:45 +01:00
2015-01-11 11:16:16 +01:00
--
2015-01-10 15:46:45 +01:00
-- peak rocks
2015-01-11 11:16:16 +01:00
--
2015-01-10 15:46:45 +01:00
2015-01-11 11:16:16 +01:00
-- Rhyolite Ex/Felsic hard Mountains, top
minetest.register_node( "rocks:rhyolite", {
description = S("Rhyolite"),
tiles = { "rocks_Rhyolite.png" },
groups = {cracky=CcHard, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
rocks.register_layer( "rhyolite",{ gain=8, height=22, limit=2, seed=4 }, "rocks:rhyolite")
2015-01-10 15:46:45 +01:00
2015-01-11 11:16:16 +01:00
-- Andesite Ex/Inter hard Mountains, below rhyolite
minetest.register_node( "rocks:andesite", {
description = S("Andesite"),
tiles = { "rocks_Andesite.png" },
groups = {cracky=CcHard, stone=1},
is_ground_content = true, sounds = default.node_sound_stone_defaults(),
})
rocks.register_layer( "andesite",{ gain=8, height=10, limit=2, seed=4 }, "rocks:andesite")