Right-clicks
One right-click runs one of these events.
| Click | Event |
|---|---|
| Holding an item | When item is used |
| On a block, holding an item | When item is used on a block |
| On a block | When block is right-clicked |
| On a mob, animal or player | When player right-clicks an entity |
When item is used
Runs in place of the item’s own use. The item’s Cooldown, Use up one and Durability apply. Food is used up by eating: use When item is eaten for effects of eating.
When item is used on a block
The click belongs to the item. The block does nothing else, and When block is right-clicked skips it.
The block keeps its click when the item is a vanilla item, food, or still cooling down.
When block is right-clicked
A block of this mod does nothing else on that click, so nothing is placed on it.
Holding right-click clicks every 4 ticks. Set Cooldown on a click that heals or gives something: after a click runs, that player’s clicks do nothing until the cooldown ends.
When player right-clicks an entity
Main hand only. Cancel event stops the mob’s own reaction, such as trading or milking.
To turn a mob into another, such as a cow into a mooshroom:
- If on Is holding the item.
- Spawn mob the new one at Position.
- Kill the Clicked entity with How set to remove.
- Use held item.
When player shears a mob
Runs as a player shears a mob that has something to shear: a sheep, a mooshroom, a snow golem, a bogged or a copper golem. The mob still drops its own wool or mushrooms; add Drop item at Position for more. Mobs of this mod can’t be sheared.