This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I need a command that can testfor if a specific item is in someones inventory. It would be cool if it tested for an amount of that item too! Thanks
Minecraft IGN - Mattmcgoo
Xbox - Mattmcgoo
PS4 - Mattmcgoo
Bedrock or Java?
Bedrock
/clear @p item 0 0. This will result in the message "player has 1 items that match the criteria". Add a chain command block on conditional to make it do something if they have the item.
/testfor @a {Inventory:[{id:"minecraft:ITEM"}]}
I need a command that can testfor if a specific item is in someones inventory. It would be cool if it tested for an amount of that item too! Thanks
Minecraft IGN - Mattmcgoo
Xbox - Mattmcgoo
PS4 - Mattmcgoo
Bedrock or Java?
Bedrock
Minecraft IGN - Mattmcgoo
Xbox - Mattmcgoo
PS4 - Mattmcgoo
/clear @p item 0 0. This will result in the message "player has 1 items that match the criteria". Add a chain command block on conditional to make it do something if they have the item.
/testfor @a {Inventory:[{id:"minecraft:ITEM"}]}