-- Papyrus
+ -- Dirt version for rainforest swamp
+
minetest.register_decoration({
- name = "default:papyrus",
+ name = "default:papyrus_on_dirt",
deco_type = "schematic",
place_on = {"default:dirt"},
sidelen = 16,
octaves = 3,
persist = 0.7
},
- biomes = {"savanna_shore", "rainforest_swamp"},
+ biomes = {"rainforest_swamp"},
+ y_max = 0,
+ y_min = 0,
+ schematic = minetest.get_modpath("default") .. "/schematics/papyrus_on_dirt.mts",
+ })
+
+ -- Dry dirt version for savanna shore
+
+ minetest.register_decoration({
+ name = "default:papyrus_on_dry_dirt",
+ deco_type = "schematic",
+ place_on = {"default:dry_dirt"},
+ sidelen = 16,
+ noise_params = {
+ offset = -0.3,
+ scale = 0.7,
+ spread = {x = 200, y = 200, z = 200},
+ seed = 354,
+ octaves = 3,
+ persist = 0.7
+ },
+ biomes = {"savanna_shore"},
y_max = 0,
y_min = 0,
- schematic = minetest.get_modpath("default") .. "/schematics/papyrus.mts",
+ schematic = minetest.get_modpath("default") ..
+ "/schematics/papyrus_on_dry_dirt.mts",
})
-- Bush
-- Papyrus
-mts_save("papyrus", {
+mts_save("papyrus_on_dirt", {
size = {x = 1, y = 7, z = 1},
data = {
{name = "default:dirt", prob = 255, force_place = true},
},
})
+mts_save("papyrus_on_dry_dirt", {
+ size = {x = 1, y = 7, z = 1},
+ data = {
+ {name = "default:dry_dirt", prob = 255, force_place = true},
+ {name = "default:dry_dirt", prob = 255, force_place = true},
+ {name = "default:papyrus", prob = 255},
+ {name = "default:papyrus", prob = 255},
+ {name = "default:papyrus", prob = 255},
+ {name = "default:papyrus", prob = 255},
+ {name = "default:papyrus", prob = 255},
+ },
+ yslice_prob = {
+ {ypos = 2, prob = 127},
+ {ypos = 3, prob = 127},
+ },
+})
+
-- Bush