Contains (Property) (Condition) — Skript
Addon: Skript · Category: Condition
Syntax
%objects% contain[s] %objects%Description
Checks whether a type or list contains certain elements. When checking if a list contains a specific element, use '{list::*} contains {x}'. When checking if a single type contains something, use `player's inventory contains {x}`. When checking if many types contain something, use '{inventories::*} contain {x}` or `contents of {inventories::*} contain {x}`.
Examples
block contains 20 cobblestone
player has 4 flint and 2 iron ingots
{list::*} contains 5
names of {list::*} contain "prefix"
contents of the inventories of all players contain 1 stick