Skip to content

Prevent Breeding

Power Type.

Prevents the power holder from breeding AnimalEntitys that meet the bi-entity condition.

Type ID: apugli:prevent_breeding

Note

Executing entity actions uses up the breeding timer of the entity, in order to modify this timer, please use the Modify Breeding Cooldown power type.

Fields

Field Type Default Description
bientity_condition Bi-entity Condition optional The bi-entity condition type to check for with the power holder as the actor and the entity the actor is attempting to breed as the target.
bientity_action Bi-entity Action optional The bi-entity action type to execute upon failing to breed an entity with the power holder as the actor and the entity the actor is attempting to breed as the target.
prevent_follow Boolean optional Whether this power type prevents entities from following the power holder when a breeding item is held.

Example

{
    "type": "apugli:prevent_breeding",
    "bientity_condition": {
        "type": "origins:target_condition",
        "condition": {
            "type": "origins:tamed",
            "inverted": true
        }
    }
}
This example prevents the entity from breeding any animals that aren't tamed.