> For the complete documentation index, see [llms.txt](https://core-keeper-modding.gitbook.io/modding-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://core-keeper-modding.gitbook.io/modding-wiki/creating-mods/modding-examples/items/weapons-and-tools.md).

# Weapons and Tools

## Follow the Item Guide

Follow the steps in the generic item guide first to define the other required properties of your item.

{% content-ref url="/pages/Ge8PWDDEbvOKI7LkNBWe" %}
[Items](/modding-wiki/creating-mods/modding-examples/items.md)
{% endcontent-ref %}

## Creating Melee Weapons and Tools

To make a equipable item with use animation you need to:

* Set the `ObjectType` to tool or weapon type
* Add `DurabilityAuthoring`, `GivesConditionsWhenEquipedAuthoring`, `CooldownAuthoring`, `WeaponDamageAuthoring` and `LevelAuthoring` component authorings and configure them correctly
* Assign both icons to first sprite in item animation sheet.

Sprite sheets should be 120x120px and have 7 sprites showing item in different states. You can find such sheets for all base game weapons and tools by ripping game content via [Asset Ripper](/modding-wiki/creating-mods/modding-tools/asset-ripper.md).

<figure><img src="/files/1eugKA0cspxZNwlevFNR" alt=""><figcaption><p>Screenshot of an example weapon sprite sheet</p></figcaption></figure>

## Creating Ranged Weapons

{% hint style="warning" %}
The [CoreLib.Entity submodule](/modding-wiki/creating-mods/modding-libraries/corelib.md) is required for this guide section.
{% endhint %}

To make a ranged weapon you mostly need to do the same as with any other weapon. Except for the fact that you will need a custom projectile entity added. To hook modded projectile entity use `ModRangeWeaponAuthoring` component instead of `RangeWeaponAuthoring` (CoreLib feature)
