Guest User

Untitled

a guest
Aug 27th, 2014
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_node("default:stone", {
  2. description = "Stone",
  3. tiles = {"default_stone.png"},
  4. special_tiles = {"default_dirt.png"},
  5. is_ground_content = true,
  6. groups = {cracky=3, stone=1},
  7. drop = 'default:cobble',
  8. legacy_mineral = true,
  9. sounds = default.node_sound_stone_defaults(),
  10. on_punch=function(pos,node,puncher)
  11. if node.param2 == 128 then
  12. node.param2 = 0
  13. else
  14. node.param2 = 128
  15. end
  16. minetest.swap_node (pos,node)
  17. end,
  18. })
RAW Paste Data