Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2012
52
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. ntop = minetest.env:get_node({x=pos.x, y=pos.y+1, z=pos.z})
  3. if ntop.name ~= "air" then
  4. minetest.env:remove_node(pos)
  5. stack = ItemStack("homedecor:refrigerator 1")
  6. placer:get_inventory():add_item("main", stack)
  7. end
  8. end,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement