Resource

Properties that allows customization of item graphics

Automatic generation

In order to tell ItemsAdder which texture/model use for an item you have to add the resource attribute. This is an example:

  resource:
    material: DIAMOND_SWORD
    generate: true
    textures:
    - item/example_item.png

material is the vanilla material this item will use as base.

generate tells to IA if it needs to generate the item model automatically based on textures you listed

textures is the list of textures IA will use to generate the model automatically.

Where do I put textures?

Textures you listed in the textures attribute must be placed in the right folder. So if you set textures like in the example and your namespace (is for example) my_items you will have to put example_item.png file inside this folder: contents/my_items/textures/item

If the path doesn't exists create all the folders needed.

You can avoid setting .png in the textures attribute, ItemsAdder will recognize the file automatically

Use your own 3D custom model (.json file)

If you have a custom modelled sword or item you can tell IA not to generate the model automatically. This is an example:

  resource:
    material: DIAMOND_SWORD
    generate: false
    model_path: item/floating_sword

Where do I put my model?

Model you set in the model_path attribute must be placed in the right folder. So if you set model_path like in the example and your namespace (is for example) my_items you will have to put floating_sword.json file inside this folder: contents/my_items/models/item

If the path doesn't exists create all the folders needed.

My textures are not working!

Transparent textures (glass and similar)

Furniture

Transparent furniture

Blocks

Block

Manually specify custom_model_data

If you want to force the usage of a defined custom_model_data (CustomModelData) you can:

    resource:
      material: CLOCK
      model_id: 4000
      generate: false
      model_path: "item/my_custom_item_model"

You can also tell ItemsAdder to automatically generate the model based on the texture:

info:
  namespace: my_items
items:
  my_item_4000_example:
    resource:
      material: DIAMOND
      generate: true
      model_id: 4000
      textures:
      - item/my_custom_texture.png

IMPORTANT

Creating 3D models

To create custom models I use BlockBench which is a free, easy to use and amazing tool to make Minecraft model.

Creating 3D model from a texture

Last updated

Was this helpful?