Skip to main content

Module end_city

Module end_city 

Source
Expand description

End city. Vanilla’s EndCityPieces: recursive template-based piece generation (base → towers → bridges → house towers/ships/fat towers), depth ≤ 8.

Structs§

EndCityPiece
End-city piece (template name, world template-origin, rotation).
EndCityStructure
Registered under "minecraft:end_city". Consumes rotation RNG first, then probes a rotation-dependent 5×5 lowestY (reject <60). Biome-checks at the final position.
SharedState 🔒
Mirrors vanilla’s TOWER_BRIDGE_GENERATOR.shipCreated.

Enums§

SectionKind 🔒
Produces child pieces for a given section-generator kind.

Constants§

FAT_TOWER_BRIDGES 🔒
MAX_GEN_DEPTH 🔒
TOWER_BRIDGES 🔒

Functions§

add_piece 🔒
Vanilla’s addPiece. With pivot=ZERO and mirror=NONE, calculateConnectedPosition reduces to rotate(offset, parent.rotation) added to the parent’s template position.
generate_fat_tower 🔒
generate_house_tower 🔒
generate_tower 🔒
generate_tower_bridge 🔒
make_end_city_structure_piece 🔒
piece_bb 🔒
recursive_children 🔒
start_house_tower
Entry point. Mirrors vanilla’s EndCityPieces.startHouseTower.
template_size 🔒

Type Aliases§

Templates 🔒