Skip to main content

Spawn Effect Cloud (Entity Action Type)

Spawns an area effect cloud, like the one a lingering potion leaves, at the entity's position.

Type ID: apoli:spawn_effect_cloud

Fields

FieldTypeDefaultDescription
radiusFloat3.0The radius of the cloud.
radius_on_useFloat-0.5How much the radius changes each time the cloud applies an effect.
wait_timeInteger10Ticks before the cloud starts working.
effectStatus Effect InstanceoptionalA status effect the cloud applies to entities inside it.
effectsArray of Status Effect InstanceoptionalSeveral status effects the cloud applies to entities inside it.
offsetVector{"x": 0, "y": 0, "z": 0}Moves the spawn point away from the entity by this much, in blocks.
spaceSpace"world"The frame offset is read in. "local" follows where the entity is looking, so z is forward and x is to its left.

Examples

"entity_action": {
    "type": "apoli:spawn_effect_cloud",
    "radius": 10.0,
    "wait_time": 40,
    "effect": {
        "effect": "minecraft:resistance",
        "amplifier": 3,
        "duration": 100
    }
}

This spawns a cloud with a radius of 10 blocks at the entity's position. Two seconds after it appears, it starts giving Resistance IV for 5 seconds to anything inside.