Skip to main content

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.

TypePurpose
saturn:tickPublishes a signal on each server-side entity tick.
saturn:attackPublishes a signal when an entity attacks a target.
saturn:hurtPublishes a signal when an entity takes damage.
saturn:killPublishes a signal when an entity kills another entity.
saturn:block_breakPublishes a signal when a player breaks a block.
saturn:block_usePublishes a signal when a player interacts with a block.
saturn:item_usePublishes a signal when an entity finishes using an item.
saturn:equipPublishes a signal when an entity's equipment changes.
saturn:deathPublishes a signal when an entity dies.
saturn:consume_itemDecreases the count of the item stack in the context.
saturn:brewed_potionMatches the parameters of the vanilla brewed potion criterion when a player brews a potion.
saturn:tame_animalPublishes a signal when a player successfully tames an animal.
saturn:bred_animalsPublishes a signal to the relevant players when animals breed successfully.
saturn:villager_tradePublishes a signal when a player completes a trade with a villager.
saturn:used_totemPublishes a signal when a player consumes a totem to avoid death.
saturn:started_ridingPublishes a signal when a player starts riding.
saturn:changed_dimensionPublishes a signal when a player switches dimension.
saturn:effects_changedPublishes a signal when a player's status effects change.
saturn:lightning_strikeMatches the involved player, the lightning and nearby entities when a lightning strike occurs.
saturn:player_hurt_entityPublishes a signal when a player deals damage to an entity.
saturn:entity_hurt_playerPublishes a signal when a player is hurt by an entity.
saturn:player_killed_entityPublishes a signal when a player kills an entity.
saturn:entity_killed_playerPublishes a signal when a player is killed by an entity.
saturn:shot_crossbowPublishes a signal when a player shoots a crossbow.
saturn:player_interacted_with_entityPublishes a signal when a player interacts with an entity.
saturn:fishing_rod_hookedMatches the rod, entity and caught item parameters when fishing completes.
saturn:thrown_item_picked_up_by_playerPublishes a signal when a player picks up an item that carries thrower information.
saturn:enter_blockPolls the block a player enters and matches the block state.
saturn:locationReads the entity's position and dimension.
saturn:slept_in_bedPublishes a signal when a player sleeps in a bed.
saturn:levitationPolls the distance and duration of a player's levitation.
saturn:fall_from_heightMatches signals by the recorded fall start position and distance.
saturn:fall_after_explosionMatches the movement caused by an explosion and the fall that follows.
saturn:ride_entity_in_lavaMatches the distance a player travels while riding in lava.
saturn:nether_travelMatches the start position and distance of Nether travel.
saturn:inventory_changedMatches vanilla item and slot predicates against changes in the inventory snapshot.
saturn:using_itemPublishes a signal while an entity is using an item.
saturn:filled_bucketMatches the resulting item when a player fills a bucket.
saturn:item_durability_changedMatches item durability and the durability delta.
saturn:advancement_completedPublishes a signal when a whole Minecraft advancement is completed, optionally filtered by advancement ID.
saturn:jsCalls a callback registered by KubeJS and passes the params argument.