Movement Authority
Navigation & Pathfinding
Hazard cost weighting, stuck detection recovery heuristics, and centralized movement coordination.
Hazard Cost Weighting
Movement costs in movementCosts.js penalize environmental hazards:
Lava Proximity
+5000 cost penalty. Strongly avoids pathing near fluid lava sources.
Fire Blocks
+2000 cost penalty. Never walks directly over fire or campfire blocks.
Deep Open Water
+500 penalty. Prefers solid land routes unless bridging or swimming.
Steep Drops (> 3 blocks)
Prohibited without a verified water landing block below.
Stuck Detection & Recovery
If coordinate displacement remains < 0.5 blocks over 5 consecutive path ticks while moving:
- Clears current path nodes.
- Jumps or places temporary scaffolding beneath feet if trapped in a 1-block hole.
- Recalculates an alternate route with a widened search radius.