-
Notifications
You must be signed in to change notification settings - Fork 0
Adding item assets
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
-
In your project
src/main/resources, create the folderassets/{yourModID}.
In that folder, create the following structure:↳ models
↳ item
↳{yourItemID}.json
↳ textures
↳ item
↳{yourItemID}.png
↳ items
↳{yourItemID}.json -
Now:
-
in the
models/item/{yourItemID}.jsonfile, 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}.jsonfile, paste the following content:{ "model": { "type": "minecraft:model", "model": "minecraft:item/{yourItemID}" } }
-
as the
textures/item/{yourItemID}.pngfile, paste your item texture.
-
©️ Copyright 2026 Olafcio (on behalf of the AvoidLib org)
📝 Licensed with CC BY-NC (Attribution-NonCommercial)
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