This commit is contained in:
2024-08-21 16:15:22 +02:00
parent cd5f473460
commit 35af9ffc97
38 changed files with 1122 additions and 1090 deletions

View File

@@ -69,14 +69,14 @@ export class Trigger {
}
Update() {
world
.getDimension("overworld")
.getEntities({ type: "minecraft:player" })
.forEach((player) => {
//Check if the distance between the player and the trigger is less than the width of the trigger
// if (this.hasPlayerEnterdTrigger(player.location)) {
// world.sendMessage(`Player ${player.nameTag} is in trigger`);
// }
});
// world
// .getDimension("overworld")
// .getEntities({ type: "minecraft:player" })
// .forEach((player) => {
// //Check if the distance between the player and the trigger is less than the width of the trigger
// // if (this.hasPlayerEnterdTrigger(player.location)) {
// // world.sendMessage(`Player ${player.nameTag} is in trigger`);
// // }
// });
}
}