Baldi Dev Api |top| Site
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:
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); } baldi dev api
Call this in OnModLoad . Make a moving “Principal’s Shadow” that speeds up each time you hit a wrong answer inside detention :
// Shrink mechanism builder.AddEnvironmentEffect(EffectType.ShrinkZone, interval: 5f); Add this to a prefab and spawn it
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).
builder.Finalize(); }
using BaldiAPI; using UnityEngine; [BaldiMod] public class DetentionDimensionMod : ModBase { public override void OnModLoad() { Events.OnWrongAnswer += OnWrongAnswerStreak; }