#Texture colors not working

40 messages · Page 1 of 1 (latest)

quasi bridge
#

I made a texture of a sword but colors are glitched and swords rotation isnt working

mystic stirrupBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

uneven pendant
#

I believe minecraft does that when it cant find a texture for it

#

I dont really know much about mods so i cant rlly help u further

quasi bridge
#

thats a texture pack

uneven pendant
#

Ah

#

Idk then man

#

I also barely know anything abt texture packs

signal mountain
#

also, if that's just gonna be a "flat model" (like most default item models), you can just replace your .json with something like this:

{
  "parent": "item/handheld"
  "textures": {
    "layer0": "path/to_your/actual_texture"
  }
}```
And you can also load this file into Blockbench if you wanna adjust display settings for example.
-# do not change anything in 'Edit' mode or it won't work/look correct!
quasi bridge
#

{
"model": {
"type": "minecraft:select",
"property": "minecraft:component",
"component": "minecraft:custom_name",
"cases": [
{
"when": "fragger",
"model": {
"type": "minecraft:model",
"model": "rename_tutorial:item/fragger"
}
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/netherite_sword"
}
}
}

#

but i wont item to change when i rename it

#

*want

signal mountain
quasi bridge
signal mountain
#

K, right now you are telling the game that your texture is directly in the textures folder
-# "2": "fragger",

#

as of 1.19.3 the game can only load textures from textures/item or textures/block. For other locations you need to either add the whole folder (which isn't possible in your case) or each texture manually into an extra file.

#

easiest fix would be to change it to "item/fragger" in those two texture lines and move your texture to textures/item

quasi bridge
#

it currently is here

signal mountain
#

textures do not go into the models folder

#

and since you are in a custom namespace you'd need to adjust the texture paths in your model to something like
"rename_tutorial:item/fragger"
-# under the assumption your texture is in assets/rename_tutorial/textures/item/fragger.png

quasi bridge
#

could you show wich lines are texture paths?

signal mountain
#

the two lines in the "textures" section of the model:

"textures": {
  "2": "fragger",
  "particle": "fragger"
},```
quasi bridge
#

now it looks like this ]

signal mountain
#

weird
dunno why it would look like that

#

What does the texture itself look like?

quasi bridge
signal mountain
#

k, in that case try replacing your current .json model with this:

{
  "parent": "item/handheld",
  "textures": {
    "layer0": "rename_tutorial:item/fragger"
  }
}```
#

This should generate an item model from your texture ingame.

#

If you wanna adjust display settings you can load that file into Blockbench and adjust display settings
-# it won't show up in Blockbench like you have seen it ingame at first though, since Blockbench doesn't show the display settings the game inherits from the parent. But it doesn't matter since it will use your custom ones for the ones you edit anyways, so the custom display settings you make in BB will be what you see ingame

quasi bridge
#

fragger.json or netherite_sword.json

signal mountain
#

your model (so fragger.json)

#

The item definition file (items/netherite_sword.json) stays as it is.

signal mountain
quasi bridge
signal mountain
#

oh oops, I forgot a comma

#

at the end of the "parent" line

quasi bridge
#

it works thanks

quasi bridge
#

i have one more problem here i have a bow texture pack but bow_pulling_2.png isnt working and it just loads deafult texture