... | @@ -8,65 +8,78 @@ Crucible supports all other triggers that would generally make sense, and also a |
... | @@ -8,65 +8,78 @@ Crucible supports all other triggers that would generally make sense, and also a |
|
| Trigger | When it fires... |
|
|
| Trigger | When it fires... |
|
|
|----------------------------------------|--------------------------------------------------------------|
|
|
|----------------------------------------|--------------------------------------------------------------|
|
|
| [onAttack](/Skills/Triggers/onAttack) | When the player hits another entity |
|
|
| [onAttack](/Skills/Triggers/onAttack) | When the player hits another entity |
|
|
| onConsume | Triggered if the item is food or a potion that is eaten |
|
|
| [onConsume](/Skills/Triggers/onAttack) | Triggered when the item is eaten |
|
|
| onCrouch | When the player crouches |
|
|
| [onCrouch](/Skills/Triggers/onCrouch) | When the player crouches |
|
|
| onUnCrouch | When the player stops crouching |
|
|
| [onUnCrouch](/Skills/Triggers/onUnCrouch) | When the player stops crouching |
|
|
| [onDamaged](/../../../MythicMobs/-/wikis/Skills/Triggers/onDamaged) | When the player is damaged |
|
|
| [onDamaged](/Skills/Triggers/onDamaged) | When the player is damaged |
|
|
| [onDeath](/../../../MythicMobs/-/wikis/Skills/Triggers/onDeath) | When the player dies |
|
|
| [onDeath](/Skills/Triggers/onDeath) | When the player dies |
|
|
| onEquip | When a player equips an armor piece. |
|
|
| [onEquip](/Skills/Triggers/onEquip) | When a player equips an armor piece. |
|
|
| onUnEquip | When a player unequips an armor piece. |
|
|
| [onUnEquip](/Skills/Triggers/onUnEquip) | When a player unequips an armor piece. |
|
|
| [onInteract](/../../../MythicMobs/-/wikis/Skills/Triggers/onInteract) | When the player interacts with an entity |
|
|
| [onInteract](/Skills/Triggers/onInteract) | When the player interacts with an entity |
|
|
| [onBowHit](/../../../MythicMobs/-/wikis/Skills/Triggers/onBowHit) | When a player hits an entity with an arrow |
|
|
| [onItemDrop](/Skills/Triggers/onItemDrop) | When the player drops an item |
|
|
| onPotionSplash | Triggered if the item is a potion that was thrown |
|
|
| [onItemPickup](/Skills/Triggers/onItemPickup) | When the player picks up an item |
|
|
| onRightClick | When the player right-clicks |
|
|
| [onBowHit](/Skills/Triggers/onBowHit) | When a player hits an entity with an arrow |
|
|
| [onShoot](/../../../MythicMobs/-/wikis/Skills/Triggers/onShoot) | When the player shoots a bow |
|
|
| [onPotionSplash](/Skills/Triggers/onBowHit) | Triggered if the item is a potion that was thrown |
|
|
| [onSpawn](/../../../MythicMobs/-/wikis/Skills/Triggers/onSpawn) | When the player logs in or respawns |
|
|
| [onRightClick](/Skills/Triggers/onRightClick) | When the player right-clicks |
|
|
| onSwing | When the player left-clicks |
|
|
| [onShoot](/Skills/Triggers/onShoot) | When the player shoots a bow |
|
|
| [onTimer](/../../../MythicMobs/-/wikis/Skills/Triggers/onTimer) | Every # ticks (where # is the interval in ticks) |
|
|
| [onSpawn](/Skills/Triggers/onSpawn) | When the player logs in or respawns |
|
|
| onUse | When the player right-clicks while holding the item |
|
|
| [onSwing](/Skills/Triggers/onSwing) | When the player left-clicks |
|
|
| onFish | When the player right-clicks while holding a fishing rod |
|
|
| [onTimer](/Skills/Triggers/onTimer) | Every # ticks (where # is the interval in ticks) |
|
|
| onFishBite | When a fish bites the hook from a fishing rod |
|
|
| [onUse](/Skills/Triggers/onUse) | When the player right-clicks while holding the item |
|
|
| onFishCatch | When the fish latches onto the hook from a fishing rod |
|
|
| [onFish](/Skills/Triggers/onFish) | When a player is fishing, ie casting the line out |
|
|
| onFishGrab | When the player right-clicks while holding the fishing rod with a latched fish |
|
|
| [onFishBite](/Skills/Triggers/onFishBite)| Called when there is a bite on the hook and it is ready to be reeled in |
|
|
| onFishGround | When the bobber is stuck in the ground |
|
|
| [onFishCatch](/Skills/Triggers/onFishCatch)| When a player has successfully caught a fish and is reeling it in |
|
|
| onFishingReel | When the player reels in a fishing rod with no fish on the other end |
|
|
| [onFishGrab](/Skills/Triggers/onFishGrab)| When a player has successfully caught an entity |
|
|
| onFishingFail | When the player fails a fish attempt due usually due to poor timing |
|
|
| [onFishGround](/Skills/Triggers/onFishGround)| When a bobber is stuck in the ground |
|
|
| onPressQ | When a player presses Q to drop the item. Requires ProtocolLib |
|
|
| [onFishingReel](/Skills/Triggers/onFishingReel)| When a player reels in their hook without receiving any bites |
|
|
| onPressCtrlQ | When a player presses CTRL+Q to drop the item. Requires ProtocolLib |
|
|
| [onFishingFail](/Skills/Triggers/onFishingFail) | When a player fails to catch a bite while fishing usually due to poor timing |
|
|
| onPressF | When a player presses F to swap the item |
|
|
| [onPressQ](/Skills/Triggers/onPressQ) | When a player presses Q to drop the item. Requires ProtocolLib |
|
|
| onPressF_HAND | When a player presses F to swap the item, and it ends up in the main hand |
|
|
| [onPressCtrlQ](/Skills/Triggers/onPressCtrlQ)| When a player presses CTRL+Q to drop the item. Requires ProtocolLib |
|
|
| onPressF_OFFHAND | When a player presses F to swap the item, and it ends up in the offhand |
|
|
| [onPressF](/Skills/Triggers/onPressF) | When a player presses F to swap the item |
|
|
|
|
| [onPressF_HAND](/Skills/Triggers/onPressF_HAND)| When a player presses F to swap the item, and it ends up in the main hand |
|
|
|
|
| [onPressF_OFFHAND](/Skills/Triggers/onPressF_OFFHAND) | When a player presses F to swap the item, and it ends up in the offhand |
|
|
| onPress | When a player presses a key. Requires [MythicKeysPlugin](https://www.spigotmc.org/resources/mythickeysplugin-custom-keybinds-api.98893/) for the server and [MythicKeys mod](https://github.com/ASangarin/MythicKeys) for the client |
|
|
| onPress | When a player presses a key. Requires [MythicKeysPlugin](https://www.spigotmc.org/resources/mythickeysplugin-custom-keybinds-api.98893/) for the server and [MythicKeys mod](https://github.com/ASangarin/MythicKeys) for the client |
|
|
| onRelease | When a player releases a key. Requires [MythicKeysPlugin](https://www.spigotmc.org/resources/mythickeysplugin-custom-keybinds-api.98893/) for the server and [MythicKeys mod](https://github.com/ASangarin/MythicKeys) for the client |
|
|
| onRelease | When a player releases a key. Requires [MythicKeysPlugin](https://www.spigotmc.org/resources/mythickeysplugin-custom-keybinds-api.98893/) for the server and [MythicKeys mod](https://github.com/ASangarin/MythicKeys) for the client |
|
|
| onJoin | When a player joins the server |
|
|
| [onJoin](/Skills/Triggers/onJoin)| When a player joins the server |
|
|
| onRespawn | When a player respawns |
|
|
| [onRespawn](/Skills/Triggers/onRespawn) | When a player respawns |
|
|
| onPickup | When a player picks up the crucible item |
|
|
| [onPickup](/Skills/Triggers/onPickup)| When a player picks up the crucible item |
|
|
| onHold | When the player holds an item |
|
|
| [onHold](/Skills/Triggers/onHold)| When the player holds an item |
|
|
| onUnHeld | When the player switches off the item from their hotbar |
|
|
| [onUnHeld](/Skills/Triggers/onUnHeld) | When the player switches off the item from their hotbar |
|
|
| onJump | When the Player jumps |
|
|
| [onJump](/Skills/Triggers/onJump) | When the Player jumps |
|
|
| onPaint | When a [Paint Brush](Paint-Brush) paints a furniture |
|
|
| [onPaint](/Skills/Triggers/onPaint) | When a [Paint Brush](Paint-Brush) paints a furniture |
|
|
|
|
| [onKill](/Skills/Triggers/onKill) | When the Player kills an entity |
|
|
|
|
| [onKillPlayer](/Skills/Triggers/onKillPlayer) | When the Player kills another player |
|
|
|
|
| [onTridentThrow](/Skills/Triggers/onTridentThrow) | When a trident is thrown |
|
|
|
|
| [onStartDestroyBlock](/Skills/Triggers/onStartDestroyBlock) | When the player starts destroying a block |
|
|
|
|
| [onStopDestroyBlock](/Skills/Triggers/onStopDestroyBlock) | When the player stops destroying a block |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Custom Block Triggers
|
|
# Custom Block Triggers
|
|
These triggers can be used with [Custom Blocks](/Custom-Blocks)
|
|
These triggers can be used with [Custom Blocks](/Custom-Blocks)
|
|
| Trigger | When it fires... |
|
|
| Trigger | When it fires... |
|
|
|----------------------------------------|--------------------------------------------------------------|
|
|
|----------------------------------------|--------------------------------------------------------------|
|
|
| [onBlockBreak](/../../../MythicMobs/-/wikis/Skills/Triggers/onBlockBreak) | When the player breaks the custom block |
|
|
| [onBlockBreak](/Skills/Triggers/onBlockBreak) | When the player breaks the custom block |
|
|
| [onBlockPlace](/../../../MythicMobs/-/wikis/Skills/Triggers/onBlockPlace) | When the player places the custom block |
|
|
| [onBlockPlace](/Skills/Triggers/onBlockPlace) | When the player places the custom block |
|
|
|
|
|
|
# Furniture Triggers
|
|
# Furniture Triggers
|
|
All these triggers can be used with [Furnitures](/Furniture)
|
|
All these triggers can be used with [Furnitures](/Furniture)
|
|
| Trigger | When it fires... |
|
|
| Trigger | When it fires... |
|
|
|----------------------------------------|--------------------------------------------------------------|
|
|
|----------------------------------------|--------------------------------------------------------------|
|
|
| [onBlockPlace](/../../../MythicMobs/-/wikis/Skills/Triggers/onBlockPlace) | When the furniture is placed |
|
|
| [onBlockPlace](/Skills/Triggers/onBlockPlace) | When the furniture is placed |
|
|
| [onBlockBreak](/../../../MythicMobs/-/wikis/Skills/Triggers/onBlockBreak) | When the furniture is broken |
|
|
| [onBlockBreak](/Skills/Triggers/onBlockBreak) | When the furniture is broken |
|
|
| onBlockRotate | When the furniture is rotated |
|
|
| onBlockRotate | When the furniture is rotated |
|
|
| [onDamaged](/../../../MythicMobs/-/wikis/Skills/Triggers/onDamaged) | When the furniture is punched |
|
|
| [onDamaged](/Skills/Triggers/onDamaged) | When the furniture is punched |
|
|
| onFurnitureStateChange | When the furnitures state changed. This is triggered every time the [SetFurnitureState](/Skills/Mechanics/setfurniturestate) mechanic is used, even if the state stays the same. |
|
|
| onFurnitureStateChange | When the furnitures state changed. This is triggered every time the [SetFurnitureState](/Skills/Mechanics/setfurniturestate) mechanic is used, even if the state stays the same. |
|
|
| onFurnitureInventoryOpen | When the [Furniture Inventory](/Skills/Mechanics/furnitureinventory) is opened |
|
|
| [onFurnitureInventoryOpen](/Skills/Triggers/onFurnitureInventoryOpen) | When the [Furniture Inventory](/Skills/Mechanics/furnitureinventory) is opened |
|
|
| onFurnitureInventoryClose | When the [Furniture Inventory](/Skills/Mechanics/furnitureinventory) is closed |
|
|
| [onFurnitureInventoryClose](/Skills/Triggers/onFurnitureInventoryClose) | When the [Furniture Inventory](/Skills/Mechanics/furnitureinventory) is closed |
|
|
| [onInteract](/../../../MythicMobs/-/wikis/Skills/Triggers/onInteract) | When a player right clicks the furniture |
|
|
| [onInteract](/Skills/Triggers/onInteract) | When a player right clicks the furniture |
|
|
| onPaint | When a paintbrush is used on a furniture |
|
|
| onPaint | When a paintbrush is used on a furniture |
|
|
| [onTimer](/../../../MythicMobs/-/wikis/Skills/Triggers/onTimer) | Every X ticks |
|
|
| [onTimer](/Skills/Triggers/onTimer) | Every X ticks |
|
|
|
|
| [onBlockRotate](/Skills/Triggers/onBlockRotate) | When the furniture is rotated |
|
|
|
|
| [onBlockSit](/Skills/Triggers/onBlockSit) | When a player sits on the furniture |
|
|
|
|
| [onFurnitureStateChange](/Skills/Triggers/onFurnitureStateChange) | When the state of the furniture changes |
|
|
|
|
|
|
|
|
|
|
# Examples
|
|
# Examples
|
... | | ... | |