0

I was helping my sister with her server commands when I got stumped on this. I want to find if the player has a specific potion with this:

/testfor @a[team=Sandwings] {Inventory:[{id:"minecraft:splash_potion"}]}

and this:

{Potion:"minecraft:poison"}

But I don't know how to combine them.

1

1 Answer 1

1

All item data that is not the root id, Damage, Count, or Slot tags must be placed within a single tag compound:

/testfor @a[team=Sandwings] {Inventory:[{id:"minecraft:splash_potion",tag:{Potion:"minecraft:poison"}}]}

Not the answer you're looking for? Browse other questions tagged or ask your own question.