I'm looking for a way to prevent placement of bedrock in survival. This may be achieved by an NBT TAG, a command block or else. If you know a /give
command that will do the trick then that would be great.
A command block that destroys all bedrock is also okay.
I need this because I'm making a vanilla server that uses custom villagers as shops. However, the only thing you can't obtain in Minecraft is bedrock, so I will be using it as the currency. I need to make sure it is unbreakable though, so nobody will build a house out of bedrock or do something else of the sort.
Best Answer
Ok this might not be the best answer but I was thinking of running a command 20 ticks a second.
This would work but it would also delete bedrock that the player has not placed i.e naturally spawned in bedrock.
Another method that I was thinking was to set the player in Gamemode 2 whenever he is holding bedrock in his hand, for example:
Then make that flow into a command block that makes the player in adventure mode then a redstone torch that changes the player back into the original mode.
Hope it helped