Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. after_place_node = function(pos, placer)
  2. node = minetest.env:get_node(pos)
  3. ntop = minetest.env:get_node({x=pos.x, y=pos.y+1, z=pos.z})
  4. digger = placer.get_player_name()
  5. if ntop.name ~= "air" then
  6. print(digger)
  7. minetest.node_dig(pos, node, digger)
  8. end
  9. end,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement