# Tridents

{% hint style="warning" %}
Available since ItemsAdder 4.0.11.

Requires Minecraft 1.21.4+ clients. Server version is not important.
{% endhint %}

## Example model `obsidian_trident`

```yaml
info:
  namespace: tridents
items:
  obsidian_trident:
    name: <aqua>Obsidian Trident
    material: TRIDENT
    graphics:
      icon: item/obsidian_trident_icon
      models: 
        normal: item/obsidian_trident
        throwing: item/obsidian_trident_throwing
```

### Creating the trident

Create a json file in `contents\tridents\models\item\obsidian_trident.json`\
Or create a model inside of blockbench like usual:

<figure><img src="/files/5mhNwigXpY8JQYGAAj9O" alt=""><figcaption></figcaption></figure>

#### Set the item held locations

<figure><img src="/files/snIT4LpPAT8Ms99iF6hN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/q6BiQkOEp4POvbFAd2HX" alt=""><figcaption></figcaption></figure>

#### Set the hit model location

<figure><img src="/files/EKvkoDz0AmAZQmByHAn9" alt=""><figcaption></figcaption></figure>

Here is the complete display:

```json
	"display": {
		"thirdperson_righthand": {
			"rotation": [0, 60, 0],
			"translation": [0, -10, 1]
		},
		"thirdperson_lefthand": {
			"rotation": [0, 60, 0],
			"translation": [0, -8, 1]
		},
		"firstperson_righthand": {
			"rotation": [0, 90, -25],
			"translation": [5.05, -10.7, 5]
		},
		"firstperson_lefthand": {
			"rotation": [0, 90, -25],
			"translation": [6.25, -11, 3.5]
		},
		"head": {
			"rotation": [90, 90, 0],
			"translation": [0, 0, -20]
		}
	}
```

### Create the throwing model (`_throwing.json` model)

This is the model shown when you are holding the right click button.\
Create a json file in `contents\tridents\models\item\obsidian_trident_throwing.json`

It's the same model as before, the only difference is the rotation when hold in hand.

You can create a totally different model using Blockbench or simply create a copy of `obsidian_trident.json` and change the rotation like that:

```
{
	"parent": "test:item/obsidian_trident",
	"display": {
		"thirdperson_righthand": {
			"rotation": [0, 90, -180],
			"translation": [0, 11, 1]
		}
	}
}
```

NOTE: Minecraft automatically applies some hardcoded rotations and translations to the firstperson view of the throwing model.\
You should not edit the firstperson view, only edit the thirdperson. The game will apply some rotations and translations accordingly.

## Inventory 2D icon

You can set a 2D icon in inventory.

{% content-ref url="/pages/W3bxBzi8Up97VsqvjCPS" %}
[2D Icon](/adding-content/items/item-properties/2d-icon.md)
{% endcontent-ref %}

## Done

{% embed url="<https://youtu.be/XvAIg-Lw2xs>" %}

## Example pack

{% content-ref url="<https://github.com/bruhhhwarrior/tridents/releases>" %}
<https://github.com/bruhhhwarrior/tridents/releases>
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/adding-content/items/tridents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
