{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:long_arrow",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
      "runtime_identifier":"minecraft:arrow"
    },
    "component_groups": {
      "minecraft:easy_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 5, 7 ],
              "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:normal_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 5.5, 7.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:hard_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 6, 8 ],
              "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": 5,
              "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:longbowman_arrow": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 5, 7 ],
              "knockback": true,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true,
              "max_critical_damage": 10.5,
              "min_critical_damage": 7.5
            },
            "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:longbowman_arrow_iron": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 5.2, 7.2 ],
              "knockback": true,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true,
              "max_critical_damage": 10,
              "min_critical_damage": 8
            },
            "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:longbowman_arrow_gold": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 5.5, 8 ],
              "knockback": true,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true,
              "max_critical_damage": 12,
              "min_critical_damage": 9
            },
            "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:longbowman_arrow_diamond": {
        "minecraft:projectile": {
          "on_hit": {
            "impact_damage": {
              "damage": [ 6, 8 ],
              "knockback": true,
              "semi_random_diff_damage": false,
              "destroy_on_hit": true,
              "max_critical_damage": 14,
              "min_critical_damage": 10
            },
            "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": 7,
          "use_motion_prediction_hints": true
        }
      }
    },

    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "filters": {"test": "is_difficulty", "value": "easy"},
            "add": {
              "component_groups": [ "minecraft:easy_arrow" ]
            }
          },
          {
            "filters": {"test": "is_difficulty", "value": "normal"},
            "add": {
              "component_groups": [ "minecraft:normal_arrow" ]
            }
          },
          {
            "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": "low_platinum_level"},
            "add": {
              "component_groups": [ "minecraft:longbowman_arrow" ]
            }
          },
          {
            "filters": {"test": "is_family", "subject": "other", "value": "high_platinum_level"},
            "add": {
              "component_groups": [ "minecraft:longbowman_arrow_iron" ]
            }
          },
          {
            "filters": {"test": "is_family", "subject": "other", "value": "gold_level"},
            "add": {
              "component_groups": [ "minecraft:longbowman_arrow_gold" ]
            }
          },
          {
            "filters": {"test": "is_family", "subject": "other", "value": "diamond_level"},
            "add": {
              "component_groups": [ "minecraft:longbowman_arrow_diamond" ]
            }
          },
          {
            "filters": {"test": "is_family", "subject": "other", "value": "enchanted_level"},
            "add": {
              "component_groups": [ "minecraft:longbowman_arrow_diamond" ]
            }
          }
        ]
      }
    }
  }
}