world.afterEvents.itemUse.subscribe((result) => {
if (result.itemStack.typeId != "ninjago:item") return;
for (const player of world.getAllPlayers()) {
if (player.id == result.source.id) continue;
player.applyKnockback(Math.random(0, 1), 5, 5);
}
});
I've gotten this and it doesn't really work the way I want it to.ive checked the wiki but I don't see anything about a radius. Will increasing the horizontal/vertical strength increase radius as well