General properties

model_id

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

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:

assets\minecraft\models\new_diamond_sword\6.json
assets\minecraft\textures\new_diamond_sword\6.png
emerald_sword:
  enabled: true
  permission: emeraldsword
  model_id: 6
  vanilla_type: DIAMOND_SWORD
  name: '&fEmerald sword'
circle-exclamation

enabled

Specify if the item is enabled or not

permission

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

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

name

lore

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).

circle-info

You can get enchant names herearrow-up-right

events

Eventschevron-right

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.

craft_recipe

Recipe to craft the current custom item

Craft recipechevron-right

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

Result recipechevron-right

Last updated