Test if player has specific item in specific hotbar slot [1.8]
//ads -- adsterra.com -- native banner
?>
How can I test for a player that has a wooden button in his 1st hotbar slot? (no matter if selected or not).
I tried:
/testfor @a {Inventory:[{Slot:0,id:"minecraft:wooden_button"}]}
But the command block outputs:
[player name] did not match the required data structure
Pictures about "Test if player has specific item in specific hotbar slot [1.8]"
How do you test an item in a slot in Minecraft?
In the survival inventory tab of the creative inventory, shift + clicking the 'X' clears the whole inventory in any other tab, shift + clicking an item puts a stack into the hotbar.Test for Items In A Certain Slot Minecraft 1.8
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Rodolfo Clix, Pixabay, Ivan Samkov, RF._.studio