{
  "name": "betterfortresses:jungle/bridge",
  "fallback": "betterfortresses:jungle/bridge_terminators",
  "elements": [
    {
      "weight": 45,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_start",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 9,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_end",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    // Pillar w/ chance of unlit beacon
    {
      "weight": 20,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_pillar",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "modifiers": [
          {
            "condition": {
              "type": "yungsapi:piece_in_range",
              "pieces": [
                "betterfortresses:jungle/bridge/bridge_pillar",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                "betterfortresses:jungle/bridge/bridge_stairs_r",
                "betterfortresses:jungle/bridge/bridge_stairs_l",
                "betterfortresses:jungle/bridge/blaze_stairs",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                "betterfortresses:jungle/blaze/blaze_0",
                "betterfortresses:jungle/blaze/blaze_broken_0_l",
                "betterfortresses:jungle/blaze/blaze_broken_0_r",
                "betterfortresses:jungle/blaze/blaze_broken_1_l",
                "betterfortresses:jungle/blaze/blaze_broken_1_r",
                "betterfortresses:jungle/blaze/blaze_broken_2_l",
                "betterfortresses:jungle/blaze/blaze_broken_2_r",
                "betterfortresses:jungle/blaze/blaze_broken_3_l",
                "betterfortresses:jungle/blaze/blaze_broken_3_r",
                "betterfortresses:jungle/blaze/blaze_broken_4_l",
                "betterfortresses:jungle/blaze/blaze_broken_4_r"
              ],
              "above_range": 40
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "output": ["betterfortresses:jungle/bridge/bridge_pillar_covered"]
              }
            ]
          },
          {
            "condition": {
              "type": "yungsapi:all_of",
              "conditions": [
                {
                  "type": "yungsapi:random_chance",
                  "chance": 0.08
                },
                {
                  "type": "yungsapi:not",
                  "condition": {
                    "type": "yungsapi:piece_in_range",
                    "pieces": [
                      "yungsapi:all"
                    ],
                    "above_range": 40
                  }
                }
              ]
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "x_offset": -1,
                "y_offset": 0,
                "z_offset": 0 ,
                "output": ["betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit"]
              },
              {
                "type": "yungsapi:delay_generation"
              }
            ]
          }
        ],
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    // Pillar w/ chance of lit beacon
    {
      "weight": 10,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_pillar",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "modifiers": [
          {
            "condition": {
              "type": "yungsapi:piece_in_range",
              "pieces": [
                "betterfortresses:jungle/bridge/bridge_pillar",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                "betterfortresses:jungle/bridge/bridge_stairs_r",
                "betterfortresses:jungle/bridge/bridge_stairs_l",
                "betterfortresses:jungle/bridge/blaze_stairs",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                "betterfortresses:jungle/blaze/blaze_0",
                "betterfortresses:jungle/blaze/blaze_broken_0_l",
                "betterfortresses:jungle/blaze/blaze_broken_0_r",
                "betterfortresses:jungle/blaze/blaze_broken_1_l",
                "betterfortresses:jungle/blaze/blaze_broken_1_r",
                "betterfortresses:jungle/blaze/blaze_broken_2_l",
                "betterfortresses:jungle/blaze/blaze_broken_2_r",
                "betterfortresses:jungle/blaze/blaze_broken_3_l",
                "betterfortresses:jungle/blaze/blaze_broken_3_r",
                "betterfortresses:jungle/blaze/blaze_broken_4_l",
                "betterfortresses:jungle/blaze/blaze_broken_4_r"
              ],
              "above_range": 40
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "output": ["betterfortresses:jungle/bridge/bridge_pillar_covered"]
              }
            ]
          },
          {
            "condition": {
              "type": "yungsapi:all_of",
              "conditions": [
                {
                  "type": "yungsapi:random_chance",
                  "chance": 0.04
                },
                {
                  "type": "yungsapi:not",
                  "condition": {
                    "type": "yungsapi:piece_in_range",
                    "pieces": [
                      "yungsapi:all"
                    ],
                    "above_range": 40
                  }
                }
              ]
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "x_offset": -1,
                "y_offset": 0,
                "z_offset": 0 ,
                "output": ["betterfortresses:jungle/bridge/bridge_pillar_beacon_lit"]
              },
              {
                "type": "yungsapi:delay_generation"
              }
            ]
          }
        ],
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    // Pillar w/ chance of shelter
    {
      "weight": 15,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_pillar",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "modifiers": [
          {
            "condition": {
              "type": "yungsapi:piece_in_range",
              "pieces": [
                "betterfortresses:jungle/bridge/bridge_pillar",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                "betterfortresses:jungle/bridge/bridge_stairs_r",
                "betterfortresses:jungle/bridge/bridge_stairs_l",
                "betterfortresses:jungle/bridge/blaze_stairs",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                "betterfortresses:jungle/blaze/blaze_0",
                "betterfortresses:jungle/blaze/blaze_broken_0_l",
                "betterfortresses:jungle/blaze/blaze_broken_0_r",
                "betterfortresses:jungle/blaze/blaze_broken_1_l",
                "betterfortresses:jungle/blaze/blaze_broken_1_r",
                "betterfortresses:jungle/blaze/blaze_broken_2_l",
                "betterfortresses:jungle/blaze/blaze_broken_2_r",
                "betterfortresses:jungle/blaze/blaze_broken_3_l",
                "betterfortresses:jungle/blaze/blaze_broken_3_r",
                "betterfortresses:jungle/blaze/blaze_broken_4_l",
                "betterfortresses:jungle/blaze/blaze_broken_4_r"
              ],
              "above_range": 40
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "output": ["betterfortresses:jungle/bridge/bridge_pillar_covered"]
              }
            ]
          },
          {
            "condition": {
              "type": "yungsapi:all_of",
              "conditions": [
                {
                  "type": "yungsapi:random_chance",
                  "chance": 0.2
                },
                {
                  "type": "yungsapi:not",
                  "condition": {
                    "type": "yungsapi:piece_in_range",
                    "pieces": [
                      "yungsapi:all"
                    ],
                    "above_range": 40
                  }
                }
              ]
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "x_offset": -1,
                "y_offset": 0,
                "z_offset": 0 ,
                "output": ["betterfortresses:jungle/bridge/bridge_pillar_shelter"]
              },
              {
                "type": "yungsapi:delay_generation"
              }
            ]
          }
        ],
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 1,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_stairs_r",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "name": "bridge_stairs",
        "max_count": 2,
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 40
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            },
            {
              "type": "yungsapi:not",
              "condition": {
                "type": "yungsapi:piece_in_range",
                "pieces": [
                  "betterfortresses:jungle/bridge/bridge_pillar",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                  "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                  "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                  "betterfortresses:jungle/bridge/bridge_stairs_r",
                  "betterfortresses:jungle/bridge/bridge_stairs_l",
                  "betterfortresses:jungle/bridge/blaze_stairs",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                  "betterfortresses:jungle/blaze/blaze_0",
                  "betterfortresses:jungle/blaze/blaze_broken_0_l",
                  "betterfortresses:jungle/blaze/blaze_broken_0_r",
                  "betterfortresses:jungle/blaze/blaze_broken_1_l",
                  "betterfortresses:jungle/blaze/blaze_broken_1_r",
                  "betterfortresses:jungle/blaze/blaze_broken_2_l",
                  "betterfortresses:jungle/blaze/blaze_broken_2_r",
                  "betterfortresses:jungle/blaze/blaze_broken_3_l",
                  "betterfortresses:jungle/blaze/blaze_broken_3_r",
                  "betterfortresses:jungle/blaze/blaze_broken_4_l",
                  "betterfortresses:jungle/blaze/blaze_broken_4_r"
                ],
                "above_range": 40
              }
            }
          ]
        },
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 1,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_stairs_r",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "name": "bridge_stairs_forced",
        "max_count": 3,
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "min_required_depth": 15,
              "max_possible_depth": 40
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            },
            {
              "type": "yungsapi:not",
              "condition": {
                "type": "yungsapi:piece_in_range",
                "pieces": [
                  "betterfortresses:jungle/bridge/bridge_pillar",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                  "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                  "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                  "betterfortresses:jungle/bridge/bridge_stairs_r",
                  "betterfortresses:jungle/bridge/bridge_stairs_l",
                  "betterfortresses:jungle/bridge/blaze_stairs",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                  "betterfortresses:jungle/blaze/blaze_0",
                  "betterfortresses:jungle/blaze/blaze_broken_0_l",
                  "betterfortresses:jungle/blaze/blaze_broken_0_r",
                  "betterfortresses:jungle/blaze/blaze_broken_1_l",
                  "betterfortresses:jungle/blaze/blaze_broken_1_r",
                  "betterfortresses:jungle/blaze/blaze_broken_2_l",
                  "betterfortresses:jungle/blaze/blaze_broken_2_r",
                  "betterfortresses:jungle/blaze/blaze_broken_3_l",
                  "betterfortresses:jungle/blaze/blaze_broken_3_r",
                  "betterfortresses:jungle/blaze/blaze_broken_4_l",
                  "betterfortresses:jungle/blaze/blaze_broken_4_r"
                ],
                "above_range": 40
              }
            }
          ]
        },
        "is_priority": true,
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 1,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_stairs_l",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "name": "bridge_stairs",
        "max_count": 2,
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 40
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            },
            {
              "type": "yungsapi:not",
              "condition": {
                "type": "yungsapi:piece_in_range",
                "pieces": [
                  "betterfortresses:jungle/bridge/bridge_pillar",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                  "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                  "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                  "betterfortresses:jungle/bridge/bridge_stairs_r",
                  "betterfortresses:jungle/bridge/bridge_stairs_l",
                  "betterfortresses:jungle/bridge/blaze_stairs",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                  "betterfortresses:jungle/blaze/blaze_0",
                  "betterfortresses:jungle/blaze/blaze_broken_0_l",
                  "betterfortresses:jungle/blaze/blaze_broken_0_r",
                  "betterfortresses:jungle/blaze/blaze_broken_1_l",
                  "betterfortresses:jungle/blaze/blaze_broken_1_r",
                  "betterfortresses:jungle/blaze/blaze_broken_2_l",
                  "betterfortresses:jungle/blaze/blaze_broken_2_r",
                  "betterfortresses:jungle/blaze/blaze_broken_3_l",
                  "betterfortresses:jungle/blaze/blaze_broken_3_r",
                  "betterfortresses:jungle/blaze/blaze_broken_4_l",
                  "betterfortresses:jungle/blaze/blaze_broken_4_r"
                ],
                "above_range": 40
              }
            }
          ]
        },
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 1,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_stairs_l",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "name": "bridge_stairs_forced",
        "max_count": 3,
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "min_required_depth": 15,
              "max_possible_depth": 40
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            },
            {
              "type": "yungsapi:not",
              "condition": {
                "type": "yungsapi:piece_in_range",
                "pieces": [
                  "betterfortresses:jungle/bridge/bridge_pillar",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                  "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                  "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                  "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                  "betterfortresses:jungle/bridge/bridge_stairs_r",
                  "betterfortresses:jungle/bridge/bridge_stairs_l",
                  "betterfortresses:jungle/bridge/blaze_stairs",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                  "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                  "betterfortresses:jungle/blaze/blaze_0",
                  "betterfortresses:jungle/blaze/blaze_broken_0_l",
                  "betterfortresses:jungle/blaze/blaze_broken_0_r",
                  "betterfortresses:jungle/blaze/blaze_broken_1_l",
                  "betterfortresses:jungle/blaze/blaze_broken_1_r",
                  "betterfortresses:jungle/blaze/blaze_broken_2_l",
                  "betterfortresses:jungle/blaze/blaze_broken_2_r",
                  "betterfortresses:jungle/blaze/blaze_broken_3_l",
                  "betterfortresses:jungle/blaze/blaze_broken_3_r",
                  "betterfortresses:jungle/blaze/blaze_broken_4_l",
                  "betterfortresses:jungle/blaze/blaze_broken_4_r"
                ],
                "above_range": 40
              }
            }
          ]
        },
        "is_priority": true,
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 5,
      "element": {
        "location": "betterfortresses:jungle/bridge/blaze_stairs",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "name": "blaze_stairs",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "min_required_depth": 17
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 5,
      "element": {
        "location": "betterfortresses:jungle/bridge/blaze_stairs",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "name": "blaze_stairs_forced",
        "max_count": 1,
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "min_required_depth": 27
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "is_priority": true,
        "deadend_pool": "betterfortresses:jungle/bridge_terminators",
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 10,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_junction_2",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "modifiers": [
          {
            "condition": {
              "type": "yungsapi:piece_in_range",
              "pieces": [
                "betterfortresses:jungle/bridge/bridge_pillar",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                "betterfortresses:jungle/bridge/bridge_stairs_r",
                "betterfortresses:jungle/bridge/bridge_stairs_l",
                "betterfortresses:jungle/bridge/blaze_stairs",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                "betterfortresses:jungle/blaze/blaze_0",
                "betterfortresses:jungle/blaze/blaze_broken_0_l",
                "betterfortresses:jungle/blaze/blaze_broken_0_r",
                "betterfortresses:jungle/blaze/blaze_broken_1_l",
                "betterfortresses:jungle/blaze/blaze_broken_1_r",
                "betterfortresses:jungle/blaze/blaze_broken_2_l",
                "betterfortresses:jungle/blaze/blaze_broken_2_r",
                "betterfortresses:jungle/blaze/blaze_broken_3_l",
                "betterfortresses:jungle/blaze/blaze_broken_3_r",
                "betterfortresses:jungle/blaze/blaze_broken_4_l",
                "betterfortresses:jungle/blaze/blaze_broken_4_r"
              ],
              "above_range": 40
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "output": ["betterfortresses:jungle/bridge/bridge_junction_2_covered"]
              }
            ]
          }
        ],
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 6,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_junction_3",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "modifiers": [
          {
            "condition": {
              "type": "yungsapi:piece_in_range",
              "pieces": [
                "betterfortresses:jungle/bridge/bridge_pillar",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                "betterfortresses:jungle/bridge/bridge_stairs_r",
                "betterfortresses:jungle/bridge/bridge_stairs_l",
                "betterfortresses:jungle/bridge/blaze_stairs",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                "betterfortresses:jungle/blaze/blaze_0",
                "betterfortresses:jungle/blaze/blaze_broken_0_l",
                "betterfortresses:jungle/blaze/blaze_broken_0_r",
                "betterfortresses:jungle/blaze/blaze_broken_1_l",
                "betterfortresses:jungle/blaze/blaze_broken_1_r",
                "betterfortresses:jungle/blaze/blaze_broken_2_l",
                "betterfortresses:jungle/blaze/blaze_broken_2_r",
                "betterfortresses:jungle/blaze/blaze_broken_3_l",
                "betterfortresses:jungle/blaze/blaze_broken_3_r",
                "betterfortresses:jungle/blaze/blaze_broken_4_l",
                "betterfortresses:jungle/blaze/blaze_broken_4_r"
              ],
              "above_range": 40
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "output": ["betterfortresses:jungle/bridge/bridge_junction_3_covered"]
              }
            ]
          }
        ],
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "element_type": "yungsapi:yung_single_element"
      }
    },
    {
      "weight": 3,
      "element": {
        "location": "betterfortresses:jungle/bridge/bridge_junction_4",
        "processors": "betterfortresses:jungle/main",
        "projection": "rigid",
        "condition": {
          "type": "yungsapi:all_of",
          "conditions": [
            {
              "type": "yungsapi:depth",
              "max_possible_depth": 45
            },
            {
              "type": "yungsapi:altitude",
              "bottom_cutoff_y": 31
            }
          ]
        },
        "modifiers": [
          {
            "condition": {
              "type": "yungsapi:piece_in_range",
              "pieces": [
                "betterfortresses:jungle/bridge/bridge_pillar",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_0",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_1",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_2",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_3",
                "betterfortresses:jungle/bridge/bridge_pillar_ruined_4",
                "betterfortresses:jungle/bridge/bridge_pillar_beacon_unlit",
                "betterfortresses:jungle/bridge/bridge_pillar_shelter",
                "betterfortresses:jungle/bridge/bridge_stairs_r",
                "betterfortresses:jungle/bridge/bridge_stairs_l",
                "betterfortresses:jungle/bridge/blaze_stairs",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_0",
                "betterfortresses:jungle/bridge/blaze_stairs_ruined_1",
                "betterfortresses:jungle/blaze/blaze_0",
                "betterfortresses:jungle/blaze/blaze_broken_0_l",
                "betterfortresses:jungle/blaze/blaze_broken_0_r",
                "betterfortresses:jungle/blaze/blaze_broken_1_l",
                "betterfortresses:jungle/blaze/blaze_broken_1_r",
                "betterfortresses:jungle/blaze/blaze_broken_2_l",
                "betterfortresses:jungle/blaze/blaze_broken_2_r",
                "betterfortresses:jungle/blaze/blaze_broken_3_l",
                "betterfortresses:jungle/blaze/blaze_broken_3_r",
                "betterfortresses:jungle/blaze/blaze_broken_4_l",
                "betterfortresses:jungle/blaze/blaze_broken_4_r"
              ],
              "above_range": 40
            },
            "target_selector": {
              "type": "yungsapi:self"
            },
            "actions": [
              {
                "type": "yungsapi:transform",
                "output": ["betterfortresses:jungle/bridge/bridge_junction_4_covered"]
              }
            ]
          }
        ],
        "enhanced_terrain_adaptation": {
          "type": "yungsapi:none"
        },
        "element_type": "yungsapi:yung_single_element"
      }
    }
  ]
}