Skip to main content
 Warning: Beta Version
Version: Beta ⚠️

CustomTriggeringActionEntry

The CustomTriggeringActionEntry is a specialised verion of the ActionEntry that allows you to trigger the next entries when you want. Or just call a subset of entries.

Usage

ExampleCustomTriggeringActionEntry.kt
@Entry(
"example_custom_triggering_action",
"An example custom triggering entry.",
Colors.RED,
"material-symbols:touch-app-rounded"
)
class ExampleCustomTriggeringActionEntry(
override val id: String = "",
override val name: String = "",
override val criteria: List<Criteria> = emptyList(),
override val modifiers: List<Modifier> = emptyList(),
@SerializedName("triggers")
override val customTriggers: List<Ref<TriggerableEntry>> = emptyList(),
) : CustomTriggeringActionEntry {
override fun execute(player: Player) {
super.execute(player) // This will apply the modifiers.
// Do something with the player
player.triggerCustomTriggers() // Can be called later to trigger the next entries.
}
}