{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "wesl3y:todoroki_damage",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "wesl3y:despawn": {
        "minecraft:transformation": {
          "into": "wesl3y:despawn",
          "delay": 0.0
        }
      },
      "wesl3y:ice_spikes": {
        "minecraft:variant": {
          "value": 1
        },
        "minecraft:type_family": {
          "family": [ "ice_spikes", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 0.3,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 1.1,
          "knockback_vertical_strength": 1,
          "knockback_range": 2.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "!=","value": "todoroki"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:ice_wall": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:scale": {
          "value": 1.5
        },
        "minecraft:type_family": {
          "family": [ "ice_wall", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.0,
          "attack_time": 0.1,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:ice_wall2": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:scale": {
          "value": 2.5
        },
        "minecraft:type_family": {
          "family": [ "ice_wall", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.4,
          "attack_time": 0.1,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:ice_wall3": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:scale": {
          "value": 3.5
        },
        "minecraft:type_family": {
          "family": [ "ice_wall", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.8,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 1.5,
          "knockback_vertical_strength": 1,
          "knockback_range": 2.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "!=","value": "todoroki"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:jet_burn": {
        "minecraft:type_family": {
          "family": [ "jet_burn", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.0,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 1.5,
          "knockback_vertical_strength": 1,
          "knockback_range": 3.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "!=","value": "todoroki"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:mob.ice_wall": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:scale": {
          "value": 1.5
        },
        "minecraft:type_family": {
          "family": [ "mob.ice_wall", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.0,
          "attack_time": 0.1,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:mob.ice_wall2": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:scale": {
          "value": 2.5
        },
        "minecraft:type_family": {
          "family": [ "mob.ice_wall", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.4,
          "attack_time": 0.1,
          "knockback_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:mob.ice_wall3": {
        "minecraft:variant": {
          "value": 2
        },
        "minecraft:scale": {
          "value": 3.5
        },
        "minecraft:type_family": {
          "family": [ "mob.ice_wall", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.8,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 1.5,
          "knockback_vertical_strength": 1,
          "knockback_range": 2.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "is_family","subject": "other","operator": "!=","value": "todoroki"
          },
          "damage_filters": {
            "test": "has_tag","subject": "other","operator": "==","value": "sla"
          },
          "on_roar_end": {
            "event": "wesl3y:despawn"
          }
        }
      },
      "wesl3y:mob.jet_burn": {
        "minecraft:type_family": {
          "family": [ "mob.jet_burn", "attack", "damage" ]
        },
        "minecraft:behavior.knockback_roar": {
          "duration": 1.0,
          "attack_time": 0.1,
          "knockback_horizontal_strength": 1.5,
          "knockback_vertical_strength": 1,
          "knockback_range": 3.5,
          "cooldown_time": 0.2,
          "knockback_filters": {
            "test": "is_family","subject": "other","operator": "!=","value": "todoroki"
          },
          "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": 1.5
      },
      "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": [
          {
            "queue_command": {
              "command": [
                "execute at @s[tag=ice0,tag=!summon] run summon wesl3y:todoroki_damage ^^^2 facing ^^^10000 wesl3y:ice_wall",
                "execute at @s[tag=ice1,tag=!summon] run summon wesl3y:todoroki_damage ^^^4 facing ^^^10000 wesl3y:ice_wall2",
                "execute at @s[tag=ice2,tag=!summon] run summon wesl3y:todoroki_damage ^^^4 facing ^^^10000 wesl3y:ice_wall3",
                "execute at @s[tag=mob.ice0,tag=!summon] run summon wesl3y:todoroki_damage ^^^2 facing ^^^10000 wesl3y:mob.ice_wall",
                "execute at @s[tag=mob.ice1,tag=!summon] run summon wesl3y:todoroki_damage ^^^4 facing ^^^10000 wesl3y:mob.ice_wall2",
                "execute at @s[tag=mob.ice2,tag=!summon] run summon wesl3y:todoroki_damage ^^^4 facing ^^^10000 wesl3y:mob.ice_wall3",
                "tag @s[tag=!summon] add summon"
              ]
            }
          },
          {
            "filters": {
              "test": "is_family",
              "value": "mob.ice_wall"
            },
            "queue_command": {
              "command": ["damage @e[c=10,r=2.5,family=!attack,family=!inanimate,type=!wesl3y:todoroki,type=!item,type=!xp_orb] 5 entity_attack entity @e[c=1,type=wesl3y:todoroki]"]
            }
          },
          {
            "filters": {
              "test": "is_family",
              "value": "mob.jet_burn"
            },
            "queue_command": {
              "command": ["damage @e[c=10,r=2.5,family=!attack,family=!inanimate,type=!wesl3y:todoroki,type=!item,type=!xp_orb] 5 fire entity @e[c=1,type=wesl3y:todoroki]"]
            }
          }
        ]
      },
      "wesl3y:despawn": {
        "add": {
          "component_groups": [
            "wesl3y:despawn"
          ]
        }
      },
      "wesl3y:ice_spikes": {
        "add": {
          "component_groups": [
            "wesl3y:ice_spikes"
          ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_spikes ~~0.25~"
          ]
        }
      },
	  "wesl3y:ice_wall0": {
        "queue_command": {
          "command": [
            "tag @s add ice0"
          ]
        }
      },
	  "wesl3y:ice_wall": {
	    "add": {
	      "component_groups": [
	        "wesl3y:ice_wall"
	      ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_wall ~~0.25~4",
            "tag @s add ice1"
          ]
        }
      },
	  "wesl3y:ice_wall2": {
	    "add": {
	      "component_groups": [
	        "wesl3y:ice_wall2"
	      ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_wall ~~0.25~",
            "tag @s add ice2"
          ]
        }
      },
	  "wesl3y:ice_wall3": {
	    "add": {
	      "component_groups": [
	        "wesl3y:ice_wall3"
          ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_wall ~~0.25~"
          ]
        }
      },
      "wesl3y:jet_burn": {
        "add": {
          "component_groups": [
            "wesl3y:jet_burn"
          ]
        }
	  },
	  "wesl3y:mob.ice_wall0": {
        "queue_command": {
          "command": [
            "tag @s add mob.ice0"
          ]
        }
      },
	  "wesl3y:mob.ice_wall": {
	    "add": {
	      "component_groups": [
	        "wesl3y:mob.ice_wall"
	      ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_wall ~~0.25~",
            "tag @s add ice1"
          ]
        }
      },
	  "wesl3y:mob.ice_wall2": {
	    "add": {
	      "component_groups": [
	        "wesl3y:mob.ice_wall2"
	      ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_wall ~~0.25~",
            "tag @s add ice2"
          ]
        }
      },
	  "wesl3y:mob.ice_wall3": {
	    "add": {
	      "component_groups": [
	        "wesl3y:mob.ice_wall3"
          ]
        },
        "queue_command": {
          "command": [
            "particle wesl3y:todoroki_ice_wall ~~0.25~"
          ]
        }
      },
      "wesl3y:mob.jet_burn": {
        "add": {
          "component_groups": [
            "wesl3y:mob.jet_burn"
          ]
        }
	  }
    }
  }
}