Inventory
paper/inventory_remove
Inventory Remove
Removes a specified amount of a material from a player's inventory.
Note: If the player doesn't have enough items, as many as possible are removed.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
player |
player | The player. | |
material |
string | ✓ | Material name. |
amount |
number | ✓ | Amount to remove. |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after removing. |
removed |
number | Actual amount removed. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
material |
string | "DIAMOND" |
Material |
amount |
number | 1 |
Amount |