Repository navigation
Triggers
Xemor edited this page Jul 22, 2021
·
1 revision
Triggers allow you to decide when your skill should be activated.
Every skill you write requires a trigger, and there can only be one trigger per type. To use triggers, you add the trigger block inside your skill.
trigger:
type: DAMAGED
This is an example of a trigger that is called whenever something is damaged by a non-entity source. This means the conditions and effects are checked for whenever the entity is damaged.
Not all triggers are this simple though! Some of them have their own custom parameters, for example the LOOP trigger has a period parameter which allows you to decide how frequently you want the skill to be executed.
- What are Conditions?
- List of all Conditions
- NOT Condition
- Weather Condition
- Tamed Condition
- Height Condition
- Metadata Condition
- Shielded Condition
- Light Condition
- Shooter Condition
- Health Condition
- Entity Condition
- Cooldown Condition