I was wondering if it is possible to create an 'Evil chest'. In other words, I want a chest to be able to kill a certain block or item inside it.
It would detect if a block is inside it and gives a output. Or if you could place a command that just detects all chests with a certain items and remove them. So my goal is to be able to kill items inside chests but I can't use exact coordinates.
I have tried with
testforblock but did not find any solution and tried to find a way to maybe do this with radius but I found nothing
For the context of why I'd want to do this, take a look at my previous post about the Locked Inventory.