Skip to content

Prevent Taming#

Since v1.0.0

Prevents the player that has the power from taming animals and executes a Bi-entity Action Type upon being prevented.

Type ID: voile:prevent_taming

Note

In the context of this power type, the 'actor' entity is the entity that has the power whilst the 'target' entity is the entity that the 'actor' attempted to tame.

Fields#

Field Type Default Description
bientity_action Bi-entity Action Type optional If specified, this action will be executed on either or both the 'actor' and 'target' entities.
bientity_condition Bi-entity Condition Type optional If specified, the specified actions will only be executed if this condition is fulfilled by either or both 'actor' and 'target' entities.

Examples#

{
    "type": "voile:prevent_taming",
    "bientity_condition": {
        "type": "apoli:target_condition",
        "condition": {
            "type": "apoli:entity_type",
            "entity_type": "minecraft:cat"
        }
    },
    "bientity_action": {
        "type": "apoli:actor_action",
        "action": {
            "type": "apoli:execute_command",
            "command": "title @s actionbar \"Taming failed!\""
        }
    }
}

This example will prevent the player that has the power from taming cats and executes an Execute Command (Entity Action Type) to the entity that has attempted to tame a cat.