TNT Simulator — Modding Lab

Build your own TNT quickly: fill the form → generate mod code → paste into the simulator’s Mod loader and click Load code.
✅ Works with: registerMod + registerTNT
💡 Tip: start with “Normal TNT” template and tweak
⚠️ Mods run JS in the page (only load trusted code)

How to use

  1. Create TNT below (or pick a template).
  2. Click Generate Mod Code.
  3. Copy the code.
  4. In your simulator: open Mods panel → paste into editor → Load code.
  5. Select your TNT in the dropdown and boom 💥

1) TNT Builder

Tip: If your simulator has worldgen hooks too, you can also build modAPI.worldgen.on(...) packs. This page focuses on TNT mods (the most fun).

2) Generated Mod Code

Paste this into your simulator’s mod editor and click Load code.
// Click “Generate Mod Code” to create your mod…

Quick Cheatsheet

ctx.ent.x / ctx.ent.y — block coords where TNT detonates
ctx.ent.power — selected power (x1, x10, x100…)
ctx.strongBlast(x,y,p) — carves crater; returns radius
ctx.spawnExplosionVFX(x,y,r,p) — shockwaves, sparks, screenshake
ctx.applyExplosionDamage(x,y,r,p) — hurts villagers
ctx.fillCircle(x,y,r,tile) — fill crater with WATER/LAVA/etc
ctx.spawnProjectile({...}) — flying TNT projectiles
If you want, I can tailor this page to match your exact API names if your functions differ.