{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "wesl3y:yamamoto_damage",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "wesl3y:despawn": {
        "minecraft:transformation": {
          "into": "wesl3y:despawn",
          "delay": 0.0
        }
      },
      "wesl3y:dash": {
        "minecraft:type_family": {
          "family": [ "dash", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 0.2,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 7,
          "knockback_vertical_strength": 1,
          "knockback_range": 2.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "yamamoto"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:sul": {
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:type_family": {
          "family": [ "sul", "damage" ]
        },
        "minecraft:breathable": {
          "total_supply": 15,
          "suffocate_time": 0
        },
        "minecraft:nameable": {},
        "minecraft:collision_box": {
          "width": 0.6,
          "height": 1.8
        },
        "minecraft:health": {
          "value": 20,
          "max": 20
        },
        "minecraft:attack": {
          "damage": [2, 5]
        },
        "minecraft:scale": {
          "value": 1.0
        },
        "minecraft:movement": {
          "value": 0.3
        },
        "minecraft:damage_sensor": {
          "triggers": {
            "on_damage": {},
            "deals_damage": true
          }
        },
        "minecraft:movement.basic": {},
        "minecraft:navigation.walk": {
          "can_path_over_water": true
        },
        "minecraft:jump.static": {},
        "minecraft:can_climb": {},
        "minecraft:follow_range": {
          "value": 32,
          "max": 32
        },
        "minecraft:behavior.melee_attack": {
          "priority": 5,
          "speed_multiplier": 1.1,
          "track_target": true
        },
        "minecraft:behavior.hurt_by_target": {
          "entity_types": {
            "filters": {
              "test": "has_tag",
              "subject": "other",
              "operator": "!=",
              "value": "yamamoto_bankai"
            }
          },
          "priority": 1
        },
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 2,
          "must_see": true,
          "reselect_targets": false,
          "entity_types": [
            {
              "filters": {
                "all_of": [
                  { "test": "has_tag", "subject": "other", "operator": "!=", "value": "yamamoto_bankai" },
                  { "test": "is_family", "subject": "other", "operator": "!=", "value": "damage" }
                ]
              },
              "max_dist": 64
            }
          ]
        },
        "minecraft:behavior.random_stroll": {
          "priority": 7,
          "speed_multiplier": 1
        },
        "minecraft:behavior.random_look_around": {
          "priority": 9
        },
        "minecraft:behavior.float": {
          "priority": 0
        },
        "minecraft:pushable": {
          "is_pushable": true,
          "is_pushable_by_piston": true
        },
        "minecraft:physics": {
          "has_gravity": true
        },
        "minecraft:timer": {
          "time": [7.5, 10],
          "looping": true,
          "time_down_event": {
            "event": "wesl3y:despawn",
            "target": "self"
          }
        }
      },
      "wesl3y:norte": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:type_family": {
          "family": [ "norte", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 0.8,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 0.25,
          "knockback_vertical_strength": 1,
          "knockback_range": 2.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "!=","value": "yamamoto_bankai"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:mob.dash": {
        "minecraft:type_family": {
          "family": [ "mob.dash", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 0.2,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 7,
          "knockback_vertical_strength": 1,
          "knockback_range": 2.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "is_family","subject": "other","operator": "==","value": "yamamoto"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      }
    },
    "components": {
      "minecraft:collision_box": {
        "width": 0.0,
        "height": 0.0
      },
      "minecraft:transformation": {
        "into": "wesl3y:despawn",
        "delay": 15.0
      },
      "minecraft:timer": {
        "time": 0.15,
        "looping": true,
        "time_down_event": {
          "event": "minecraft:command",
          "target": "self"
        }
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "on_damage": {},
          "deals_damage": false
        }
      },
      "minecraft:despawn": {
        "filters": {
          "all_of":[{ "test": "distance_to_nearest_player", "operator": ">", "value": 48 }]
        }
      },
      "minecraft:knockback_resistance": {"value": 1.0},
      "minecraft:physics": {
        "has_gravity": false
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      }
    },
    "events": {
      "minecraft:command": {
        "sequence": [
          {
            "filters": {
              "test": "is_family",
              "value": "norte"
            },
            "queue_command": {
              "command": ["tp @s ^^^1.5"]
            }
          }
        ]
      },
      "wesl3y:despawn": {
        "add": {
          "component_groups": [
            "wesl3y:despawn"
          ]
        }
      },
      "wesl3y:dash": {
        "add": {
          "component_groups": [
            "wesl3y:dash"
          ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:expansion_white.small ~~0.25~"
          ]
        }
      },
      "wesl3y:sul": {
        "add": {
          "component_groups": [
            "wesl3y:sul"
          ]
        },
        "queue_command": {
          "command": [
            "effect @s slowness 2 255 true",
            "particle wesl3y:yamamoto_sul ~~0.125~",
            "particle wesl3y:yamamoto_sul ~~0.25~"
          ]
        }
      },
      "wesl3y:norte": {
        "add": {
          "component_groups": [
            "wesl3y:norte"
          ]
        }
      },
      "wesl3y:mob.dash": {
        "add": {
          "component_groups": [
            "wesl3y:mob.dash"
          ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:expansion_white.small ~~0.25~"
          ]
        }
	  }
    }
  }
}