Mojira Archive
MCPE-190277

minecraft:behavior.delayed_attack's set_persistent property not working

minecraft:behavior.delayed_attack's set_persistent property is not working like intended and documented here (https://bedrock.dev/docs/stable/Entities#minecraft%3Abehavior.delayed_attack)

For example:

"minecraft:behavior.delayed_attack": {
        "attack_duration": 1,
        "cooldown_time": 5,
        "attack_once": false,
        "set_persistent": true
}

Throws the following error:

[Json][error]-My World | actor_definitions | C:/Users/MyUser/AppData/Local/Packages/Microsoft.MinecraftUWP_8wekyb3d8bbwe/LocalState/games/com.mojang/development_behavior_packs/example_bp | example:mob | minecraft:entity | components | minecraft:behavior.delayed_attack | set_persistent | child 'set_persistent' not valid here.

Unresolved

theaddonn

2025-01-31, 08:19 PM

2025-01-31, 08:19 PM

0

1

Unconfirmed

1.21.70.20 Preview, 1.21.60.28 Preview, 1.21.51 Hotfix

-