item_to_slot

Sets the item to the item held in a given slot.

Categories: inventory, player, victim

Required arguments

Key(s)DescriptionType
slotThe slot to take the item from, e.g. mainhand, offhand, helmet, or an inventory slot number.STRING

Parameter transformers

  • PLAYER becomes ITEM

  • VICTIM becomes ITEM

Example

mutators:
  - id: item_to_slot
    args:
      slot: helmet