item_to_slot
Sets the item to the item held in a given slot.
Categories: inventory, player, victim
Required arguments
| Key(s) | Description | Type |
|---|---|---|
slot | The slot to take the item from, e.g. mainhand, offhand, helmet, or an inventory slot number. | STRING |
Parameter transformers
PLAYERbecomesITEMVICTIMbecomesITEM
Example
mutators:
- id: item_to_slot
args:
slot: helmet