Are there commands that can give players permissions like "can open containers" or "can build/mine [closed]
I'm making an adventure map. One of the players is supposed to be the host and the other 3-5 Are meant to have limited permissions.
The goal is to make command blocks so there's a self destructing button that makes a person host and spawns them in the control room and the other button to remove some permissions from the rest of the players and set their world spawn to survival.
Also if you know of a way I could make a glass box appear for 2 minutes and a player tp inside it whenever they die and the box disappears letting them back in the fight that would be dope. I've been drawing a blank on that.
Solution 1:
No, there is no advanced permissions system in Minecraft. But you're in luck, the two things you want specifically can be done!
The "build/mine" thing is just Adventure mode (archive).
The "open chest" permission can be simulated with [locked containers(https://minecraft.gamepedia.com/Chest#Container) (archive). Place the chest, hopper or other block with inventory like this:
/setblock ~ ~ ~ chest{Lock:"superSecretPassword123"}
Then only a player holding an item called "superSecretPassword123" can open the chest. If the players have no access to anvils, that is only those you give it to, otherwise you have to keep the name a secret or just clear any item named like this from the other players.
If you need more permissions, consider the /trigger
command (archive).