Skip to main content

Attack

saturn:attack

Publishes a signal when an entity attacks a target.

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.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:attack

JSON example​

{
"type": "saturn:attack"
}

This is a value to embed in the corresponding field, not a standalone loadable data pack file. The example: references in the examples must be replaced with defined entries.

Java entry point​

com.iafenvoy.saturn.registry.content.SaturnTriggers. This page is based on the Codec in the current 26.1.2 source.