Skip to content

Baldi Dev Api Exclusive Page

public class PrincipalShadow : MonoBehaviour { public float speed = 2f; private int speedIncreaseCount = 0; void Start() { Events.OnWrongAnswer += () => { if (IsPlayerInDetention()) { speedIncreaseCount++; speed = 2f + (speedIncreaseCount * 0.5f); } }; }

private void StartDetention() { wrongStreak = 0; BaldiGameManager.TeleportToCustomLevel("DetentionMaze"); } } Create a new scene (or procedural map) using the API’s LevelBuilder : baldi dev api

builder.Finalize(); }

using BaldiAPI; using UnityEngine; [BaldiMod] public class DetentionDimensionMod : ModBase { public override void OnModLoad() { Events.OnWrongAnswer += OnWrongAnswerStreak; } public class PrincipalShadow : MonoBehaviour { public float

Call this in OnModLoad . Make a moving “Principal’s Shadow” that speeds up each time you hit a wrong answer inside detention : private int speedIncreaseCount = 0

DebugAPI.Log("Detention started"); DebugAPI.DrawTileGrid(true); Add a cheat command to teleport directly to detention:

Add this to a prefab and spawn it inside the detention level using: