DMZ Ultra WorldGen Fix
A lightweight compatibility and bug-fix addon for DMZ Ultra on Minecraft Forge 1.20.1 that resolves severe server-tick freezes and mass item/XP floods near Dragon Mine Z structures in Terralith and modded worlds—without disabling Bleach places or structure protection.
Why This Mod Exists
When running DMZ Ultra (0.5.x) alongside worldgen datapacks such as Terralith or common modded Overworld content (Croptopia, The Great Outdoors, Quark, Create, Powah, Create: New Age, AllTheOres, Mekanism, etc.), two worldgen conflicts can occur:
- Mass Dropped Ores, Rocks & XP Orbs Near DMZ Structures (
StructureGuard):StructureGuardsnapshots the full bounding box of Dragon Mine Z structures (such as Babidi's Ship, Goku's House, Buu's House, Cell Arena, and RR Towers) before post-structure feature decoration runs. When ores, diorite, granite, andesite, gravel, caves, sculk, or Ancient Cities generate over that raw stone/deepslate,StructureGuardtreats them as structural damage, callsBlock.dropResourcesat 64 blocks/tick, and overwrites them back to solid stone—ejecting thousands of ores, rocks, and XP orbs onto the surface and tanking server TPS. - Infinite
[bleach.places]Chunk-Survey Loop (PlaceGround): Karakura Town and Fake Karakura check candidate sites against a strict vanilla whitelist. Natural Terralith blocks (persistent=truetree leaves, multi-layer snow, waterlogged dripleaves/seagrass, blackstone, terracotta, basalt, calcite, dripstone, cobblestone, slanted branches/fallen logs) and modded wild flora/ores (croptopia:*,the_great_outdoors:*,quark:hollow_*_log,dragonminez:rocky_*,create:ochrum, untagged modded ores,powah:dry_ice) are mistakenly treated as player-built structures. This causes[BlPlaces]to refuse dozens of spots in a row every 10 seconds, forcing chunk loads on the Server thread and causing multi-secondCan't keep up!delays without dropping client FPS.
DMZ Ultra WorldGen Fix patches both systems cleanly via non-invasive Mixins without modifying dmzultra or requiring any extra worldgen mods.
Features
- Terralith & Modded Flora/Terrain Support for
[bleach.places]: ExpandsPlaceGroundso Karakura Town, Fake Karakura, and other Bleach places locate valid wild terrain quickly instead of stalling the Server thread.- Recognizes Terralith
persistent=trueleaves, wide/slanted tree branches, fallen logs, multi-layer snow, waterlogged aquatic plants (seagrass,kelp,small_dripleaf, mangrove roots), and Terralith natural surface stones/terracotta. - Recognizes modded wild crops (while still protecting player farms via
farmlandunderneath), wildflowers, hollow logs, Dragon Mine Z rocky stone, Create/Quark natural stones,powah:dry_ice, and both tagged and untagged modded ores. - Player Builds Stay Protected: Player houses, farms (
farmland), villages (dirt_path, slabs, stairs, planks, bricks), DMZ structures, and DMZ Sparking cities (concrete) continue to be refused as built ground.
- Recognizes Terralith
- Stops
StructureGuardOre/Block/XP Floods (New & Existing Worlds):- Treats post-structure worldgen features (ores, granite, diorite, andesite, gravel, dirt, caves, sculk, Ancient Cities) replacing recorded raw
stone/deepslateas unchanged—works immediately on existing saves too. - Skips snapshotting raw underground filler blocks (
stone,deepslate,bedrock,gravel,granite,diorite,andesite,tuff,calcite,dripstone_block) in new chunks, cuttingStructureGuardmemory, save size, and scan overhead while keeping real structure blockskiProofand repairable. - Prevents
StructureGuard.restore()from callingBlock.dropResourceson blocks that were not placed by a player, eliminating phantom item and XP orb drops.
- Treats post-structure worldgen features (ores, granite, diorite, andesite, gravel, dirt, caves, sculk, Ancient Cities) replacing recorded raw
- Zero Extra Mod Dependencies: All cross-mod block checks use pure
ResourceLocationstring/tag matching—safe to include in both heavy and Lite modpacks.
Cleaning Up an Existing Affected World
Installing this mod immediately prevents new items from dropping and allows [bleach.places] to succeed. If an older world already had thousands of items dropped near a DMZ structure, run these commands once in-game:
/kill @e[type=minecraft:item]
/kill @e[type=minecraft:experience_orb]
/dmzultra bleach places retry
Configuration
A config file is generated automatically on first launch at:
config/dmz_ultra_worldgen_fix-common.toml
Every patch can be toggled independently:
[BleachPlacesFix]fixPlaceGroundWorldgenCompatibility(default:true)acceptPersistentLeaves(default:true)acceptModdedWildFlora(default:true)acceptTerralithAndModdedGround(default:true)expandNaturalTreeDetection(default:true)
[StructureGuardFix]ignoreWorldgenReplacementsOfNaturalTerrain(default:true)skipRecordingRawUndergroundFiller(default:true)preventNonPlayerDropsOnRestore(default:true)
Requirements
- Minecraft:
1.20.1 - Forge:
47+ - DMZ Ultra:
0.5+(tested on0.5.7)
No other mods are required.
Modpacks & Servers
Install on both client and server (required on the server/singleplayer host for worldgen and StructureGuard fixes). Free to include in modpacks.