Inventory paper/inventory_contains

Inventory Contains

Checks whether a player's inventory has at least a specified amount of a material.

Inputs

NameTypeOptionalDescription
player player The player.
material string Material name.
amount number Minimum required amount.

Outputs

NameTypeDescription
contains boolean True if the player has at least the required amount.
count number Total count of that material in the inventory.

Properties

KeyTypeDefaultDescription
material string "DIAMOND" Material
amount number 1 Min Amount