#Knockback Roar behavior is not working on simulated player

1 messages · Page 1 of 1 (latest)

prime venture
#
registerAsync('keyyard', 'knockback_roar', async (test) => {
    const location = {x: 2, y: 2, z: 2}
    const player = test.spawnSimulatedPlayer(location, 'Keyyard')
    player.triggerEvent('keyyard:knockback_roar')
    await test.idle(2)

    const target1 = test.spawnWithoutBehaviors(MinecraftEntityTypes.Pig, {x: 2, y: 2, z: 1})
    const target2 = test.spawnWithoutBehaviors(MinecraftEntityTypes.Cow, {x: 2, y: 2, z: 3})

    test.assertEntityInstancePresentInArea(target1, true)
    test.assertEntityInstancePresentInArea(target2, true)

    await test.idle(40)

    test.assertEntityPresentInArea('pig', false)
    test.assertEntityPresentInArea('cow', false)

    test.succeed()
})

This works when test manually, but however the dummy simulated player is not having the knockback roar effect that real player has.

Anyone know why?

prime venture
#

anyone? 😢

grizzled jay
prime venture
dusty cradle
#

in the first await test.idle(2)

prime venture
grizzled jay
prime venture
#

i have tried other behavior but only knockback roar is not working, i guess that's not supported then.