import { world, system, Player } from "@minecraft/server";
function rot(player) {
const rotation = player.getRotation();
return {
y: Math.round(rotation.y * 10) / 10,
x: Math.round(rotation.x * 10) / 10
};
}
system.runInterval(() => {
const players = world.getPlayers();
for (const player of players) {
const rotation = rot(player);
player.runCommandAsync(`title @a actionbar y ${rotation.y} x ${rotation.x}`);
if (rotation.y <= -70.0 && rotation.y >= -89.9) {
player.runCommandAsync(`title @a title ВВЕРХ`);
}
}
}); Post #73
109
Градус поворота
- 🔥 1