TriggerData - Septillihedron/SuperheroesPlusSchema GitHub Wiki

TriggerData - A union of types with a differentiator

Differentiator: type

Possible Types

type Description Subtype
BECOMEVEHICLE Triggers when an entity enters the user, thus using the user as a vehicle. \nThe target entity will be set as the entering entity No extra data
BLOCKBREAK Triggers when the user breaks a block. \nThe location will be set as the location of the broken block No extra data
CHANGEMAINHAND Triggers when the user changes where the main hand slot is (i.e. scrolls or hits a number). \nThe item will be set as the item in the new slot No extra data
COMBAT Triggers when the user damages an entity or gets damaged by an entity. \nThe target entity will be set as the damaged entity or the damaging entity respectively No extra data
CONSUME Triggers when the user consumed an item No extra data
DAMAGEDBYENTITY Triggers when an entity damages the user. \nThe target entity will be set as the damaging entity No extra data
DAMAGEDENTITY Triggers when the user damage an entity. \nThe target entity will be set as the damaged entity No extra data
DEATH Triggers when the user is killed. \nThe target entity will be set as the killer if it exist No extra data
ENTERVEHICLE Triggers when the user enters a vehicle. \nThe target entity will be set as the vehicle No extra data
EQUIPARMOR Triggers when the user equips an armour. \nThe item will be set as the equiped item No extra data
EXITVEHICLE Triggers when the user exits a vehicle. \nThe target entity will be set as the vehicle No extra data
INTERACTENTITY Triggers when the user right clicks an entity. \nThe target entity will be set as the interacted entity No extra data
KILL Triggers when the user kills an entity. \nThe target entity will be set as the killed entity No extra data
LAUNCHPROJECTILE Triggers when the user launched a projectile. \nThe target entity will be set as the launched projectile No extra data
MOVE Triggers when the user moves. \nThe location will be set as the location the user moves to No extra data
PLAYERJOIN Triggers when the user joins the server No extra data
PLAYERJUMP Triggers when the user jumps No extra data
PLAYERQUIT Triggers when the user exits the server No extra data
PROJECTILEHIT Triggers when a projectile shot by the user landed and/or hits an entity. \nThe target entity will be set as the projectile No extra data
RIPTIDE Triggers when the user activates the riptide enchantment No extra data
SNEAK Triggers when the user sneaks No extra data
SPAWN Triggers when the user spawns No extra data
SPRINT Triggers when the user starts or stops sprinting No extra data
SWAPHANDS Triggers when the user swaps hands No extra data
TAME Triggers when the user tames an entity. \nThe target entity will be set as the tamed entity No extra data
TARGET Triggers when the user targets an entity. \nThe target entity will be set as the target No extra data
TARGETED Triggers when the user is targeted by an entity. \nThe target entity will be set as the entity that targeted the user No extra data
TOGGLEGLIDE Triggers when the user glides or unglides No extra data
TOTEM Triggers when the user activates a totem. \nThe target entity will be set as the killer of the user No extra data
DAMAGED Triggers when the user gets damaged DamageData
DAMAGEDBYPROJECTILE Triggers when an entity damages the user. \nIf the damaging entity is a projectile, the target entity will be set as the source of the projectile. \nOtherwise, The target entity will be set as the damaging entity ProjectileData
DAMAGEDENTITYWITHPROJECTILE Triggers when the user damages an entity directly or with a projectile. \nThe target entity will be set as the damaged entity ProjectileData
GAINEDHERO TriggerData
INTERACT Triggers when the user interacts with a block or air InteractData
LOOP Triggers periodically every couple of ticks LoopData
LOSTHERO TriggerData
POTIONEFFECT Triggers when a potion effect is applied to the user PotionEffectTriggerData
PROJECTILECOMBAT Acts like the DAMAGEDBYPROJECTILE and DAMAGEDENTITYWITHPROJECTILE triggers combined ProjectileData