{
  "format_version": "1.16.100",
  "minecraft:entity": {
    "description": {
      "identifier": "pixel:slash_crescent",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier": "minecraft:arrow",
	  "scripts": {
		 "animate": [
		"double_hit"
		]
	  },
	  "animations": {
		 "wind_chakram": "controller.animation.slash",
		"double_hand":"animation.attack.projectile"
      }
    },
    "component_groups": {
      "despawn":{
	    "minecraft:instant_despawn":{}
      },
      "shoot":{
	    "minecraft:variant":{
	      "value": 2
	    }
      },
      "nonshoot":{
	    "minecraft:variant":{
	      "value": 1
	    }
      }
    },

    "components": {
      "minecraft:collision_box": {
        "width": 0.0,
        "height": 0.0
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "any",
          "deals_damage": false
        }
      },
      "minecraft:projectile": {
        "on_hit": {
          "impact_damage": {
            "damage": [ 10, 15 ],
            "knockback": true,
            "semi_random_diff_damage": false,
            "destroy_on_hit": true
          },
          "remove_on_hit": { }
        },
        "hit_sound": "bow.hit",
        "power": 2.0,
        "gravity": 0.05,
        "uncertainty_base": 16,
        "uncertainty_multiplier": 4,
        "anchor": 1,
        "should_bounce": false,
        "offset": [ 0, -0.1, 0 ]
      },
      "minecraft:area_attack" : {
        "damage_range": 2,
        "damage_per_tick": 10,
        "cause": "contact",
        "entity_filter": {
          "all_of": [
            { "test": "has_tag", "subject": "other", "operator": "!=" ,"value": "onegai" }
          ]
        }
      }
    },

    "events": {
      "minecraft:entity_spawned": {
        "add":{
          "component_groups":[
            "shoot"
          ]
        }
      },
      "non_shoot": {
        "add":{
          "component_groups":[
            "nonshoot"
          ]
        }
      },
      "remove_damage":{
        "add": {
          "component_groups":[
            "lance_null"
          ]
        },
        "remove":{
          "component_groups":[
            "lance_horse"
          ]
        }
      },
      "remove_tag":{
        "run_command": {
          "command": [
            "execute as @a[tag=onegai] run tag @s remove onegai"
          ]
        }
      },
      "remove_katana":{
        "add":{
          "component_groups":[
               "despawn"
          ]
        }
      }
    }
  }
}




