system.runInterval(() => {
const entities = world.getDimension('overworld').getEntities({ type: 'minecraft:arrow' })
for (let e of entities) {
const coords = {
x: e.location.z,
y: e.location.y,
z: e.location.z
}
const xVel = e.getVelocity().x;
if (xVel.toFixed(3) > 0.000) {
world.getDimension('overworld').spawnParticle('minecraft:knockback_roar_particle', coords, new MolangVariableMap())
}
}
},1)
idk if im using it wrong but im not sure why this particle isnt spawning