I want to have a chest where other players are able to look at the contents of a chest but I don't want them to be able to take the items out. Is this possible to do with command blocks? I am playing the newest version of Minecraft Bedrock Edition on xbox.
Minecraft – How to not allow people to take items out of chest (Bedrock)
minecraft-bedrock-editionminecraft-commands
Related Topic
- Minecraft – How to enable members to use the /function command
- Minecraft – How to keep the command blocks running even if the closest player is thousands of blocks away
- Minecraft – How to give a player an item with custom properties
- Minecraft – How to get an older version of Minecraft Bedrock Edition
- Minecraft – How to block people getting onto the roof of the Nether in Minecraft
Best Answer
First
This assumes you know how chain command blocks and basic commands work.
How
Have a repeating command block always active set to clear an item. Example with bedrock block:
Now set the block with the chest to air. Have a chain conditional always active command block. Lets pretend my chest is at 0, 0, 0:
Have a chain conditional always active command block. Now have the original chest somewhere. Lets say my template chest is at 5, 5, 5:
We put the template chest where our old chest was.
More
Put more chain conditional always active command blocks to have buttons that do something when you click them!