{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:iron_golem",
      "is_experimental": false,
      "is_summonable": true,
      "is_spawnable": false,
      "spawn_category": "misc"
    },
    "components": {
      "minecraft:attack": {
        "damage": {
          "range_max": 21,
          "range_min": 7
        }
      },
      "minecraft:balloonable": {
        "mass": 2.0
      },
      "minecraft:behavior.hurt_by_target": {
        "entity_types": {
          "filters": {
            "operator": "!=",
            "test": "is_family",
            "subject": "other",
            "value": "creeper"
          }
        },
        "priority": 2
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "look_distance": 6,
        "priority": 7
      },
      "minecraft:behavior.melee_attack": {
        "track_target": true,
        "priority": 1
      },
      "minecraft:behavior.move_through_village": {
        "only_at_night": true,
        "priority": 3,
        "speed_multiplier": 0.6
      },
      "minecraft:behavior.move_towards_dwelling_restriction": {
        "priority": 4
      },
      "minecraft:behavior.move_towards_target": {
        "priority": 2,
        "speed_multiplier": 0.9,
        "within_radius": 32
      },
      "minecraft:behavior.nearest_attackable_target": {
        "set_persistent": true,
        "must_reach": true,
        "must_see": true,
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "monster"
                },
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 1,
                  "value": "creeper"
                }
              ]
            }
          },
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "hoglin"
                },
                {
                  "test": "is_difficulty",
                  "subject": 0,
                  "operator": 1,
                  "value": 0
                }
              ]
            }
          },
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "zoglin"
                },
                {
                  "test": "is_difficulty",
                  "subject": 0,
                  "operator": 1,
                  "value": 0
                }
              ]
            }
          }
        ],
        "priority": 3
      },
      "minecraft:behavior.offer_flower": {
        "filters": [
          {
            "all_of": [
              {
                "test": "is_daytime",
                "value": true
              }
            ]
          }
        ],
        "priority": 5
      },
      "minecraft:behavior.random_look_around": {
        "priority": 8
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.6,
        "xz_dist": 16
      },
      "minecraft:behavior.target_when_pushed": {
        "entity_types": [
          {
            "filters": {
              "all_of": [
                {
                  "subject": "other",
                  "test": "is_family",
                  "value": "monster"
                },
                {
                  "operator": "!=",
                  "test": "is_family",
                  "subject": "other",
                  "value": "creeper"
                }
              ]
            }
          }
        ],
        "percent_chance": 5.0,
        "priority": 1
      },
      "minecraft:can_climb": {},
      "minecraft:collision_box": {
        "height": 2.9,
        "width": 1.4
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": "no"
        }
      },
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:health": {
        "max": 100,
        "value": 100
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "cause": "lava",
            "damage_per_tick": 4,
            "filters": {
              "operator": "==",
              "test": "in_lava",
              "subject": "self",
              "value": true
            }
          }
        ]
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:jump.static": {},
      "minecraft:knockback_resistance": {
        "value": 1.0
      },
      "minecraft:leashable": {
        "can_be_cut": false,
        "can_be_stolen": false,
        "on_unleash_interact_only": true,
        "presets": [
          {
            "hard_distance": 6.0,
            "max_distance": 10.0,
            "spring_type": "bouncy",
            "soft_distance": 4.0
          }
        ]
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/iron_golem.json"
      },
      "minecraft:movement": {
        "value": 0.25
      },
      "minecraft:movement.basic": {},
      "minecraft:nameable": {},
      "minecraft:navigation.walk": {
        "avoid_damage_blocks": true,
        "avoid_water": true,
        "can_path_over_water": false,
        "using_door_annotation": true
      },
      "minecraft:persistent": {},
      "minecraft:physics": {},
      "minecraft:preferred_path": {
        "default_block_cost": 1.5,
        "jump_cost": 5,
        "preferred_path_blocks": [
          {
            "blocks": [
              "grass_path"
            ],
            "cost": 0
          },
          {
            "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": 1
          },
          {
            "blocks": [
              "bed",
              "lectern",
              "composter",
              "grindstone",
              "blast_furnace",
              "smoker",
              "fletching_table",
              "cartography_table",
              "brewing_stand",
              "smithing_table",
              "cauldron",
              "barrel",
              "loom",
              "stonecutter"
            ],
            "cost": 50
          }
        ],
        "max_fall_blocks": 1
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:type_family": {
        "family": [
          "irongolem",
          "mob"
        ]
      }
    },
    "component_groups": {
      "minecraft:player_created": {
        "minecraft:behavior.hurt_by_target": {
          "entity_types": {
            "filters": {
              "all_of": [
                {
                  "operator": "!=",
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "operator": "!=",
                  "test": "is_family",
                  "subject": "other",
                  "value": "creeper"
                }
              ]
            }
          },
          "priority": 2
        }
      },
      "minecraft:village_created": {
        "minecraft:behavior.defend_village_target": {
          "must_reach": true,
          "entity_types": [
            {
              "filters": {
                "AND": [
                  {
                    "OR": [
                      {
                        "test": "is_family",
                        "subject": 1,
                        "operator": 0,
                        "value": "mob"
                      },
                      {
                        "test": "is_family",
                        "subject": 1,
                        "operator": 0,
                        "value": "player"
                      }
                    ]
                  }
                ]
              }
            }
          ],
          "priority": 1
        },
        "minecraft:dweller": {
          "can_find_poi": false,
          "dwelling_type": "village",
          "can_migrate": true,
          "dweller_role": "defender",
          "first_founding_reward": 0,
          "update_interval_base": 60,
          "update_interval_variant": 40
        }
      }
    },
    "events": {
      "minecraft:from_player": {
        "add": {
          "component_groups": [
            "minecraft:player_created"
          ]
        }
      },
      "minecraft:from_village": {
        "add": {
          "component_groups": [
            "minecraft:village_created"
          ]
        }
      }
    }
  }
}