Skip to main content

Module fortress

Module fortress 

Source
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 🔒
FortressPiece
Output piece record.
NetherFortressStructure
Registered under "minecraft:fortress". Shares the nether_complexes set with bastion_remnant (jigsaw), so it’s dispatched from the jigsaw arm’s fallthrough.
ParentRef 🔒
Parent context threaded through generate_child_*.
PieceWeight 🔒

Enums§

FortressPieceData
Vanilla nether-fortress piece payload persisted for feature-stage placement.
FortressPieceKind 🔒

Constants§

DIST_LIMIT 🔒
HORIZONTAL_ORDER 🔒
Vanilla Direction.Plane.HORIZONTAL order: 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 for selfSeed) then discards it. We mirror vanilla: call create_piece for 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 to BridgeEndFiller if 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 🔒