Inventory
paper/inventory_contains
Inventory Contains
Checks whether a player's inventory has at least a specified amount of a material.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
player |
player | The player. | |
material |
string | ✓ | Material name. |
amount |
number | ✓ | Minimum required amount. |
Outputs
| Name | Type | Description |
|---|---|---|
contains |
boolean | True if the player has at least the required amount. |
count |
number | Total count of that material in the inventory. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
material |
string | "DIAMOND" |
Material |
amount |
number | 1 |
Min Amount |