Inventory paper/inventory_contains

Inventory Contains

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

Note: Connect the name output of a Material node to the material input for a validated material name. Works with any Bukkit material.

Inputs

NameTypeOptionalDescription
player player The player.
item item_stack ItemStack to check for (takes priority over material).
material string Material name (used when no item is connected).
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