Skip to content

Adding item assets

Olafcio1 edited this page Sep 18, 2026 · 3 revisions

This guide assumes you've already created and setup an Avoid project.
Avoid does not yet provide a datagen or pack manipulation classes. You may need to use net.minecraft for that.


§ Adding item assets with the Avoid Framework


  1. In your project src/main/resources, create the folder assets/{yourModID}.
    In that folder, create the following structure:

    ↳ models
     ↳ item
      ↳ {yourItemID}.json
    ↳ textures
     ↳ item
      ↳ {yourItemID}.png
    ↳ items
     ↳ {yourItemID}.json

    (Replace {yourModID} with your mod ID, e.g. testmod.
     Replace {yourItemID} with your item name ID-ified, e.g. magic_wand.)
  2. Now:

    • in the models/item/{yourItemID}.json file, paste the following content:

      {
        "parent": "minecraft:item/generated",
        "textures": {
          "layer0": "{yourModID}:item/{yourItemID}"
        }
      }

      There are ways to customize this, e.g. to make multiple layers of an item.
      Take a look at Minecraft's assets (inside the Minecraft JAR) - they can be a good reference.


    • in the items/{yourItemID}.json file, paste the following content:

      {
        "model": {
          "type": "minecraft:model",
          "model": "minecraft:item/{yourItemID}"
        }
      }

    • as the textures/item/{yourItemID}.png file, paste your item texture.


Avoid Framework


    🏚️ 1. Home
    📽️ 2. Creating your mod
    🌄 3. Adding assets to your mod
    🧊 4. Creating a block
    💧 5. Creating a fluid
    ✏️ 6. Creating an item
    🎯 7. Creating an entity selector
    🤖 8. Creating a command
    ⌨️ 9. Creating a keybind
    🐺 10. Creating an entity
    🌫️ 11. Creating a fog
    🔩 12. Creating an item component
    🔮 13. Creating an effect
    📚 14. Language support & adding libraries

Clone this wiki locally