show_npc_pathfinding_bug: type: task debug: true script: # Define start/end locations - define origin - define destination # Define sub-points to break up pathfinding - define distance_between_waypoints 15 - define waypoints <[origin].points_between[<[destination]>].distance[<[distance_between_waypoints]>]> # Ensure all chunks along the way are loaded - foreach <[waypoints]> as:waypoint: - if !<[waypoint].chunk.is_loaded>: - chunkload <[waypoint].chunk> duration:10m - narrate <[waypoint].chunk.is_loaded> # Create the npc - create parrot bird_1 <[origin]> save:bird - define bird # Send it on its way - foreach <[waypoints]> as:waypoint: - ~walk <[bird]> <[waypoint]> auto_range lookat:<[waypoint]> - narrate "Done - Bird reached destination."