{
  "format_version": "1.21.100",
  "minecraft:item": {
    "description": {
      "identifier": "minecraft:netherite_spear"
    },

    "components": {
      "minecraft:icon": {
        "textures": {
          "default": "netherite_spear"
        }
      },
      "minecraft:display_name": {
        "value": "item.netherite_spear.name"
      },
      "minecraft:tags": {
        "tags": [ "minecraft:netherite_tier", "minecraft:is_spear" ]
      },
      "minecraft:max_stack_size": 1,
      "minecraft:durability": {
        "max_durability": 2030,
        "damage_chance": {
          "min": 0,
          "max": 100
        }
      },
      "minecraft:repairable": {
        "repair_items": [
          {
            "items": [ "minecraft:netherite_spear" ],
            "repair_amount": "context.other->query.remaining_durability"
          },
          {
            "items": [ "minecraft:netherite_ingot" ],
            "repair_amount": "query.max_durability * 0.25"
          }
        ]
      },
      "minecraft:enchantable": {
        "slot": "melee_spear",
        "value": 15
      },
      "minecraft:hand_equipped": {
        "value": true
      },
      "minecraft:use_modifiers": {
        "use_duration": 72000,
        "emit_vibrations": false,
        "start_sound": "item.spear.use",
        "movement_modifier": 1.0
      },
      "minecraft:cooldown": {
        "category": "spear",
        // Should match "swing_duration"'s "value".
        "duration": 1.15,
        "type": "attack"
      },
      "minecraft:swing_duration": {
        // Should match "cooldown"'s "duration".
        "value": 1.15
      },
      "minecraft:swing_sounds": {
        "attack_miss": "item.spear.attack_miss",
        "attack_hit": "item.spear.attack_hit"
      },
      "minecraft:damage": {
        "value": 5
      },
      "minecraft:piercing_weapon": {
        "reach": {
          "min": 2.0,
          "max": 4.5
        },
        "creative_reach": {
          "min": 2.0,
          "max": 7.5
        },
        "hitbox_margin": 0.25
      },
      "minecraft:kinetic_weapon": {
        "delay": 8,
        "reach": {
          "min": 2.0,
          "max": 4.5
        },
        "creative_reach": {
          "min": 2.0,
          "max": 7.5
        },
        "hitbox_margin": 0.25,
        "damage_multiplier": 1.2,
        "damage_conditions": {
          "max_duration": 175,
          "min_relative_speed": 4.6
        },
        "knockback_conditions": {
          "max_duration": 110,
          "min_speed": 5.1
        },
        "dismount_conditions": {
          "max_duration": 50,
          "min_speed": 9.0
        }
      },
      "minecraft:fire_resistant": {
        "value": true
      }
    }
  }
}
