Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. -- minetest/default/mapgen.lua
  2.  
  3. --
  4. -- Aliases for map generator outputs
  5. --
  6.  
  7. minetest.register_alias("mapgen_air", "air")
  8.  
  9. --
  10. -- Node at ground.
  11. --
  12. NODE_GROUND = "default:dirt_with_grass"
  13.  
  14. --
  15. -- Node below ground.
  16. --
  17. NODE_ONEB_GROUND = "default:dirt"
  18.  
  19. --
  20. -- Flatland generation
  21. --
  22.  
  23. minetest.register_on_generated(function(minp, maxp, seed)
  24. for i1=minp,maxp do
  25. for i2=minp,maxp do
  26. minetest.env:set_node({i1,i2,-1}, {name=NODE_ONEB_GROUND})
  27. minetest.env:set_node({i1,i2,0}, {name=NODE_GROUND})
  28. end
  29. end
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement