Structure Offsets - JMilamber/TravelersCrossroads GitHub Wiki

All offsets contain the following fields:

  1. "Offset" - the distance in blocks away from the structure the path should end.
  2. "Structures" - a structure or tag of structures to apply the offset to.

During path generation, structures that are found to a part of the "path_structures.json" structure tag are then referenced across all offset files. If the structure is in a file then that offset is used, the search stops at the first file containing the structure. The Path end is then moved that amount of blocks away from the structures origin point toward the path's origin.

Example from default_offset.json and default_offset_structures.json:

{
  "type": "travelers_crossroads:distance_offset_modifier",
  "offset": 10,
  "structures": "#travelers_crossroads:default_offset_structures"
}
{
  "values": [
    "minecraft:pillager_outpost",
    "minecraft:igloo",
    "minecraft:swamp_hut",
    "minecraft:ruined_portal_desert",
    "minecraft:ruined_portal_jungle",
    "minecraft:ruined_portal_swamp",
    "minecraft:ruined_portal_mountain",
    "minecraft:jungle_pyramid"
  ]
}

See DataPack page for file path when overriding via datapack.