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]"
![Test if player has specific item in specific hotbar slot [1.8] - Two Clear Glass Jars Beside Several Flasks Test if player has specific item in specific hotbar slot [1.8] - Two Clear Glass Jars Beside Several Flasks](/assets/images/test_if_player_has_specific_item_in_specific_hotbar_slot_18_1.jpeg)
![Test if player has specific item in specific hotbar slot [1.8] - Person Pouring Blue Liquid Into a Glass Container Test if player has specific item in specific hotbar slot [1.8] - Person Pouring Blue Liquid Into a Glass Container](/assets/images/test_if_player_has_specific_item_in_specific_hotbar_slot_18_2.jpeg)
![Test if player has specific item in specific hotbar slot [1.8] - Chemical test with empty flask mounted on ring stand while burner under flask and tubes filled with reagents in modern lab Test if player has specific item in specific hotbar slot [1.8] - Chemical test with empty flask mounted on ring stand while burner under flask and tubes filled with reagents in modern lab](/assets/images/test_if_player_has_specific_item_in_specific_hotbar_slot_18_3.jpeg)
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
