August 1, 2026 · The Minely team
How to make a TNT run plugin with AI (vanishing floors, speed pads)
TNT Run is thirty seconds of pure tension: the floor deletes itself under your feet and everyone is one bad jump from the void. It is also one of the lightest minigames to build — one mechanic, executed well — which makes it a perfect example of how far a single clean system goes.
What a TNT run plugin actually is
A TNT run plugin removes blocks under players as they run across a floor of stacked layers. Players who fall drop to the next floor or, on the last one, into the void and out. The last player standing wins, with speed pads and a sudden-death timer to keep rounds fast.
How it works under the hood
A move listener records each player's last few block positions and schedules those blocks for removal after a short delay — the signature vanishing trail. Floors are layers of the arena, detected by Y level, with fall elimination on the final layer. The game state is the standard arena machine (lobby, countdown, running, ending), with round times of 30 to 90 seconds by design.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a TNT run plugin where blocks vanish under players, multiple floors, fall elimination, an auto-win when one player remains, and a sudden-death timer
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Implement the delayed block-removal trail with the arena state machine.
- Add multi-floor handling with per-layer tracking.
- Wire fall elimination and the last-alive win.
- Add speed pads and the sudden-death timer.
- Polish with round broadcasts and instant restarts.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
The removal delay is the whole feel: 0.3 to 0.6 seconds is the sweet spot — longer feels unresponsive, shorter is unplayable. Four to six floors keeps rounds in the one-minute range. A 90-second sudden-death that removes blocks faster ends stalling gracefully.
Tips that save you a rebuild
- Remove blocks on a delay, not instantly — instantly is unplayable, delayed is the game.
- Only remove the arena's floor blocks; griefing the walls is the first bug players find.
- Restore floors on reset by re-pasting the layer snapshot, not by tracking removed blocks.
- Keep rounds short; a TNT run that lasts five minutes has a camper, not a winner.
Questions people ask
Can I have powerups?
Speed pads and double-jump charges are the classics — small, visible, and cooldown-limited.
What about teams?
A team variant where the last team standing wins, with friendly-fire block removal disabled.
How do I stop stalling?
The sudden-death timer accelerates block removal and marks the staller on the scoreboard.
Describe your version in the composer and see it built in minutes. Iterate with follow-up edits until it is exactly your server's flavor.
