Add this to a prefab and spawn it inside the detention level using:
ObjectSpawner.Spawn("PrincipalShadow", new Vector3(10, 0, 10)); Use the API’s GameTimer to force escape after 60 seconds: baldi dev api
// Shrink mechanism builder.AddEnvironmentEffect(EffectType.ShrinkZone, interval: 5f); Add this to a prefab and spawn it
private void StartDetention() { wrongStreak = 0; BaldiGameManager.TeleportToCustomLevel("DetentionMaze"); } } Create a new scene (or procedural map) using the API’s LevelBuilder : baldi dev api
DebugAPI.Log("Detention started"); DebugAPI.DrawTileGrid(true); Add a cheat command to teleport directly to detention:
// Add exit door (only appears after surviving 60 sec) builder.AddProp(PropType.Door, 18, 18);