final
This commit is contained in:
@@ -132,30 +132,6 @@ system.runInterval(async () => {
|
||||
}
|
||||
});
|
||||
|
||||
world.afterEvents.chatSend.subscribe(async (event: ChatSendAfterEvent) => {
|
||||
const command = event.message.split(" ")[0];
|
||||
|
||||
trailMaker.OnChat(event);
|
||||
mindKeeper.chatCommands(event);
|
||||
triggerManager.OnChat(event);
|
||||
|
||||
if (command === "!reset") {
|
||||
world.sendMessage("Resetting");
|
||||
level1.reset();
|
||||
level2.reset();
|
||||
level3.reset();
|
||||
level4.reset();
|
||||
level5.reset();
|
||||
ResetGate();
|
||||
world.getDimension("Overworld").runCommand("/fill -86 71 253 -86 75 275 barrier replace air");
|
||||
world.getDimension("Overworld").runCommand("/fill -128 71 255 -128 74 276 barrier replace air");
|
||||
world.getDimension("Overworld").runCommand("/fill -154 69 255 -154 74 276 barrier replace air");
|
||||
world.getDimension("Overworld").runCommand("/fill -182 69 255 -182 74 276 barrier replace air");
|
||||
mindKeeper.set(CURRENT_LEVEL, 0);
|
||||
world.sendMessage("currentlevel = " + mindKeeper.get(CURRENT_LEVEL));
|
||||
}
|
||||
});
|
||||
|
||||
class ClonePos {
|
||||
point1: Vector3;
|
||||
point2: Vector3;
|
||||
@@ -318,3 +294,27 @@ world.beforeEvents.itemUseOn.subscribe((event) => {
|
||||
trailMaker.OnItemUse(event);
|
||||
triggerManager.OnItemUse(event);
|
||||
});
|
||||
|
||||
world.afterEvents.chatSend.subscribe(async (event: ChatSendAfterEvent) => {
|
||||
const command = event.message.split(" ")[0];
|
||||
|
||||
trailMaker.OnChat(event);
|
||||
mindKeeper.chatCommands(event);
|
||||
triggerManager.OnChat(event);
|
||||
|
||||
if (command === "!reset") {
|
||||
world.sendMessage("Resetting");
|
||||
level1.reset();
|
||||
level2.reset();
|
||||
level3.reset();
|
||||
level4.reset();
|
||||
level5.reset();
|
||||
ResetGate();
|
||||
world.getDimension("Overworld").runCommand("/fill -86 71 253 -86 75 275 barrier replace air");
|
||||
world.getDimension("Overworld").runCommand("/fill -128 71 255 -128 74 276 barrier replace air");
|
||||
world.getDimension("Overworld").runCommand("/fill -154 69 255 -154 74 276 barrier replace air");
|
||||
world.getDimension("Overworld").runCommand("/fill -182 69 255 -182 74 276 barrier replace air");
|
||||
mindKeeper.set(CURRENT_LEVEL, 0);
|
||||
world.sendMessage("currentlevel = " + mindKeeper.get(CURRENT_LEVEL));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user