Mechanic

removeHeldItem

Removes an amount of the target's held item

Aliases

consumeHeldItemtakeHeldItem

Configuration Fields (1)

NameTypeDefaultDescription
amount
a
PlaceholderInt1The amount to remove

Examples & Notes

Examples

As a skill that only targets the casting player, a mob may need to use a sudoskill to remove the player’s item:

munchy:
  Type: PIG
  Skills:
  - SudoSkill{s=removeApple} @trigger ~onInteract

This will cause a player to cast the removeApple meta-skill when right-clicking the mob:

removeApple:
  Conditions:
  - holding{m=APPLE} true
  Skills:
  - removeHeldItem{amount=1}

This example checks for if the player (now the caster) is holding an apple, and if so, remove 1 from their hand.

Universal Mechanic Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.