cavefern, fossil gen

This commit is contained in:
D00Med 2017-01-29 08:21:34 +10:00
parent 7135b1e525
commit 1cabf29e46
4 changed files with 233 additions and 131 deletions

View File

@ -428,6 +428,30 @@
y_max = -1024, y_max = -1024,
}) })
--fossils
minetest.register_ore({
ore_type = "scatter",
ore = "mapgen:stone_with_ammonite",
wherein = "default:stone",
clust_scarcity = 24 * 24 * 24,
clust_num_ores = 1,
clust_size = 1,
y_min = 625,
y_max = 31000,
})
minetest.register_ore({
ore_type = "scatter",
ore = "mapgen:stone_with_bone",
wherein = "default:stone",
clust_scarcity = 24 * 24 * 24,
clust_num_ores = 1,
clust_size = 1,
y_min = 625,
y_max = 31000,
})
minetest.clear_registered_biomes() minetest.clear_registered_biomes()
--Swamp --Swamp
@ -1894,6 +1918,23 @@ minetest.register_on_generated(function(minp, maxp)
end end
end) end)
minetest.register_on_generated(function(minp, maxp)
if maxp.y < -500 or maxp.y > 100 then
return
end
local dirt = minetest.find_nodes_in_area(minp, maxp,
{"default:stone"})
for n = 1, #dirt do
if math.random(1, 50) == 1 then
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
local num = math.random(1,2)
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "mapgen:cavefern"..num})
end
end
end
end)
minetest.register_on_generated(function(minp, maxp) minetest.register_on_generated(function(minp, maxp)
if maxp.y < -1000 or maxp.y > 20 then if maxp.y < -1000 or maxp.y > 20 then
return return

View File

@ -28,6 +28,8 @@ mapgen.register_fern("fern2", "Broad Leaf Fern", "2")
--nodes --nodes
--plants (PLNT01)
minetest.register_node("mapgen:dicksonia", { minetest.register_node("mapgen:dicksonia", {
description = "Dicksonia", description = "Dicksonia",
drawtype = "mesh", drawtype = "mesh",
@ -200,25 +202,44 @@ minetest.register_node("mapgen:dirt_with_junglegrass", {
sounds = default.node_sound_dirt_defaults() sounds = default.node_sound_dirt_defaults()
}) })
minetest.register_node("mapgen:granite", { minetest.register_node("mapgen:cavefern1", {
description = "Granite", description = "Cave Fern",
tiles = {"mapgen_granite.png"}, drawtype = "plantlike",
groups = {cracky = 2}, tiles = {
sounds = default.node_sound_stone_defaults() "mapgen_cavefern.png",
},
groups = {snappy=3, flammable=1, attatched_node=1, flora=1},
sounds = default.node_sound_leaves_defaults(),
is_ground_content=true,
buildable_to = true,
walkable = false,
inventory_image = "mapgen_cavefern.png",
paramtype = "light",
sunlight_propagates=true,
selection_box = {
type = "fixed",
fixed = {-0.5, 0.1, -0.5, 0.5, 0.5, 0.5}
},
}) })
minetest.register_node("mapgen:granite_brown", { minetest.register_node("mapgen:cavefern2", {
description = "Brown Granite", description = "Cave Fern",
tiles = {"mapgen_granite_brown.png"}, drawtype = "plantlike",
groups = {cracky = 2}, tiles = {
sounds = default.node_sound_stone_defaults() "mapgen_cavefern2.png",
}) },
groups = {snappy=3, flammable=1, attatched_node=1, flora=1},
minetest.register_node("mapgen:limestone", { sounds = default.node_sound_leaves_defaults(),
description = "Limestone", is_ground_content=true,
tiles = {"mapgen_limestone.png"}, buildable_to = true,
groups = {cracky = 2}, walkable = false,
sounds = default.node_sound_stone_defaults() inventory_image = "mapgen_cavefern2.png",
paramtype = "light",
sunlight_propagates=true,
selection_box = {
type = "fixed",
fixed = {-0.5, 0.1, -0.5, 0.5, 0.5, 0.5}
},
}) })
minetest.register_node("mapgen:palm_tree", { minetest.register_node("mapgen:palm_tree", {
@ -593,119 +614,6 @@ minetest.register_node("mapgen:swamp_grass_5", {
end, end,
}) })
minetest.register_node("mapgen:stalagtite", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite0.png"},
inventory_image = "mapgen_stalagmite0.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagtite1", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite1.png"},
inventory_image = "mapgen_stalagmite1.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("mapgen:stalagtite2", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite2.png"},
inventory_image = "mapgen_stalagmite2.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagtite3", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite3.png"},
inventory_image = "mapgen_stalagmite3.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagmite0", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite0.png^[transformFY"},
inventory_image = "mapgen_stalagmite0.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagmite1", {
description = "Stalagmite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"mapgen_stalagmite3.png^[transformFY"},
inventory_image = "mapgen_stalagmite3.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagmite2", {
description = "Stalagmite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"mapgen_stalagmite2.png^[transformFY"},
inventory_image = "mapgen_stalagmite2.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:vine", { minetest.register_node("mapgen:vine", {
description = "Vine", description = "Vine",
@ -941,6 +849,159 @@ minetest.register_node("mapgen:dead_grass_5", {
end, end,
}) })
--stone (STN02)
minetest.register_node("mapgen:stone_with_ammonite", {
description = "Stone with Ammonite",
tiles = {"mapgen_marine_fossil.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stone_with_bone", {
description = "Stone with Bone",
tiles = {"mapgen_land_fossil.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:granite", {
description = "Granite",
tiles = {"mapgen_granite.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:granite_brown", {
description = "Brown Granite",
tiles = {"mapgen_granite_brown.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:limestone", {
description = "Limestone",
tiles = {"mapgen_limestone.png"},
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagtite", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite0.png"},
inventory_image = "mapgen_stalagmite0.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagtite1", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite1.png"},
inventory_image = "mapgen_stalagmite1.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("mapgen:stalagtite2", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite2.png"},
inventory_image = "mapgen_stalagmite2.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagtite3", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite3.png"},
inventory_image = "mapgen_stalagmite3.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagmite0", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"mapgen_stalagmite0.png^[transformFY"},
inventory_image = "mapgen_stalagmite0.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagmite1", {
description = "Stalagmite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"mapgen_stalagmite3.png^[transformFY"},
inventory_image = "mapgen_stalagmite3.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
minetest.register_node("mapgen:stalagmite2", {
description = "Stalagmite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"mapgen_stalagmite2.png^[transformFY"},
inventory_image = "mapgen_stalagmite2.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults()
})
--crafting --crafting

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B