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

NameTypeOptionalDescription
exec exec Incoming execution.
player player The player.
material string Material name.
amount number Amount to remove.

Outputs

NameTypeDescription
exec exec Continues after removing.
removed number Actual amount removed.

Properties

KeyTypeDefaultDescription
material string "DIAMOND" Material
amount number 1 Amount