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?
