Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
    • Skills
  • Triggers

Triggers · Changes

Page history
added setitemdisplay mechanic authored Apr 17, 2022 by Phillip's avatar Phillip
Hide whitespace changes
Inline Side-by-side
Showing with 36 additions and 36 deletions
+36 -36
  • Skills/Triggers.md Skills/Triggers.md +36 -36
  • No files found.
Skills/Triggers.md
View page @ e0c5933b
Crucible supports all triggers that generally make sense, and also adds a bunch of new skill triggers for use by items. This list contains all compatible triggers. Crucible supports all triggers that generally make sense, and also adds a bunch of new skill triggers for use by items. This list contains all compatible triggers.
| Trigger | When it fires… | | Trigger | When it fires… |
|----------------|--------------------------------------------------------------------------------| |----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| onAttack | When the player hits another entity | | onAttack | When the player hits another entity |
| onBlockBreak | When the player breaks a block | | onBlockBreak | When the player breaks a block |
| onBlockPlace | When the player places a block | | onBlockPlace | When the player places a block |
| onConsume | Triggered if the item is food or a potion that is eaten | | onConsume | Triggered if the item is food or a potion that is eaten |
| onCrouch | When the player crouches | | onCrouch | When the player crouches |
| onUnCrouch | When the player stops crouching | | onUnCrouch | When the player stops crouching |
| onDamaged | When the player is damaged | | onDamaged | When the player is damaged |
| onDeath | When the player dies | | onDeath | When the player dies |
| onEquip | When a player equips an armor piece. | | onEquip | When a player equips an armor piece. |
| onUnEquip | When a player unequips an armor piece. | | onUnEquip | When a player unequips an armor piece. |
| onInteract | When the player interacts with an entity | | onInteract | When the player interacts with an entity |
| 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 | | onPotionSplash | Triggered if the item is a potion that was thrown |
| onRightClick | When the player right-clicks | | onRightClick | When the player right-clicks |
| onShoot | When the player shoots a bow | | onShoot | When the player shoots a bow |
| onSpawn | When the player logs in or respawns | | onSpawn | When the player logs in or respawns |
| onSwing | When the player left-clicks | | onSwing | When the player left-clicks |
| 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 | | onUse | When the player right-clicks while holding the item |
| onFish | When the player right-clicks while holding a fishing rod | | onFish | When the player right-clicks while holding a fishing rod |
| onFishBite | When a fish bites the hook from a fishing rod | | onFishBite | When a fish bites the hook from a fishing rod |
| onFishCatch | When the fish latches onto the hook from a fishing rod | | onFishCatch | When the fish latches onto the hook from a fishing rod |
| onFishGrab | When the player right-clicks while holding the fishing rod with a latched fish | | onFishGrab | When the player right-clicks while holding the fishing rod with a latched fish |
| onFishGround | When the bobber is stuck in the ground | | onFishGround | When the bobber is stuck in the ground |
| onFishingReel | When the player reels in a fishing rod with no fish on the other end | | onFishingReel | When the player reels in a fishing rod with no fish on the other end |
| onFishingFail | When the player fails a fish attempt due usually due to poor timing | | onFishingFail | When the player fails a fish attempt due usually due to poor timing |
| onPressQ | When a player presses Q to drop the item. Requires ProtocolLib | | onPressQ | When a player presses Q to drop the item. Requires ProtocolLib |
| onPressCtrlQ | When a player presses CTRL+Q to drop the item. Requires ProtocolLib | | onPressCtrlQ | When a player presses CTRL+Q to drop the item. Requires ProtocolLib |
| onPressF | When a player presses F to swap the item. Requires ProtocolLib | | onPressF | When a player presses F to swap the item. Requires ProtocolLib |
| onKeyPress | 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 |
| onKeyRelease | 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 | When a player joins the server |
| onRespawn | When a player respawns | | onRespawn | When a player respawns |
| onPickup | When a player picks up a crucible item | | onPickup | When a player picks up a crucible item |
\ No newline at end of file \ No newline at end of file
Clone repository
  • Home
  • Changelogs
  • Commands and Permissions
  • FAQ / Common Issues

Usage

  • Installation
  • Creating Custom Items
  • Using with MMOItems

New Mechanics

  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions

Special Features

  • Ammo System / Making Guns
  • Special Options