Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item Texture Will Not Load #231

Closed
Android789515 opened this issue Dec 15, 2024 · 6 comments · May be fixed by #242
Closed

Item Texture Will Not Load #231

Android789515 opened this issue Dec 15, 2024 · 6 comments · May be fixed by #242
Labels
correction Something isn't right on a page new-version Related to a newer version of Minecraft

Comments

@Android789515
Copy link

I created a 16x16 png file correctly named in assets/my_mod_id/textures/item.

My lang file loads the name just fine.

1.21.4

2024-12-15_23 29 47

@Android789515
Copy link
Author

Tried a different icon and still no texture. Replaced both the model and texture files and their folders. Still I have no texture.

@Linguardium
Copy link

the docs are not updated for 1.21.4 changes.

make a folder
assets/yourmodname/items
put a json file in it for your item

{
  "model": {
    "type": "minecraft:model",
    "model": "yourmod:item/youritemmodel"
  }
}

its basically the item state (like blockstate for items)
it replaced the overrides section in old models

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

a vanilla example in assets\minecraft\items\ender_pearl.json

These model providers are effectively like blockstates but for itemstacks, replacing the old override and modelpredicateprovider system

@Android789515
Copy link
Author

the docs are not updated for 1.21.4 changes.

make a folder assets/yourmodname/items put a json file in it for your item

{
  "model": {
    "type": "minecraft:model",
    "model": "yourmod:item/youritemmodel"
  }
}

its basically the item state (like blockstate for items) it replaced the overrides section in old models

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

a vanilla example in assets\minecraft\items\ender_pearl.json

These model providers are effectively like blockstates but for itemstacks, replacing the old override and modelpredicateprovider system

No luck. Do I need to move my texture file as well?

@Linguardium
Copy link

no, this is in addition to your model and texture file

@Linguardium
Copy link

not really a docs issue. i suggest either going to the discord https://discord.gg/v6v4pMv or opening a discussion https://github.com/orgs/FabricMC/discussions

@Android789515
Copy link
Author

no, this is in addition to your model and texture file

Thank you. I added my model back and I see my texture now.

@its-miroma its-miroma added correction Something isn't right on a page new-version Related to a newer version of Minecraft labels Dec 16, 2024
@its-miroma its-miroma linked a pull request Dec 30, 2024 that will close this issue
52 tasks
@its-miroma its-miroma mentioned this issue Dec 30, 2024
52 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correction Something isn't right on a page new-version Related to a newer version of Minecraft
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants