Skip to main content

Scare Mobs (Power Type)

Nearby mobs run away from the entity that has the power, the way creepers flee from cats. Only mobs that can pathfind are affected.

Type ID: apoli:scare_mobs

Fields

FieldTypeDefaultDescription
bientity_conditionBi-entity Condition TypeoptionalWhich mobs are scared. The actor is the entity with the power, and the target is the mob deciding whether to flee. Without it, every mob flees.
radiusDouble6.0How close a mob has to be before it starts fleeing.
speedDouble1.0Movement speed multiplier while fleeing.
note

A fleeing creeper never reaches you, so it never ignites. It still fights back as usual if you attack it first.

The check is skipped entirely while nobody in the game has this power, so it costs nothing on servers that don't use it.

Examples

{
    "type": "apoli:scare_mobs",
    "radius": 6.0,
    "speed": 1.2,
    "bientity_condition": {
        "type": "apoli:target_condition",
        "condition": {
            "type": "apoli:entity_type",
            "entity_type": "minecraft:creeper"
        }
    }
}

Creepers within 6 blocks flee, slightly faster than they walk.