Skip to main content

Module nether_portal

Module nether_portal 

Source
Expand description

Nether portal destination calculation.

ConstantsΒ§

NETHER_TARGET_PORTAL_SEARCH_RADIUS πŸ”’
OVERWORLD_TARGET_PORTAL_SEARCH_RADIUS πŸ”’
PORTAL_RECTANGLE_SCAN_LIMIT πŸ”’

FunctionsΒ§

approximate_exit_position πŸ”’
Returns vanilla’s scaled and world-border-clamped approximate exit position.
calculate_transition πŸ”’
Calculates a Nether portal teleport transition after the target chunks are available.
create_dimension_transition πŸ”’
dimension_transition_from_exit πŸ”’
largest_portal_rectangle_at πŸ”’
prewarm_center πŸ”’
Returns the chunk centered on a block position for portal prewarming.
prewarm_chunk_radius πŸ”’
Returns the full-chunk square radius Steel prewarms before resolving a Nether portal exit.
search_radius πŸ”’
Returns vanilla’s target portal search radius for Nether portal dimension changes.