Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
artifacts:triggers [2019/05/06 07:14]
xikage
artifacts:triggers [2019/08/25 19:43] (current)
xikage
Line 1: Line 1:
 ======Triggers [Artifacts]====== ======Triggers [Artifacts]======
 [[:​artifacts|Artifacts]] Item Skills use the same type of trigger system as MythicMobs, and includes several new triggers that are oriented towards players. [[:​artifacts|Artifacts]] Item Skills use the same type of trigger system as MythicMobs, and includes several new triggers that are oriented towards players.
 +
 +Many of these triggers are added by Artifacts and will only work with players.
  
 Any of these triggers work with item skills when they are either equipped as armor or held in the player'​s hand. Any of these triggers work with item skills when they are either equipped as armor or held in the player'​s hand.
 ^ Trigger ^ When it fires... ^ ^ Trigger ^ When it fires... ^
-| onAttack | When the player hits something  ​|+| onAttack | When the player hits another entity | 
 +| **onBlockBreak** | When the player breaks a block | 
 +| **onBlockPlace** | When the player places a block | 
 +| **onConsume** | Triggered if the item is food or a potion that is eaten |
 | onDamaged | When the player is damaged ​ | | onDamaged | When the player is damaged ​ |
 +| onDeath | When the player dies |
 | onInteract | When the player interacts with an entity ​ | | onInteract | When the player interacts with an entity ​ |
-| onSwing | When the player left-clicks ​ | 
-| onRightClick | When the player right-clicks ​ | 
-| onUse | When the player right-clicks //while holding// the item  | 
-| onShoot | When the player shoots a bow  | 
 | onBowHit | When a player hits an entity with an arrow  | | onBowHit | When a player hits an entity with an arrow  |
 +| **onPotionSplash** | Triggered if the item is a potion that was thrown |
 +| **onRightClick** | When the player right-clicks ​ |
 +| onShoot | When the player shoots a bow |
 | onSpawn | When the player logs in or respawns ​ | | onSpawn | When the player logs in or respawns ​ |
-onConsume | Triggered if the item is food or a potion that is eaten | +**onSwing** ​| When the player left-clicks ​ |
-| onPotionSplash | Triggered if the item is a potion that was thrown | +
-| onDeath ​| When the mob dies  |+
 | onTimer:# | Every # ticks (where # is the interval in ticks) ​ | | onTimer:# | Every # ticks (where # is the interval in ticks) ​ |
 +| **onUse** | When the player right-clicks //while holding// the item  |
  

artifacts/triggers.1557141268.txt.gz · Last modified: 2019/05/06 07:14 by xikage