{
  "format_version": "1.19.50",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:iron_golem",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:player_created": {
        "minecraft:behavior.hurt_by_target": {
          "priority": 2,
          "entity_types": {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "player"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "creeper"
                }
              ]
            }
          }
        },
        "minecraft:dweller": {
          "dwelling_type": "village",
          "dweller_role": "defender",
          "update_interval_base": 60,
          "update_interval_variant": 40,
          "can_find_poi": false,
          "can_migrate": true,
          "first_founding_reward": 0
        },
        "minecraft:behavior.move_to_village": {
          "priority": 4,
          "speed_multiplier": 0.9
        },
        "minecraft:preferred_path": {
          "max_fall_blocks": 1,
          "jump_cost": 20,
          "default_block_cost": 3,
          "preferred_path_blocks": [
            {
              "cost": 0,
              "blocks": [
                "grass_path"
              ]
            },
            {
              "cost": 1,
              "blocks": [
                "cobblestone",
                "stone",
                "stonebrick",
                "sandstone",
                "mossy_cobblestone",
                "stone_slab",
                "stone_slab2",
                "stone_slab3",
                "stone_slab4",
                "double_stone_slab",
                "double_stone_slab2",
                "double_stone_slab3",
                "double_stone_slab4",
                "wooden_slab",
                "double_wooden_slab",
                "planks",
                "brick_block",
                "nether_brick",
                "red_nether_brick",
                "end_bricks",
                "red_sandstone",
                "stained_glass",
                "glass",
                "glowstone",
                "prismarine",
                "emerald_block",
                "diamond_block",
                "lapis_block",
                "gold_block",
                "redstone_block",
                "purple_glazed_terracotta",
                "white_glazed_terracotta",
                "orange_glazed_terracotta",
                "magenta_glazed_terracotta",
                "light_blue_glazed_terracotta",
                "yellow_glazed_terracotta",
                "lime_glazed_terracotta",
                "pink_glazed_terracotta",
                "gray_glazed_terracotta",
                "silver_glazed_terracotta",
                "cyan_glazed_terracotta",
                "blue_glazed_terracotta",
                "brown_glazed_terracotta",
                "green_glazed_terracotta",
                "red_glazed_terracotta",
                "black_glazed_terracotta"
              ]
            },
            {
              "cost": 50,
              "blocks": [
                "bed",
                "lectern",
                "composter",
                "grindstone",
                "blast_furnace",
                "smoker",
                "fletching_table",
                "cartography_table",
                "brewing_stand",
                "smithing_table",
                "cauldron",
                "barrel",
                "loom",
                "stonecutter"
              ]
            }
          ]
        }
      },
      "minecraft:village_created": {
        "minecraft:behavior.defend_village_target": {
          "priority": 1,
          "must_reach": true,
          "attack_chance": 0.05,
          "entity_types": {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "mob"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                }
              ]
            }
          }
        },
        "minecraft:dweller": {
          "dwelling_type": "village",
          "dweller_role": "defender",
          "update_interval_base": 60,
          "update_interval_variant": 40,
          "can_find_poi": false,
          "can_migrate": true,
          "first_founding_reward": 0
        },
        "minecraft:behavior.move_to_village": {
          "priority": 4,
          "speed_multiplier": 0.9
        },
        "minecraft:preferred_path": {
          "max_fall_blocks": 1,
          "jump_cost": 20,
          "default_block_cost": 3,
          "preferred_path_blocks": [
            {
              "cost": 0,
              "blocks": [
                "grass_path"
              ]
            },
            {
              "cost": 1,
              "blocks": [
                "cobblestone",
                "stone",
                "stonebrick",
                "sandstone",
                "mossy_cobblestone",
                "stone_slab",
                "stone_slab2",
                "stone_slab3",
                "stone_slab4",
                "double_stone_slab",
                "double_stone_slab2",
                "double_stone_slab3",
                "double_stone_slab4",
                "wooden_slab",
                "double_wooden_slab",
                "planks",
                "brick_block",
                "nether_brick",
                "red_nether_brick",
                "end_bricks",
                "red_sandstone",
                "stained_glass",
                "glass",
                "glowstone",
                "prismarine",
                "emerald_block",
                "diamond_block",
                "lapis_block",
                "gold_block",
                "redstone_block",
                "purple_glazed_terracotta",
                "white_glazed_terracotta",
                "orange_glazed_terracotta",
                "magenta_glazed_terracotta",
                "light_blue_glazed_terracotta",
                "yellow_glazed_terracotta",
                "lime_glazed_terracotta",
                "pink_glazed_terracotta",
                "gray_glazed_terracotta",
                "silver_glazed_terracotta",
                "cyan_glazed_terracotta",
                "blue_glazed_terracotta",
                "brown_glazed_terracotta",
                "green_glazed_terracotta",
                "red_glazed_terracotta",
                "black_glazed_terracotta"
              ]
            },
            {
              "cost": 50,
              "blocks": [
                "bed",
                "lectern",
                "composter",
                "grindstone",
                "blast_furnace",
                "smoker",
                "fletching_table",
                "cartography_table",
                "brewing_stand",
                "smithing_table",
                "cauldron",
                "barrel",
                "loom",
                "stonecutter"
              ]
            }
          ]
        },
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:iron_minion",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 3,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:the_lord_villager",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 1,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:the_priest_villager",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 1,
              "should_leash": false
            }
          ]
        }
      },
      "minecraft:patrol_follower": {
        "minecraft:behavior.follow_target_captain": {
          "priority": 5,
          "speed_multiplier": 0.9,
          "within_radius": 64,
          "follow_distance": 5
        }
      },
      "regeneration": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 2,
              "visible": 1,
              "ambient": false,
              "duration": 30
            }
          ]
        }
      },
      "blessed_regeneration": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 4,
              "visible": 1,
              "ambient": false,
              "duration": 35
            }
          ]
        }
      },
      "blessed_regeneration_cured": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 4,
              "visible": 1,
              "ambient": false,
              "duration": 25
            }
          ],
          "remove_effects": "weakness"
        }
      },
      "blessed_regeneration_cured_1": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 4,
              "visible": 1,
              "ambient": false,
              "duration": 25
            }
          ],
          "remove_effects": "poison"
        }
      },
      "blessed_regeneration_cured_2": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 4,
              "visible": 1,
              "ambient": false,
              "duration": 25
            }
          ],
          "remove_effects": "wither"
        }
      },
      "blessed_regeneration_cured_3": {
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "effect": "regeneration",
              "amplifier": 4,
              "visible": 1,
              "ambient": false,
              "duration": 25
            }
          ],
          "remove_effects": "slowness"
        }
      }
    },
    "components": {
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:type_family": {
        "family": [
          "irongolem",
          "mob"
        ]
      },
      "minecraft:nameable": {},
      "minecraft:collision_box": {
        "width": 1.4,
        "height": 2.9
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/iron_golem.json"
      },
      "minecraft:health": {
        "value": 100,
        "max": 100
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "\u003d\u003d",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": false,
        "avoid_water": true,
        "avoid_damage_blocks": true
      },
      "minecraft:movement.basic": {},
      "minecraft:jump.static": {},
      "minecraft:can_climb": {},
      "minecraft:interact": {
        "interactions": [
          {
            "on_interact": {
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "player"
                  },
                  {
                    "test": "has_equipment",
                    "domain": "hand",
                    "subject": "other",
                    "value": "iron_ingot"
                  },
                  {
                    "test": "is_missing_health",
                    "value": true
                  }
                ]
              }
            },
            "use_item": true,
            "health_amount": 25,
            "play_sounds": "irongolem.repair",
            "interact_text": "action.interact.repair"
          }
        ]
      },
      "minecraft:attack": {
        "damage": {
          "range_min": 7,
          "range_max": 21
        }
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                }
              ]
            },
            "deals_damage": false
          }
        ]
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "villager"
                }
              ]
            },
            "deals_damage": false
          }
        ],
        "triggers": {
          "cause": "fall",
          "deals_damage": false
        }
      },
      "minecraft:angry": {
        "duration": 30,
        "broadcast_anger": true,
        "broadcast_anger_on_attack": true,
        "broadcast_anger_on_being_attacked": true,
        "broadcast_range": 16,
        "broadcast_targets": [
          "villager"
        ]
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 2,
        "entity_types": {
          "filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!\u003d",
            "value": "villager"
          }
        }
      },
      "minecraft:knockback_resistance": {
        "value": 1.0
      },
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0
      },
      "minecraft:balloonable": {
        "mass": 2.0
      },
      "minecraft:preferred_path": {
        "max_fall_blocks": 1,
        "jump_cost": 5,
        "default_block_cost": 1.5,
        "preferred_path_blocks": [
          {
            "cost": 0,
            "blocks": [
              "grass_path"
            ]
          },
          {
            "cost": 1,
            "blocks": [
              "cobblestone",
              "stone",
              "stonebrick",
              "sandstone",
              "mossy_cobblestone",
              "stone_slab",
              "stone_slab2",
              "stone_slab3",
              "stone_slab4",
              "double_stone_slab",
              "double_stone_slab2",
              "double_stone_slab3",
              "double_stone_slab4",
              "wooden_slab",
              "double_wooden_slab",
              "planks",
              "brick_block",
              "nether_brick",
              "red_nether_brick",
              "end_bricks",
              "red_sandstone",
              "stained_glass",
              "glass",
              "glowstone",
              "prismarine",
              "emerald_block",
              "diamond_block",
              "lapis_block",
              "gold_block",
              "redstone_block",
              "purple_glazed_terracotta",
              "white_glazed_terracotta",
              "orange_glazed_terracotta",
              "magenta_glazed_terracotta",
              "light_blue_glazed_terracotta",
              "yellow_glazed_terracotta",
              "lime_glazed_terracotta",
              "pink_glazed_terracotta",
              "gray_glazed_terracotta",
              "silver_glazed_terracotta",
              "cyan_glazed_terracotta",
              "blue_glazed_terracotta",
              "brown_glazed_terracotta",
              "green_glazed_terracotta",
              "red_glazed_terracotta",
              "black_glazed_terracotta"
            ]
          },
          {
            "cost": 50,
            "blocks": [
              "bed",
              "lectern",
              "composter",
              "grindstone",
              "blast_furnace",
              "smoker",
              "fletching_table",
              "cartography_table",
              "brewing_stand",
              "smithing_table",
              "cauldron",
              "barrel",
              "loom",
              "stonecutter"
            ]
          }
        ]
      },
      "minecraft:behavior.target_when_pushed": {
        "priority": 1,
        "percent_chance": 5.0,
        "entity_types": [
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "monster"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "creeper"
                }
              ]
            }
          }
        ]
      },
      "minecraft:behavior.melee_attack": {
        "priority": 1,
        "track_target": true
      },
      "minecraft:behavior.move_towards_target": {
        "priority": 2,
        "speed_multiplier": 0.9,
        "within_radius": 32
      },
      "minecraft:behavior.move_through_village": {
        "priority": 3,
        "speed_multiplier": 0.6,
        "only_at_night": true
      },
      "minecraft:behavior.move_towards_dwelling_restriction": {
        "priority": 4,
        "speed_multiplier": 1
      },
      "minecraft:behavior.offer_flower": {
        "priority": 5,
        "filters": {
          "all_of": [
            {
              "test": "is_daytime",
              "value": true
            }
          ]
        }
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.6,
        "xz_dist": 16
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 8
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 3,
        "must_reach": true,
        "must_see": true,
        "entity_types": [
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "monster"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "operator": "!\u003d",
                  "value": "creeper"
                }
              ]
            },
            "within_default": 10
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "hoglin"
                },
                {
                  "test": "is_difficulty",
                  "operator": "!\u003d",
                  "value": "peaceful"
                }
              ]
            },
            "max_dist": 16
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "zoglin"
                },
                {
                  "test": "is_difficulty",
                  "operator": "!\u003d",
                  "value": "peaceful"
                }
              ]
            },
            "max_dist": 16
          }
        ]
      },
      "minecraft:persistent": {},
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:conditional_bandwidth_optimization": {}
    },
    "events": {
      "minecraft:from_player": {
        "add": {
          "component_groups": [
            "minecraft:player_created"
          ]
        }
      },
      "minecraft:from_village": {
        "sequence": [
          {
            "randomize": [
              {
                "weight": 90,
                "add": {
                  "component_groups": [
                    "minecraft:village_created",
                    " minecraft:spawn_iron_minion"
                  ]
                }
              },
              {
                "weight": 50,
                "add": {
                  "component_groups": [
                    "minecraft:village_created",
                    " minecraft:spawn_priest"
                  ]
                }
              },
              {
                "weight": 10,
                "add": {
                  "component_groups": [
                    "minecraft:village_created",
                    " minecraft:spawn_lord"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:spawn_as_patrol_follower": {
        "add": {
          "component_groups": [
            "minecraft:patrol_follower"
          ]
        }
      },
      "minecraft:give_regeneration_villager": {
        "add": {
          "component_groups": [
            "regeneration"
          ]
        }
      },
      "minecraft:give_blessed_regeneration_villager": {
        "add": {
          "component_groups": [
            "blessed_regeneration"
          ]
        }
      },
      "minecraft:give_blessed_regeneration_villager_cured": {
        "add": {
          "component_groups": [
            "blessed_regeneration_cured"
          ]
        }
      },
      "minecraft:give_blessed_regeneration_villager_cured_1": {
        "add": {
          "component_groups": [
            "blessed_regeneration_cured_1"
          ]
        }
      },
      "minecraft:give_blessed_regeneration_villager_cured_2": {
        "add": {
          "component_groups": [
            "blessed_regeneration_cured_2"
          ]
        }
      },
      "minecraft:give_blessed_regeneration_villager_cured_3": {
        "add": {
          "component_groups": [
            "blessed_regeneration_cured_3"
          ]
        }
      }
    }
  }
}