The minecraft:decrement_item
action decrements the item stack in the context by the amount given.
This action is unsuccessful if the item stack is empty.
Name | Description | Type | Default Value |
---|---|---|---|
amount | The amount to decrement the item stack by. | A positive integer | |
ignore_game_mode | Whether to always decrement the item stack, regardless if this player is in creative mode or not. | An optional boolean | false |
{ "type": "minecraft:decrement_item", "amount": 1 }