Skip to content

close_off_fluid_sources_processor

finnsetchell edited this page Aug 15, 2026 · 1 revision

close_off_fluid_sources_processor

Turns fluid source blocks next to your structure into solid blocks, so lava or water sitting against the outside cannot pour in once the structure generates. Use it on structures that carve into terrain that is likely to be flooded, nether builds surrounded by lava especially.

Ported from RepurposedStructures (TelepathicGrunt).

Minimal example

{
  "processor_type": "moogs_structures:close_off_fluid_sources_processor",
  "ignore_down": true,
  "if_air_in_world": true,
  "weighted_list_of_replacement_blocks": [
    { "block": "minecraft:blackstone", "weight": 3 },
    { "block": "minecraft:basalt", "weight": 1 }
  ]
}

Fields

Field Type Required Default Notes
weighted_list_of_replacement_blocks array yes What fluid gets replaced with.
weighted_list_of_replacement_blocks[].block block id yes Plain block id, not a block-state.
weighted_list_of_replacement_blocks[].weight int yes 1 or higher. Relative to the sum.
ignore_down bool no false Skip the block directly below, leaving the floor alone.
if_air_in_world bool no false Only act where the world block is currently air.

How it works

Every non-solid block in your piece (air and cave air being the usual case) looks at its six neighbours in the world. Any neighbour that is a fluid source is replaced with a block rolled from your list. Your own structure blocks are never changed by this processor.

Mark the inside of the structure with cave air so the hollow interior triggers the sweep.

Gotchas

  • Only source blocks. Flowing fluid is left alone, so a waterfall or lavafall running past the structure still runs.
  • Water and lava are treated the same. There is no fluid filter. If you only want lava sealed, this processor cannot tell the difference.
  • Block ids only, no properties. Blocks are placed in their default state, so minecraft:basalt always comes out axis=y. Pick blocks whose default state looks right.
  • A waterlogged neighbour counts as a source, and the whole block is replaced rather than just drained.

See also

Clone this wiki locally