Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- minetest/default/mapgen.lua
- --
- -- Aliases for map generator outputs
- --
- minetest.register_alias("mapgen_air", "air")
- --
- -- Node at ground.
- --
- NODE_GROUND = "default:dirt_with_grass"
- --
- -- Node below ground.
- --
- NODE_ONEB_GROUND = "default:dirt"
- --
- -- Flatland generation
- --
- minetest.register_on_generated(function(minp, maxp, seed)
- for i1=minp,maxp do
- for i2=minp,maxp do
- minetest.env:set_node({i1,i2,-1}, {name=NODE_ONEB_GROUND})
- minetest.env:set_node({i1,i2,0}, {name=NODE_GROUND})
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement