Guest User

Untitled

a guest
Aug 29th, 2012
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_abm({
  2.     nodenames = {"default:dirt"},
  3.     interval = 1,
  4.     chance = 1,
  5.     action = function(pos, node)
  6.         minetest.env:set_node(pos, {name="default:sand"})
  7.     end
  8. })
  9.  
  10. minetest.register_on_generated(function(minp, maxp)
  11.     for x = minp.x, maxp.x do
  12.         for z = minp.z, maxp.z do
  13.             for ly = minp.y, maxp.y do
  14.             local y = maxp.y + minp.y - ly
  15.             local pos = {x = x, y = y, z = z}
  16.             if minetest.env:get_node(pos).name == "default:dirt" then
  17.                 minetest.env:set_node(pos, {name="default:sand"})
  18.             end
  19.         end
  20.     end
  21. end)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×