Spawn Particles (Entity Action Type)

Spawns particles on the body of the entity that has the power for visual effects.

Spawns particles on the body of the entity that has the power for visual effects.

Type ID: apoli:spawn_particles

Fields

FieldTypeDefaultDescription
particleParticle EffectThe particle type that will be spawned.
bientity_conditionBi-entity Condition TypeoptionalIf specified, the particle will only be visible if this bi-entity condition is fulfilled by either or both the entity that has the power and the entity looking at the entity that has the power.
countIntegerHow much of the specified particle type will be spawned.
speedFloat0.0Determines the speed of the specified particle type.
forceBooleanfalseIf set to true, the specified particle type that will be spawned can be seen from a far distance.
spreadVector{"x": 0.5, "y": 0.5, "z": 0.5}Determines the size of the three-dimensional cuboid volume to spawn the specified particle type in.
offset_xFloat0.0The offset of where the particle will be centered in the X axis.
offset_yFloat0.5The offset of where the particle will be centered in the Y axis.
offset_zFloat0.0The offset of where the particle will be centered in the Z axis.

Examples

"entity_action": {
    "type": "apoli:spawn_particles",
    "particle": {
        "type": "minecraft:block",
        "params": "minecraft:redstone_block"
    },
    "count": 16,
    "speed": 0.0,
    "force": true,
    "spread": {
        "x": 3.0,
        "y": 0.0,
        "z": 3.0
    }
}

This example will spawn a particle cuboid that is about 5x0x5 in size that will use the Redstone Block texture.