Trigger
A trigger matches published server signals. It can be used in trigger rules or triggered abilities; registration itself does not perform any action. See the trigger lifecycle.
| Type | Purpose |
|---|---|
saturn:tick | Publishes a signal on each server-side entity tick. |
saturn:attack | Publishes a signal when an entity attacks a target. |
saturn:hurt | Publishes a signal when an entity takes damage. |
saturn:kill | Publishes a signal when an entity kills another entity. |
saturn:block_break | Publishes a signal when a player breaks a block. |
saturn:block_use | Publishes a signal when a player interacts with a block. |
saturn:item_use | Publishes a signal when an entity finishes using an item. |
saturn:equip | Publishes a signal when an entity's equipment changes. |
saturn:death | Publishes a signal when an entity dies. |
saturn:consume_item | Decreases the count of the item stack in the context. |
saturn:brewed_potion | Matches the parameters of the vanilla brewed potion criterion when a player brews a potion. |
saturn:tame_animal | Publishes a signal when a player successfully tames an animal. |
saturn:bred_animals | Publishes a signal to the relevant players when animals breed successfully. |
saturn:villager_trade | Publishes a signal when a player completes a trade with a villager. |
saturn:used_totem | Publishes a signal when a player consumes a totem to avoid death. |
saturn:started_riding | Publishes a signal when a player starts riding. |
saturn:changed_dimension | Publishes a signal when a player switches dimension. |
saturn:effects_changed | Publishes a signal when a player's status effects change. |
saturn:lightning_strike | Matches the involved player, the lightning and nearby entities when a lightning strike occurs. |
saturn:player_hurt_entity | Publishes a signal when a player deals damage to an entity. |
saturn:entity_hurt_player | Publishes a signal when a player is hurt by an entity. |
saturn:player_killed_entity | Publishes a signal when a player kills an entity. |
saturn:entity_killed_player | Publishes a signal when a player is killed by an entity. |
saturn:shot_crossbow | Publishes a signal when a player shoots a crossbow. |
saturn:player_interacted_with_entity | Publishes a signal when a player interacts with an entity. |
saturn:fishing_rod_hooked | Matches the rod, entity and caught item parameters when fishing completes. |
saturn:thrown_item_picked_up_by_player | Publishes a signal when a player picks up an item that carries thrower information. |
saturn:enter_block | Polls the block a player enters and matches the block state. |
saturn:location | Reads the entity's position and dimension. |
saturn:slept_in_bed | Publishes a signal when a player sleeps in a bed. |
saturn:levitation | Polls the distance and duration of a player's levitation. |
saturn:fall_from_height | Matches signals by the recorded fall start position and distance. |
saturn:fall_after_explosion | Matches the movement caused by an explosion and the fall that follows. |
saturn:ride_entity_in_lava | Matches the distance a player travels while riding in lava. |
saturn:nether_travel | Matches the start position and distance of Nether travel. |
saturn:inventory_changed | Matches vanilla item and slot predicates against changes in the inventory snapshot. |
saturn:using_item | Publishes a signal while an entity is using an item. |
saturn:filled_bucket | Matches the resulting item when a player fills a bucket. |
saturn:item_durability_changed | Matches item durability and the durability delta. |
saturn:advancement_completed | Publishes a signal when a whole Minecraft advancement is completed, optionally filtered by advancement ID. |
saturn:js | Calls a callback registered by KubeJS and passes the params argument. |