Amount of Items (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.0
Syntax
[the] (amount|number) of %itemtypes% (in|of) %inventories%Description
Counts how many of a particular <a href='#itemtype'>item type</a> are in a given inventory.
Examples
message "You have %number of tag values of minecraft tag "diamond_ores" in the player's inventory% diamond ores in your inventory."