Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_node("default:stone", {
- description = "Stone",
- tiles = {"default_stone.png"},
- special_tiles = {"default_dirt.png"},
- is_ground_content = true,
- groups = {cracky=3, stone=1},
- drop = 'default:cobble',
- legacy_mineral = true,
- sounds = default.node_sound_stone_defaults(),
- on_punch=function(pos,node,puncher)
- if node.param2 == 128 then
- node.param2 = 0
- else
- node.param2 = 128
- end
- minetest.swap_node (pos,node)
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement