Add Formatting (Thank God)

This commit is contained in:
2024-08-29 15:47:58 +02:00
parent 545e47a9f3
commit 1ab45204b9
35 changed files with 2331 additions and 254 deletions

View File

@@ -1,8 +1,8 @@
import { Vector3, world } from "@minecraft/server";
import Level from "../../Commandeer/level/level";
import pupeteer from "../../Commandeer/pupeteer";
import { teleportAgent, isAgentAt, getAgentLocation, getAgent } from "../../Commandeer/utils/agentUtils";
import { vector3, Vector3Add, Vector3ToCommandString } from "../../Commandeer/utils/vectorUtils";
import { teleportAgent, isAgentAt } from "../../Commandeer/utils/agentUtils";
import { vector3 } from "../../Commandeer/utils/vectorUtils";
import { mindKeeper, CURRENT_LEVEL } from "../../main";
import { MinecraftBlockTypes } from "../../vanilla-data/mojang-block";
import { mission2part1Conditions } from "../../levelConditions/mission2part1Conditions";
@@ -38,9 +38,9 @@ const mission2part1: Level = new Level(
//Check if the agent is at the end position
//than check if the level is correct
let isComplete = false;
let isAgentAtEndPosition = isAgentAt(mission2part1EndPosition);
const isAgentAtEndPosition = isAgentAt(mission2part1EndPosition);
if (isAgentAtEndPosition) {
let isCorrect = checkBlockCondition(mission2part1Conditions);
const isCorrect = checkBlockCondition(mission2part1Conditions);
if (isCorrect) {
isComplete = true;

View File

@@ -1,8 +1,8 @@
import { Vector3, world } from "@minecraft/server";
import Level from "../../Commandeer/level/level";
import pupeteer from "../../Commandeer/pupeteer";
import { teleportAgent, isAgentAt, getAgentLocation, getAgent } from "../../Commandeer/utils/agentUtils";
import { vector3, Vector3Add, Vector3ToCommandString } from "../../Commandeer/utils/vectorUtils";
import { teleportAgent, isAgentAt } from "../../Commandeer/utils/agentUtils";
import { vector3 } from "../../Commandeer/utils/vectorUtils";
import { mindKeeper, CURRENT_LEVEL } from "../../main";
import { MinecraftBlockTypes } from "../../vanilla-data/mojang-block";
import { checkBlockCondition } from "../../Commandeer/level/levelTypes";
@@ -38,9 +38,9 @@ const mission2part2: Level = new Level(
//Check if the agent is at the end position
//than check if the level is correct
let isComplete = false;
let isAgentAtEndPosition = isAgentAt(mission2part2EndPosition);
const isAgentAtEndPosition = isAgentAt(mission2part2EndPosition);
if (isAgentAtEndPosition) {
let isCorrect = checkBlockCondition(mission2part2Conditions);
const isCorrect = checkBlockCondition(mission2part2Conditions);
if (isCorrect) {
isComplete = true;