efs
This commit is contained in:
@@ -209,7 +209,6 @@ let PlayGateOpenAnimation = async () => {
|
||||
};
|
||||
|
||||
let ResetGate = () => {
|
||||
gateState = GateState.closed;
|
||||
SetFrame(gateFrames[0], gateRoot);
|
||||
};
|
||||
|
||||
@@ -294,7 +293,7 @@ Commands.register(PREFIX, "info", (arg) => {
|
||||
system.afterEvents.scriptEventReceive.subscribe((event) => {
|
||||
if (event.id == "cc:getId") {
|
||||
let id = event.message;
|
||||
world.sendMessage("Script got the id " + id);
|
||||
// world.sendMessage("Script got the id " + id);
|
||||
mindKeeper.set(AGENT_ID, id);
|
||||
}
|
||||
|
||||
@@ -337,7 +336,8 @@ world.afterEvents.chatSend.subscribe(async (event: ChatSendAfterEvent) => {
|
||||
triggerManager.OnChat(event);
|
||||
|
||||
if (command === "!reset") {
|
||||
mindKeeper.set(CURRENT_LEVEL, 12);
|
||||
ResetGate();
|
||||
mindKeeper.set(CURRENT_LEVEL, 0);
|
||||
world.sendMessage("currentlevel = " + mindKeeper.get(CURRENT_LEVEL));
|
||||
world.sendMessage("Resetting");
|
||||
level1.reset();
|
||||
@@ -345,7 +345,6 @@ world.afterEvents.chatSend.subscribe(async (event: ChatSendAfterEvent) => {
|
||||
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 -182 69 255 -182 74 276 barrier replace air");
|
||||
setNPCDialog("bilal1", "bilal_beforelevel_1_1");
|
||||
|
||||
Reference in New Issue
Block a user