Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Tags
Creators
Details
TNT Optimizer
Optimizes TNT chain reactions using the Breadth-First Search (BFS) algorithm to reduce server lag during large explosions. How it works:
Instead of vanilla's repeated block scanning, TNT Optimizer uses BFS to visit each block in the blast radius exactly once. It also tracks which blocks have already been scanned this tick, so overlapping explosions from chain reactions skip redundant work entirely. Features:
BFS-based block scanning ā each block visited exactly once per explosion Cross-explosion deduplication ā overlapping blast zones don't rescan shared blocks Zero overhead for isolated TNT ā single TNT with nothing nearby fires instantly with no extra work Vanilla behavior preserved ā blast radius, damage, and knockback are completely unchanged Server-side only ā no client install required, works automatically for all players
This mod reduces the strain on the device running the server. Not the time it takes for the TNT to explode. In singleplayer, server-side performance is improved, which may reduce lag during large TNT explodes. Client-side rendering effects such as particles are not affected.
Compatibility:
Minecraft 1.21.11 Fabric Loader 0.18.1+ Fabric API required


