#forcefield?
1 messages · Page 1 of 1 (latest)
system.runInterval(() => {
for (const p of world.getAllPlayers()) {
const otherps = world
.getAllPlayers()
.filter((player) => player.name !== p.name);
otherps.forEach((otherp) => {
if (p.dimension.getPlayers({ maxDistance: 3, name: otherp.name })) {
otherp.applyKnockback(p.location.x, p.location.z, 5, 0.6);
}
});
}
});
probably something like that
actually, i dont think that would work
should work if I'm not mistaken
yeah but it's using all player as a variable, and then it's filtering all players that aren't the all players' name
i feel like it should work tho
ok ill try