Lock Minecraft items?

Wo
7

I'm looking for a map, which I'm currently building a council. I ask myself whether it is possible to lock slots from a box and, ideally, even to lock inventory so that a player can't remove or exchange the items?

Should work in Java vanilla without plugins

un

Enter that in Google you can do it with Command blocks. A little more complex though.

Wo

I would not ask this question if I had found something suitable on the Internet.

un

Wo

Well, it doesn't exactly show what I meant but could still help me.

un

You're welcome

Po

With the https://minecraft-de.gamepedia.com/...eplaceitem command

Example: / replaceitem entity @p inventory.0 stone 1

You have to write the command in a repeating command block so that the item can't be changed.

Wo

I just tested it. It is still possible. This means that only one item replication is possible