This addon allows you by entering one command to ban certain slots of the player’s inventory. A player cannot put items in a banned slot, pick up items from the ground in this slot, and in general cannot interact with it in any way. The item that bans the slot cannot be thrown away by the player, moved somewhere, and in general it is not visible there that it is an item. Also, banned slots do not drop out when the player dies, and when the player is revived, they remain with him.
How to use:
just type /execute
for example, to ban all possible player slots, enter
Description of functions:
hotbarSlot1_Ban — hotbarSlot9_Ban bans one hotbar slot from 1 to 9
This addon only works on version 1.16.0 and higher. If your version of minecraft is lower (1.14 1.13 1.10) this addon will not work!
This addon does not require any experimental world options to be enabled!
This addon works great in multiplayer!
These bugs cannot be fixed yet.