This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
So how do I detect if a players 8th hotbar slot is empty?
E. g: I have an item in that slot, but I don't want the player to remove it,
so I want to reset the whole inventory, as soon as the player moves the item.
Needs to be multiplayer compatible and shouldn't use a lot of command blocks.
Thanks!
My projects: https://blockbench.net/hub
You have to mark the player as though they did not have an item in that slot and remove that mark if they actually did.
/scoreboard players tag @a[tag=!emptyslot] add emptyslot /scoreboard players tag @a[tag=emptyslot] remove emptyslot {Inventory:[{Slot:7b}]} /say @a[tag=emptyslot]
Minecraft-things: http://skylinerw.com More Minecraft-things: https://sourceblock.net Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
So how do I detect if a players 8th hotbar slot is empty?
E. g: I have an item in that slot, but I don't want the player to remove it,
so I want to reset the whole inventory, as soon as the player moves the item.
Needs to be multiplayer compatible and shouldn't use a lot of command blocks.
Thanks!
My projects: https://blockbench.net/hub
You have to mark the player as though they did not have an item in that slot and remove that mark if they actually did.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/