diff --git a/mods/floatland/init.lua b/mods/floatland/init.lua index 4a53ba6..1372ff5 100644 --- a/mods/floatland/init.lua +++ b/mods/floatland/init.lua @@ -4,19 +4,15 @@ local mgv7_spflags = minetest.get_mapgen_setting("mgv7_spflags") or "mountains, ridges, floatlands, caverns" local captures_float = string.match(mgv7_spflags, "floatlands") local captures_nofloat = string.match(mgv7_spflags, "nofloatlands") -local floatland_y = minetest.get_mapgen_setting("mgv7_floatland_level") or 1280 +local floatland_y = minetest.get_mapgen_setting("mgv7_floatland_level") or 2280 local worldlimit = minetest.get_mapgen_setting("mapgen_limit") or 31000 -local mount_height = minetest.get_mapgen_setting("mgv7_float_mount_height") or 128 +local mount_height = minetest.get_mapgen_setting("mgv7_float_mount_height") or 256 local mount_dens = minetest.get_mapgen_setting("mgv7_float_mount_density") or 0.6 -- Make global for mods to use to register floatland biomes default.mgv7_floatland_level = floatland_y default.mgv7_shadow_limit = minetest.get_mapgen_setting("mgv7_shadow_limit") or 1024 --- Register the biome at the floatland level - -default.register_biomes(default.mgv7_shadow_limit - 1) - -- Registering of the nodes minetest.register_node("floatland:grass", { @@ -145,3 +141,13 @@ minetest.register_biome({ humidity_point = 50, }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"floatland:grass"}, + sidelen = 16, + fill_ratio = 0.5, + biomes = {"floatland_nicegrass"}, + y_min = floatland_y + 40, + y_max = worldlimit, + decoration = "default:bush_sapling", +})