Skip to content

Modify Behavior#

Since v1.0.0

Allows changing the behavior (passive, neutral, hostile) of mobs towards the power holder.

Type ID: voile:modify_behavior

Note

Most passive mobs cannot be made hostile, as they lack the ability to attack.

Fields#

Field Type Default Description
behavior String The desired behavior of the entity. Has to be either passive, neutral, or hostile.
entity_condition Entity Condition Type optional If specified, the behavior will only be applied to entities that fulfill this condition.
bientity_condition Bi-entity Condition Type optional If specified, the behavior will only be applied if this condition is fulfilled by either or both 'actor' and 'target' entities.

Examples#

{
    "type": "voile:modify_behavior",
    "behavior": "passive",
    "entity_condition": {
        "type": "apoli:entity_group",
        "group": "undead"
    }
}

This example makes all undead mobs passive towards the player.

{
    "type": "voile:modify_behavior",
    "behavior": "hostile",
    "entity_condition": {
        "type": "apoli:entity_type",
        "entity_type": "minecraft:cat"
    }
}

This example makes (untamed) cats hostile towards the player.