minecraft:behavior.delayed_attack's on_attack property not working
The minecraft:behavior.delayed_attack's on_attack 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, "require_complete_path": true, "on_attack": "example:delayed_attack" }
"example:delayed_attack": { "queue_command": { "target": "self", "command": ["summon pig", "say Everybody welcome the pig!"] } }
Does not summon a pig, nor execute in general (Proofed via debugging)
The only thing I receive from Bedrock is 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 | on_attack | on_attack | unknown child schema option type. Allowed types: ''