working version without custom blocks/textures
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { World } from "@minecraft/server";
|
||||
import { world, World } from "@minecraft/server";
|
||||
|
||||
class Level {
|
||||
levelCompleteCallback: Function;
|
||||
@@ -35,6 +35,7 @@ class Level {
|
||||
this.levelUpdateCallback();
|
||||
if (this.levelCheckCallback() && !this.isCompleted) {
|
||||
this.levelCompleteCallback();
|
||||
world.sendMessage("level completed.");
|
||||
this.isCompleted = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user