Amount of Items (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.0

Syntax

[the] (amount|number) of %items% (in|of) %inventories%

Description

Counts how many of a particular item are in a given inventory.

Examples

message "You have %number of diamond in player's inventory% diamond(s) in your inventory."

View source