Is there any way to test if a player's inventory is not full (eg. atleast 1 empty slot anywhere in the inventory, not counting Armor Slots) with command blocks and whatnot?
Minecraft – ny way to test if a Players inventory is not full in Minecraft
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft Java Edition – How to Use Inventory Scanner Commands
- Minecraft – How to test for a named item in a players inventory? (Minecraft 1.13)
- Minecraft Commands – Moving Items in Inventory in Minecraft 1.14
- Minecraft Java Edition Commands – How to Store Player’s Third Inventory Row to a Shulker Box (1.14.4)
- Minecraft – way to hide the item tool tip when you hover over it
- Minecraft Java Edition – How to Copy a Player’s Inventory into a Double Chest
Best Answer
I found /testfor @p {Inventory:[{Slot:0b}]}, which outputs a 1 block signal if there's an item there, and no signal if that slot is empty. This would require 36 command blocks, to check every slot (including the hotbar; 27 to just check the inventory, 40 if you wanted to check armor slots)