{
  "format_version": "1.16.100",
  "minecraft:entity": {
    "description": {
      "identifier": "pixel:wind_cutter",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
	  "scripts": {
		 "animate": [
		"wind_chakram",
		"double_hand"
		]
	  },
	  "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:health": {
				"value": 1,
				"max": 1
			},
            "minecraft:environment_sensor": {
              "triggers": {
                "filters": {
                  "test": "distance_to_nearest_player", 
                  "value": 1
                },
                "event": "pickup"
              }
            },
			"minecraft:collision_box": {
				"width": 0.25,
				"height": 0.35
			},
			"minecraft:projectile": {
				"on_hit": {
					"impact_damage": {
						"damage": 14,
						"knockback": true,
						"semi_random_diff_damage": false,
						"destroy_on_hit": false
					},
					"stick_in_ground": {
						"shake_time" : 0.1
					}
				},
				"liquid_inertia": 0.99,
				"hit_sound": "item.arrow.hit",
				"hit_ground_sound": "item.arrow.hit_ground",
				"power": 4,
				"gravity": 0.10,
				"uncertainty_base": 1,
				"uncertainty_multiplier": 0,
				"stop_on_hurt": true,
				"anchor": 1,
				"should_bounce": true,
				"multiple_targets": false,
				"offset": [ 0, -0.1, 0 ]
			},
            "minecraft:entity_sensor": {
              "sensor_range": 0.5,
              "event_filters": {
                "all_of": [
                  {
                    "test": "is_family",
                    "subject": "other",
                    "value": "player"
                  }
                ]
              },
              "event": "despawn"
            },
	        "minecraft:timer":{
	          "time": [5,5],
	          "looping": true,
	          "time_down_event":{
	            "event": "despawn",
	            "target": "self"
	          }
	        },
			"minecraft:physics": {
			},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			}
		},

    "events": {
      "minecraft:entity_spawned": {
        "add":{
          "component_groups":[
            "shoot"
          ]
        }
      },
      "non_shoot": {
        "add":{
          "component_groups":[
            "nonshoot"
          ]
        }
      },
      "remove_tag":{
        "run_command": {
          "command": [
            "execute @a[tag=onegai] ~~~ tag @s remove onegai"
          ]
        }
      },
      "despawn":{
        "add":{
          "component_groups":[
               "despawn"
          ]
        }
      }
    }
  }
}




