
Your structures generate exactly as built — and stay that way.
Structure Integrity keeps any structure (vanilla, datapack or mod) identical to its .nbt template: no geodes, no ores, no rocks, no water or lava creeping in. It can also protect the structure in game: unbreakable walls, no teleporting inside, spawners that only wake up when players are really inside. Server-side only.
How to use it
- Launch the game once. The mod lists every structure installed in your pack in
config/structureintegrity/structures/, one file per mod or datapack. - In a structure's entry, set
"enabled": trueand change the settings you want. - In game, run
/structureintegrity reload.
Everything is off by default, so nothing changes until you enable a structure. Generation settings only apply to newly generated chunks.
Configuration
Each structure has its own copy of every setting. New structures and new options are added automatically; your values are never overwritten. _defaults.json holds the values given to newly detected structures.
enabled
Turns the rules on for this structure. When false, the structure behaves like vanilla.
Generation
| Setting | Default | What it does |
|---|---|---|
keep_intact |
true |
Locks the template blocks during world generation, then puts back any block that changed. Also disables terrain adaptation (no blending into the ground). |
block_natural_features |
true |
No feature can generate inside the structure: geodes, rocks, moss, dripstone, vegetation, lakes, springs. This includes the structure_void cells. |
allow_ores_in_void |
false |
Lets ores generate in the structure_void cells. Ores never replace template blocks. |
allow_carvers_in_void |
true |
Lets caves and ravines dig through the structure_void cells. Template blocks are never carved. |
block_other_structures |
true |
Other structures (mineshafts, other dungeons…) cannot generate through this one. |
remove_fluids |
true |
Removes water and lava from the structure_void cells and stops template blocks from becoming waterlogged. Water placed in your own template is kept. |
fluid_replacement |
"minecraft:air" |
The block that replaces removed fluids. Use "minecraft:stone" to fill instead of empty. |
block_fluid_flow_in |
true |
Water and lava from outside cannot flow into the structure. Fluids already inside keep flowing normally. |
restore_pass |
true |
Once a chunk is fully generated, checks every template block and restores any that differ. A safety net for mods that bypass the lock. |
Protection
| Setting | Default | What it does |
|---|---|---|
unbreakable |
true |
Template blocks cannot be broken; they behave like bedrock, with no mining progress. |
structure_void_is_free |
true |
Blocks where the template had structure_void (surrounding rock, caves) can be broken and placed freely. Only the structure itself is protected, so players never get trapped. |
breakable_whitelist |
[] |
Blocks that can still be broken, by ID or #tag (e.g. "minecraft:cobweb"). |
allow_placing |
false |
Allows placing blocks inside the structure. When false, buckets are blocked too. |
placeable_whitelist |
[] |
Blocks that can still be placed (e.g. "minecraft:torch", "minecraft:wall_torch"). |
placeable_are_breakable |
true |
Whitelisted placeable blocks can also be broken, so players can pick their torches back up. |
allow_interactions |
true |
Chests, doors, trapdoors, levers and buttons work normally. |
interaction_blacklist |
[] |
Blocks that cannot be used even when interactions are allowed (e.g. a lever reserved for a puzzle). |
block_modifying_interactions |
true |
Blocks right-clicks that transform blocks: stripping logs, tilling, waxing, bone meal, lighting fires, spawn eggs on spawners. |
anti_griefing |
true |
Explosions, fire, outside pistons and mob griefing (endermen, withers, ravagers…) cannot damage the structure. Fire touching the structure goes out at once. |
protect_decorative_entities |
true |
Item frames, paintings and armor stands cannot be broken. |
bypass_creative |
true |
Players in creative mode ignore the protection. |
bypass_op_level |
-1 |
Permission level that ignores the protection (2 = operators). -1 means nobody. |
show_messages |
true |
Shows a short action-bar message when something is blocked. |
Access
| Setting | Default | What it does |
|---|---|---|
block_teleport_in |
true |
Players cannot teleport from outside into the structure: ender pearls, chorus fruit, and teleports from other mods. Teleporting between rooms of the same structure stays allowed. |
teleport_in_whitelist |
[] |
Items that still allow teleporting in, by ID or #tag. |
block_teleport_out |
false |
Players cannot teleport out of the structure, forcing them to walk back out. |
teleport_out_whitelist |
[] |
Items that still allow teleporting out, such as a return scroll placed at the end of a dungeon. |
item_use_window_ticks |
40 |
How long after using a whitelisted item the teleport is still allowed (20 ticks = 1 second). |
block_elytra |
true |
Elytra flight stops as soon as a player enters the structure. |
/tp and /spreadplayers always work.
Spawning
| Setting | Default | What it does |
|---|---|---|
disable_natural_spawns |
true |
No mob spawns naturally inside the structure. Spawners are not affected. |
spawners_require_player_inside |
false |
Spawners (and trial spawners) only activate when a player in range stands inside the structure's original open space. Players hiding in the rock around it, or in tunnels they dug, are ignored. |
Commands
All commands require operator permission.
/structureintegrity list [mod]: lists installed structures by mod. Click an ID to copy it./structureintegrity info: shows the structure, piece and rules at your position./structureintegrity show: outlines the protected boxes with particles for 30 seconds./structureintegrity stats: counts refused geodes, restored blocks, removed fluids…/structureintegrity reload: reloads the config.
Compatibility
- Server-side only: players do not need the mod to join.
- Works with any structure using templates: vanilla, datapacks, jigsaw dungeons, structure mods.
- Compatible with C2ME.
- Where structures appear is left to vanilla and other mods: Structure Integrity only cares about what happens inside them.
☕ Support my work: ko-fi.com/rouliane
All Rights Reserved. Free to use in any modpack. Please do not fork or re-upload.