{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "hostile:abyssal_spawn",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "properties": {
        "timeout:operator": {
          "client_sync": true,
          "type": "enum",
          "default": "timein",
          "values": [
            "timein",
            "timeout"
            ]
        }
      },
      "scripts": {
        "animate": [
          {
            "1":"q.property('timeout:operator')=='timein'"
          }
          ]
      },
      "animations": {
        "1": "animation.abyssal_spawn.repeat"
      }
    },
    "component_groups": {
      "despawn": {
        "minecraft:instant_despawn": {}
      }
    },
    "components": {
      "minecraft:timer": {
        "time": 5.0,
        "time_down_event": {
          "event": "despawn"
        }
      },
      "minecraft:nameable": {
        "always_show": false,
        "allow_name_tag_renaming": true
      },
      "minecraft:physics": {
        "has_collision": false,
        "has_gravity": false
      },
      "minecraft:type_family": {
        "family": [
          "inanimate",
          "misc",
          "illager",
          "pet"
        ]
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "on_damage": {
              "filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "operator": "!=",
                    "value": "kyoto"
                  }
                  ]
              }
            },
          "deals_damage": false,
          "damage_multiplier": 0.0
          }
          ]
        },
      "minecraft:health": {
        "value": 2,
        "max": 2,
        "min": 2
      },
      "minecraft:collision_box": {
        "width": 0.01,
        "height": 0.01
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": false
      },
      "minecraft:knockback_resistance": {
        "value": 100.0
      }
    },
    "events": {
      "fangs": {
        "sequence": [
          {
            "queue_command": {
              "command": [
                "summon hostile:abyssal_fang ~~~ ~~ minecraft:entity_spawned"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "spreadplayers ~ ~ 1 3 @e[c=1,type=hostile:abyssal_fang]"
                ]
            }
          }
          ]
      },
      "despawn": {
        "add": {
          "component_groups": [
            "despawn"
            ]
        },
        "set_property": {
          "timeout:operator": "timedout"
        }
      },
      "minecraft:entity_spawned": {
        "queue_command": {
          "command": [
            "effect @e[r=4] slowness 2 4 true",
            "particle abyssal_fang:smoke",
            "tag @s add iframes"
            ]
        }
      }
    }
  }
}