working version without custom blocks/textures

This commit is contained in:
2024-08-13 14:13:00 +02:00
parent 9d7b1e71ce
commit bc51d6899f
16 changed files with 733 additions and 434 deletions

View File

@@ -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;
}
}