Arqade Asked by Roke on June 6, 2021
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.
Ok this might not be the best answer but I was thinking of running a command 20 ticks a second.
/execute @p ~ ~ ~ /fill ~7 ~7 ~7 ~-7 ~-7 ~-7 air 0 replace bedrock
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:
/testfor @p {SelectedItemSlot:(changable),Inventory:[{Slot:(changable)b,id:"minecraft:bedrock"}]}
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
Correct answer by Crispen011 on June 6, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP