{
  "format_version": "1.8.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:snow_golem",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },

    "component_groups": {
      "minecraft:snowgolem_leashed": {
          "minecraft:behavior.move_towards_restriction": {
          "priority": 2,
          "speed_multiplier": 1.0
        }
      },
      "minecraft:snowman_sheared": {
        "minecraft:is_sheared": {
        }
      }      
    },

    "components": {
      "minecraft:type_family": {
        "family": [ "snowgolem" ]
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:nameable": {
      },
      "minecraft:collision_box": {
        "width": 0.4,
        "height": 1.8
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/snowman.json"
      },
      "minecraft:health": {
        "value": 4,
        "max": 4
      },
      "minecraft:movement": {
        "value": 0.2
      },
      "minecraft:navigation.walk": {
        "avoid_water": true
      },
      "minecraft:movement.basic": {
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:attack": {
        "damage": 2
      },
      "minecraft:fall_damage": {
        "value": 0.0
      },
      "minecraft:interact": [
        {
          "cooldown": 2.5,
          "use_item": false,
          "hurt_item": 1,
          "play_sounds": "shear",
          "interact_text": "action.interact.shear",
          "on_interact": {
            "filters": {
                "all_of": [
				  { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
                  { "test" :  "is_family", "subject" : "other", "value" :  "player"},
                  { "test" :  "has_component", "operator": "!=", "value" :  "minecraft:is_sheared"}
                ]
              },
            "event": "minecraft:on_sheared",
            "target": "self"
          }
        }
      ],

      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0,
        "on_leash": {
          "event": "minecraft:on_leash",
          "target": "self"
        },
        "on_unleash": {
          "event": "minecraft:on_unleash",
          "target": "self"
        }
      },
      "minecraft:balloonable": {
      },
      "minecraft:behavior.ranged_attack": {
        "priority": 1,
        "speed_multiplier": 1.25,
        "attack_interval": 1,
        "attack_radius": 10
      },
      "minecraft:shooter": {
        "def": "minecraft:snowball"
      },
      "minecraft:behavior.random_stroll": {
        "priority": 2,
        "speed_multiplier": 1
      },
      "minecraft:behavior.look_at_player": {
        "priority": 3,
        "look_distance": 6.0
      },
      "minecraft:behavior.random_look_around": {
        "priority": 4
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 1,
        "entity_types": [
          {
            "filters": { "test" :  "is_family", "subject" : "other", "value" :  "monster"},
            "within_default": 6
          }
        ],
        "must_reach": true
      },
      "minecraft:physics": {
      },
      "minecraft:hurt_when_wet": {
        "value": true
      }
    },

    "events": {
      "minecraft:on_sheared": {
        "remove": {
        },
        "add": {
          "component_groups": [
            "minecraft:snowman_sheared"
          ]
        }
      },
      "minecraft:on_leash": {
        "add": {
          "component_groups": [
            "minecraft:snowgolem_leashed"
          ]
        }
      },
      "minecraft:on_unleash": {
        "remove": {
          "component_groups": [
            "minecraft:snowgolem_leashed"
          ]
        }
      }
    }
  }
}