# General properties

## model\_id

indicates the file name of model and texture for this item in the resourcepack.

```aspnet
assets\minecraft\models\new_<type>\<model_id>.json
```

## vanilla\_type

indicates the original Minecraft item material we want our item to be based off. In this example I want this sword to be like a diamond sword, since it's an emerald sword and I want it to have an high durability like diamond swords have.\
As you can see I'll have to create the model and texture files in there paths:

```aspnet
assets\minecraft\models\new_diamond_sword\6.json
assets\minecraft\textures\new_diamond_sword\6.png
```

```yaml
emerald_sword:
  enabled: true
  permission: emeraldsword
  model_id: 6
  vanilla_type: DIAMOND_SWORD
  name: '&fEmerald sword'
```

{% hint style="warning" %}
Important

Not every custom item can have vanilla\_type changed:

* blocks.yml
* bows.yml
* drinks.yml
* eatables.yml
* armors.yml
* fishing\_rods.yml
* furnitures.yml
* hats.yml
* items.yml
* minerals.yml
* seeds.yml
* shields.yml
* totems\_of\_undying.yml
* vegetables\_and\_fruits.yml

Only in these configs you can specify the vanilla\_type:

* swords.yml (must be swords or tools)
* tools.yml (must be tools or swords)
* guns.yml (must be swords or tools)
  {% endhint %}

## enabled

Specify if the item is enabled or not

```yaml
enabled: true
```

## permission

Specify which permission a user needs to have in order to craft the current item, example:

```yaml
permission: mysword
```

User must have this permission **ia.craft.mysword** to craft the item

## name

```yaml
name: '&fMy awesome custom sword'
```

## lore

```yaml
    lore:
      - '&fWow this is my first'
      - '&fcustom sword!'
```

## enchants

You can set a default enchant for the item so when players craft this item it'll have the specified enchants. You can add more than one enchant (like lore lines).

```yaml
enchants:
  - FIRE_ASPECT:1 #<enchant name>:<level>
```

{% hint style="info" %}
You can get enchant names [here](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html)
{% endhint %}

## events

{% content-ref url="/pages/-Lb3KtOsE1uDppuAH63a" %}
[Events](/itemsadder/items-properties/events.md)
{% endcontent-ref %}

## specific\_properties

Each **.yml** file which contains a particular item type has its own **special\_properties** structure.\
To see the available properties take a look at the various pages under "*specific items*" and search for "**specific\_properties**".\
One **specific\_properties** attribute is available to all **.yml** files, it's the **luck** attribute.\
Luck attribute is used to specify luck amount.

![](/files/-LjWEr52g93GHdAxv0hG)

```
luck_offhand: <number>
luck_mainhand: <number>
luck_head : <number>
luck_chest: <number>
luck_legs: <number>
luck_feet: <number>
```

####

## craft\_recipe

Recipe to craft the current custom item

{% content-ref url="/pages/-Lb3ST0AbQbf0mEAdo0v" %}
[Craft recipe](/itemsadder/items-properties/crafting/craft-recipe.md)
{% endcontent-ref %}

## result\_recipe

Recipe to craft any item with any ingredient, it's useful if you want to add multiple crafting recipes for the current custom item

{% content-ref url="/pages/-Lb3T0yfGNrNFQigDM5N" %}
[Result recipe](/itemsadder/items-properties/crafting/result-recipe.md)
{% 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://lonedev.gitbook.io/itemsadder/items-properties/general-properties.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.
