Skip to main content

Spawn particles

saturn:spawn_particles

Spawns particles near the entity using offset and spread parameters.

Runs an operation on a single entity. Used in entity action fields such as entity_action and a trigger rule's action; action arrays run in order.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:spawn_particles
particleEnum stringyes—Vanilla particle parameter.
bientity_conditionBi-entity conditionno{"type":"saturn:always"}Condition that filters the two sides of the context.
countIntegeryes—Count or count matching pattern. Codec range: 0, 2147483647.
speedNumberno0.0Particle speed.
forceBooleannofalseWhether to force the particles to be sent.
spreadArray of three numbersno[0.5,0.5,0.5]Spread range on the three axes.
offset_xNumberno0.0Offset along the X axis.
offset_yNumberno0.5Offset along the Y axis.
offset_zNumberno0.0Offset along the Z axis.

JSON example​

{
"type": "saturn:spawn_particles",
"particle": {
"type": "minecraft:cloud"
},
"count": 1
}

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.data.action.builtin.entity.SpawnParticlesAction. This page is based on the Codec in the current 26.1.2 source.