How to test for specific potions in inventories? [duplicate]

How to test for specific potions in inventories? [duplicate] - Student Getting A+ Mark in Her Exam

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.






Pictures about "How to test for specific potions in inventories? [duplicate]"

How to test for specific potions in inventories? [duplicate] - Student Cheating During an Exam
How to test for specific potions in inventories? [duplicate] - Student Cheating During an Exam
How to test for specific potions in inventories? [duplicate] - Teacher Proctoring His Students During an Examination





Hidden Potion Secrets You Don't Know About!! (Java \u0026 Bedrock Minecraft)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: RODNAE Productions, RODNAE Productions, RODNAE Productions, RODNAE Productions