Expand description
Nether fortress. Vanilla’s NetherFortressPieces: start with a BridgeCrossing,
then weighted BFS over bridge/castle pools honoring place-count, prev-piece, and
collision constraints. Structure is vertically offset into Y ∈ [48, 70].
Structs§
- Builder 🔒
- Fortress
Piece - Output piece record.
- Nether
Fortress Structure - Registered under
"minecraft:fortress". Shares thenether_complexesset withbastion_remnant(jigsaw), so it’s dispatched from the jigsaw arm’s fallthrough. - Parent
Ref 🔒 - Parent context threaded through
generate_child_*. - Piece
Weight 🔒
Enums§
- Fortress
Piece Data - Vanilla nether-fortress piece payload persisted for feature-stage placement.
- Fortress
Piece 🔒Kind
Constants§
- DIST_
LIMIT 🔒 - HORIZONTAL_
ORDER 🔒 - Vanilla
Direction.Plane.HORIZONTALorder: N, E, S, W. - LOWEST_
Y 🔒 - MAGIC_
START_ 🔒Y - MAX_
DEPTH 🔒 - START_
X_ 🔒OFFSET - START_
Z_ 🔒OFFSET - Y_
HIGH_ 🔒ALLOWED - Y_
LOW_ 🔒ALLOWED
Functions§
- add_
children 🔒 - bridge_
weights 🔒 - castle_
weights 🔒 - create_
piece 🔒 - Mirrors vanilla’s
findAndCreateBridgePieceFactory+PIECE.createPiece. - find_
collision 🔒 - generate_
and_ 🔒add_ piece - Out-of-range branch builds a
BridgeEndFiller(consuming RNG forselfSeed) then discards it. We mirror vanilla: callcreate_piecefor RNG sync, don’t add. - generate_
child_ 🔒forward - generate_
child_ 🔒left - generate_
child_ 🔒right - generate_
fortress_ pieces - All fortress pieces for the chunk, vertically offset into
Y ∈ [48, 70]. - generate_
piece_ 🔒weighted - Vanilla’s
generatePiece. Falls back toBridgeEndFillerif no weighted pick succeeds within 5 attempts. On ineligible picks vanilla falls through to subsequent pieces in the list. - is_
ok_ 🔒box - make_
bounding_ 🔒box - Matches
StructurePiece.makeBoundingBox: width rotates with the direction axis. - move_
inside_ 🔒heights - orient_
box 🔒 - Matches
BoundingBox.orientBox. - overall_
bb 🔒