{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "gh:skeletongolem",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:interacciones": {
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "hand",
                  "value": "gh:skeletongarmor_red"
                },
                "event": "minecraft:skeletonr_armor_on"
              },
              "interact_text": "action.interact.armadura",
              "use_item": true,
              "play_sounds": "armor.equip_gold"
            },
            {
              "on_interact": {
                "filters": {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "hand",
                  "value": "gh:skeletongarmor_blue"
                },
                "event": "minecraft:skeletonb_armor_on"
              },
              "interact_text": "action.interact.armadura",
              "use_item": true,
              "play_sounds": "armor.equip_gold"
            }
          ]
        }
      },
      "attack_mode": {
        "minecraft:angry": {
          "duration": 1,
          "broadcast_anger": false,
          "broadcast_range": 0,
          "calm_event": {
            "event": "on_calm",
            "target": "self"
          }
        },
        "minecraft:experience_reward": {
          "on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
        }
      },
      "minecraft:removearmor": {
        "minecraft:spell_effects": {
          "remove_effects": [
            "resistance",
            "speed",
            "strenght",
            "jump",
            "night_vision",
            "regeneration",
            "absorption"
          ]
        }
      },
      "minecraft:red_armor": {
        "minecraft:is_saddled": {},
        "minecraft:behavior.player_ride_tamed": {},
        "minecraft:attack": {
          "damage": 18
        },
        "minecraft:health": {
          "value": 110,
          "max": 125
        },
        "minecraft:inventory": {
          "inventory_size": 27,
          "container_type": "container",
          "private": false
        },
        "minecraft:input_ground_controlled": {},
        "minecraft:can_power_jump": {},
        "minecraft:is_chested": {},
        "minecraft:rideable": {
          "seat_count": 1,
          "family_types": [
            "player"
          ],
          "interact_text": "action.interact.mount",
          "seats": {
            "position": [
              0.0,
              1.025,
              -0.6
            ]
          }
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/skeletongolem.json"
        },
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "hand",
                  "value": "minecraft:shears"
                },
                "event": "minecraft:removearmor"
              },
              "spawn_items": {
                "table": "loot_tables/entities/skeletongolem.json"
              },
              "interact_text": "action.interact.unequip",
              "use_item": false,
              "hurt_item": 2,
              "play_sounds": "armor.equip_generic"
            }
          ]
        },
        "minecraft:variant": {
          "value": 1
        }
      },
      "minecraft:blue_armor": {
        "minecraft:is_saddled": {},
        "minecraft:behavior.player_ride_tamed": {},
        "minecraft:attack": {
          "damage": 18
        },
        "minecraft:health": {
          "value": 110,
          "max": 125
        },
        "minecraft:inventory": {
          "inventory_size": 27,
          "container_type": "container",
          "private": false
        },
        "minecraft:input_ground_controlled": {},
        "minecraft:can_power_jump": {},
        "minecraft:is_chested": {},
        "minecraft:rideable": {
          "seat_count": 1,
          "family_types": [
            "player"
          ],
          "interact_text": "action.interact.mount",
          "seats": {
            "position": [
              0.0,
              1.025,
              -0.6
            ]
          }
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/skeletongolem.json"
        },
        "minecraft:interact": {
          "interactions": [
            {
              "on_interact": {
                "filters": {
                  "test": "has_equipment",
                  "subject": "other",
                  "domain": "hand",
                  "value": "minecraft:shears"
                },
                "event": "minecraft:removearmor"
              },
              "spawn_items": {
                "table": "loot_tables/entities/skeletongolem.json"
              },
              "interact_text": "action.interact.unequip",
              "use_item": false,
              "hurt_item": 2,
              "play_sounds": "armor.equip_generic"
            }
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      }
    },
    "components": {
      "minecraft:behavior.look_at_target": {
        "look_distance": 60,
        "look_time": [
          0,
          0
        ],
        "probability": 1
      },
      "minecraft:movement": {
        "value": 0.4
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0,
        "breathes_water": true
      },
      "minecraft:collision_box": {
        "width": 1,
        "height": 1.4
      },
      "minecraft:scale": {
        "value": 1.2
      },
      "minecraft:nameable": {},
      "minecraft:type_family": {
        "family": [
          "irongolem",
          "mob"
        ]
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/skeleton.json"
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:tameable": {
        "probability": 0.33,
        "tame_items": [
          "bone_block"
        ],
        "tame_event": {
          "event": "minecraft:on_tame",
          "target": "self"
        }
      },
      "minecraft:behavior.follow_owner": {
        "priority": 6,
        "speed_multiplier": 1.0,
        "start_distance": 10,
        "stop_distance": 2
      },
      "minecraft:behavior.owner_hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.owner_hurt_target": {
        "priority": 2
      },
      "minecraft:attack": {
        "damage": 16
      },
      "minecraft:health": {
        "value": 70,
        "max": 85
      },
      "minecraft:sittable": {},
      "minecraft:is_dyeable": {
        "interact_text": "action.interact.dye"
      },
      "minecraft:rideable": {
        "seat_count": 1,
        "family_types": [
          "player"
        ],
        "interact_text": "action.interact.mount",
        "seats": {
          "position": [
            0.0,
            1.025,
            -0.6
          ]
        }
      },
      "minecraft:knockback_resistance": {
        "value": 1.0
      },
      "minecraft:navigation.walk": {
        "can_walk": true,
        "is_amphibious": true,
        "can_pass_doors": true,
        "can_break_doors": false,
        "avoid_portals": false
      },
      "minecraft:movement.basic": {},
      "minecraft:jump.static": {},
      "minecraft:behavior.melee_attack": {
        "priority": 0,
        "reach_multiplier": 0.5,
        "attack_duration": 0.4,
        "speed_multiplier": 1,
        "track_target": true
      },
      "minecraft:behavior.delayed_attack": {
        "priority": 0,
        "reach_multiplier": 1.2,
        "attack_duration": 1,
        "hit_delay_pct": 0.0,
        "track_target": true
      },
      "minecraft:behavior.move_towards_restriction": {
        "priority": 5,
        "speed_multiplier": 1
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 2
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "within_radius": 30,
        "reselect_targets": true,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "monster"
                }
              ]
            },
            "max_dist": 30
          }
        ],
        "must_see": true
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.6
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 6,
        "probability": 0.8
      },
      "minecraft:behavior.random_look_around": {
        "priority": 8
      },
      "minecraft:on_target_acquired": {
        "event": "attack_mode",
        "target": "self"
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      }
    },
    "events": {
      "attack_mode": {
        "add": {
          "component_groups": [
            "attack_mode"
          ]
        }
      },
      "on_calm": {
        "remove": {
          "component_groups": [
            "attack_mode"
          ]
        }
      },
      "minecraft:removearmor": {
        "remove": {
          "component_groups": [
            "minecraft:reptil_armor",
            "minecraft:gold_armor"
          ]
        }
      },
      "minecraft:skeletonr_armor_on": {
        "remove": {
          "component_groups": [
            "minecraft:removearmor",
            "minecraft:interacciones"
          ]
        },
        "add": {
          "component_groups": [
            "minecraft:red_armor"
          ]
        }
      }
    }
  }
}