Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_node("gloopblocks:scaffolding", {
- description = "Wooden Scaffold",
- tiles = {"gloopblocks_scaffold.png"},
- groups = {choppy=3, oddly_breakable_by_hand=3},
- sounds = default.node_sound_wood_defaults(),
- on_rightclick = function(pos, node, clicker, itemstack)
- if itemstack:get_name() == node.name then
- minetest.set_node({pos.x,pos.y+1,pos.z}, {name="gloopblocks:scaffolding",param1=0,param2=0})
- print(tostring(pos.x)..","..tostring(pos.y)..","..tostring(pos.z))
- return ItemStack(tostring(itemstack:get_name().." "..tostring(itemstack:get_count()-1)))
- else return itemstack end
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement