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 65
    • Issues 65
    • 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

Last edited by Lxlp 2 days ago
Page history

Triggers

Crucible supports all other triggers that would generally make sense, and also adds new triggers designed specifically for items, blocks and furniture. This page contains all possible triggers.

  • Item Triggers
  • Custom Block Triggers
  • Furniture Triggers
  • Examples

Item Triggers

Trigger When it fires...
onAttack When the player hits another entity
onBreak When the player holding or equipping the item breaks it
onConsume Triggered when the item is eaten
onCrouch When the player crouches
onUnCrouch When the player stops crouching
onDamaged When the player is damaged
onDeath When the player dies
onEquip When a player equips an armor piece.
onUnEquip When a player unequips an armor piece.
onInteract When the player interacts with an entity
onItemDrop When the player drops an item
onItemPickup When the player picks up an item
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
onSwing When the player left-clicks
onTimer Every # ticks (where # is the interval in ticks)
onUse When the player right-clicks while holding the item
onFish When a player is fishing, ie casting the line out
onFishBite Called when there is a bite on the hook and it is ready to be reeled in
onFishCatch When a player has successfully caught a fish and is reeling it in
onFishGrab When a player has successfully caught an entity
onFishGround When a bobber is stuck in the ground
onFishReel When a player reels in their hook without receiving any bites
onFishFail When a player fails to catch a bite while fishing usually due to poor timing
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
onPressF When a player presses F to swap the item
onPressF_HAND When a player presses F to swap the item, and it ends up in the main hand
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 for the server and MythicKeys mod for the client
onRelease When a player releases a key. Requires MythicKeysPlugin for the server and MythicKeys mod for the client
onJoin When a player joins the server
onRespawn When a player respawns
onPickup When a player picks up the crucible item
onHold When the player holds an item
onUnHeld When the player switches off the item from their hotbar
onJump When the Player jumps
onPaint When a Paint Brush paints a furniture
onKill When the Player kills an entity
onKillPlayer When the Player kills another player
onProjectileThrow When a special projectile is thrown
onStartDestroyBlock When the player starts destroying a block
onStopDestroyBlock When the player stops destroying a block

Custom Block Triggers

These triggers can be used with Custom Blocks

Trigger When it fires...
onBlockBreak When the player breaks the custom block
onBlockPlace When the player places the custom block

Furniture Triggers

All these triggers can be used with Furnitures

Trigger When it fires...
onBlockPlace When the furniture is placed
onBlockBreak When the furniture is broken
onBlockRotate When the furniture is rotated
onBlockSit When a player sits on the furniture
onDamaged When the furniture is punched
onFurnitureStateChange When the furnitures state changed. This is triggered every time the FurnitureState mechanic is used, even if the state stays the same.
onFurnitureInventoryOpen When the Furniture Inventory is opened
onFurnitureInventoryClose When the Furniture Inventory is closed
onInteract When a player right clicks the furniture
onPaint When a paintbrush is used on a furniture
onTimer Every X ticks

Examples

MythicKeys Triggers

COOL_ITEM:
  Id: STICK
  Display: I'm a cool stick
  Skills:
    - message{m="You pressed the jump key"} @Self ~onPress ?keyid{id=minecraft:jump}
    - message{m="You released the jump key"} @Self ~onRelease ?keyid{id=minecraft:jump}
Clone repository
Home
Changelogs
Commands / Permissions
API
FAQ / Common Issues
Guides

Usage
  • Installation
  • Items
    • Item Options
    • Item Skills
    • Item Durability
  • Augments
  • Item Sets
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • World Generation
  • Loot Generation

ResourcePack Generator

Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
  • Augments

Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions

Placeholders
  • Placeholders