InfinityProject wrote: qwrwed wrote:
+1 This is very useful, but I cant remove it; any tools i try to use to remove it are thrown away.
Is there any way around this?
You could set the node to air using worldedit.
^ This, and commanding Harvey are the only two ways to remove it at the moment. If you'd like to know why any tools you hit it with are removed, look at this chunk of code:
minetest.register_on_punchnode(function(pos, node, puncher) if node.name == "trash:block" then
hit_with = puncher:get_wielded_item()
hit_with_name = hit_with:get_name()
hit_with_count = hit_with:get_count()
What's happening here is that it checks when you it a block to see a)If it's a trash can, if so then b)what was it hit with and c)how big was the stack, and then removes the whole stack of it. Handy for tossing stuff, but it also precludes the possibility of removing the block by punching it - unless you try it empty handed.
If anybody has input on how I should set it up to check for a removal tool and subsequently remove itself, do speak up.