Api - Baldi Dev

// Shrink mechanism builder.AddEnvironmentEffect(EffectType.ShrinkZone, interval: 5f);

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

public void BuildDetentionMaze() { var builder = new LevelBuilder("DetentionMaze", 20, 20); builder.FillWithTile(TileType.Brick); // Spiral maze pattern for (int i = 0; i < 40; i++) { int x = Random.Range(1, 19); int z = Random.Range(1, 19); builder.SetTile(x, z, TileType.Hall); } // Shrink mechanism builder

using BaldiAPI; using UnityEngine; [BaldiMod] public class DetentionDimensionMod : ModBase { public override void OnModLoad() { Events.OnWrongAnswer += OnWrongAnswerStreak; } i++) { int x = Random.Range(1

// Add exit door (only appears after surviving 60 sec) builder.AddProp(PropType.Door, 18, 18);

Here’s an to the Baldi’s Basics Developer API (commonly used in mods like Baldi’s Basics Plus or community-driven Baldi Custom engines).

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