{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:arrow",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [ "on_ground" ]
      },
      "animations": {
        "on_ground": "controller.animation.on_ground"
      }
    },
    "component_groups": {
      "minecraft:projectile_on": {
        "minecraft:type_family": {
          "family": [ "projectile" ]
        }
      },
      "minecraft:projectile_off": {
        "minecraft:type_family": {
          "family": [ "projectile_off" ]
        }
      },
      "minecraft:hard_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 1, 5 ],
              "knockback": true,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {
              "shake_time" : 0.35
            },
            "arrow_effect": {
            }
          },
          "hit_sound": "bow.hit",
          "power": 1.6,
          "gravity": 0.05,
          "uncertainty_base": 16,
          "uncertainty_multiplier": 4,
          "anchor": 1,
          "should_bounce": true,
          "offset": [ 0, -0.1, 0 ]
        }
      },

      "minecraft:player_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": 1,
              "knockback": true,
              "semi_random_diff_damage": true,
              "destroy_on_hit": true,
              "max_critical_damage": 10,
              "min_critical_damage": 9,
              "power_multiplier": 0.97
            },
            "stick_in_ground": {
              "shake_time" : 0.35
            },
            "arrow_effect": {
            }
          },
          "hit_sound": "bow.hit",
          "power": 5.0,
          "gravity": 0.05,
          "uncertainty_base": 1,
          "uncertainty_multiplier": 0,
          "anchor": 1,
          "should_bounce": true,
          "offset": [ 0, -0.1, 0 ]
        }
      },

      "minecraft:pillager_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 3, 6 ],
              "knockback": true,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {
              "shake_time": 0.35
            },
            "arrow_effect": {
            }
          },
          "hit_sound": "bow.hit",
          "power": 1.6,
          "gravity": 0.05,
          "uncertainty_base": 16,
          "uncertainty_multiplier": 4,
          "anchor": 1,
          "should_bounce": true,
          "offset": [ 0, -0.1, 0 ]
        }
      }
    },

    "components": {
      "minecraft:collision_box": {
        "width": 0.25,
        "height": 0.25
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:projectile": {
        "on_hit": {
          "impact_damage": {
            "damage": [ 1, 4 ],
            "knockback": true,
            "semi_random_diff_damage": false,
            "destroy_on_hit": true
          },
          "stick_in_ground": {
            "shake_time" : 0.35
          },
          "arrow_effect": {
          }
        },
        "hit_sound": "bow.hit",
        "power": 1.6,
        "gravity": 0.05,
        "uncertainty_base": 16,
        "uncertainty_multiplier": 4,
        "anchor": 1,
        "should_bounce": true,
        "offset": [ 0, -0.1, 0 ]
      },
      "minecraft:physics": {
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80.0,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      }
    },

    "events": {
      "minecraft:projectile_on": {
        "add": {
          "component_groups": [ "minecraft:projectile_on" ]
        },
        "remove": {
          "component_groups": [ "minecraft:projectile_off" ]
        }
      },
      "minecraft:projectile_off": { 
        "remove": {
          "component_groups": [ "minecraft:projectile_on" ]
        },
        "add": {
          "component_groups": [ "minecraft:projectile_off" ]
        }
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "filters": {"test": "is_difficulty", "value": "hard"},
            "add": {
              "component_groups": [ "minecraft:hard_arrow" ]
            }
          },
          {
            "filters": {"test": "is_family", "subject": "other", "value": "player"},
            "add": {
              "component_groups" : [ "minecraft:player_arrow" ]
            }
          },
          {
            "filters": {"test": "is_family", "subject": "other", "value": "pillager"},
            "add": {
              "component_groups": [ "minecraft:pillager_arrow" ]
            }
          }
        ]
      }
    }

  }
}