#I need help with fixing this code
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/sentry_armor_trim_smithing_template"
},
"overrides": [
{
"predicate": {
"custom_model_data": 745001
},
"model": "item/money"
}
]
}
What’s it doing instead of working?
well its not really changing it
<@&935561184806060073> <@&1202694677766348840>
Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)
The model file is in the Minecraft namespace?
what?
Where is your item/money JSON file in your resource pack? What filepath?
Because of you don't define a namespace, it will assume the minecraft namespace
its in my resource pack for the datapack
assets/minecraft/textures/items/money.png
Ok, so that is just a texture file. Even if you're just using a flat texture, you also need a model file in minecraft/models/item
And that is what the custom_model_data is looking for. That file will point to the texture
ok bye
if your gonna be like that you can leave anyways
im just changing the flat texture
I just don't know how to help if my suggestion is incorrect, because that's what I always do for custom textures and it works.
Same
Not relevant
Generally, you still need a model file
I know it's confusing, there's a lot of misnomers in Minecraft
but i did it with a carrot on a stick before and it worked
But that's why it's called custom_model_data
so whats up with that
Ok, then do that again I guess
Because I don't understand how that could be, so you must know something I don't
im genually asking whats up with that i did it with carrot on a stick
I don't know
I've informed you of the method I'm familiar with
If there's another method, I'm not familiar
what’s the problem?
look in chat
yeah it just looks like arguing to me lol
have you looked at the very top
this
aint workin
wdym by not working
like its not changing the texture its not even giving me a black and purple cube just the normal texture
where’s that file saved?
the .json or the texture
They disagree
i do have two jsons
you need the file assets/minecraft/models/item/money.json
hey
cut that out
we’re trying to help you, don’t tell our helpers to shut up
i’m still waiting for this btw
oh its resourcepack/assets/models/items/money.json
i meant that
you should have two json files and one png file:
- the JSON file which overrides the vanilla item model (such as
assets/minecraft/models/item/flint.json) - the JSON file which is the custom sprite model (
assets/minecraft/models/item/money.json) - the texture png
one sec
ill show both
money.json:
"parent": "minecraft:item/generated",
"textures": {
"layer0": "item/money"
}
}```
sentry_armour_trim_smithing_template.json:
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/sentry_armor_trim_smithing_template"
},
"overrides": [
{
"predicate": {
"custom_model_data": 745001
},
"model": "models/money"
}
]
}```
shouldn’t be models/money, just item/money (if money.json is saved in models/item/money.json) on that last line
i changed it so its in models
bc u said to move it into models or thats what i understood
so it’s in models/models/money.json
no
I never said that
" or thats what i understood"
It needs to be in models**/item/**money.json
You can have it in another folder if you want but this is much easier for you
ok done
change this too
also the filename should be armor and not armour bcuz it uses American English
ok im dumb
i will admit that
and look that it worked
it was because of stupidity
right at 100 texts to
half of it was aruging
maybe if ur nicer and more cooperative with the helpers (who are volunteers and don’t have to answer your questions) and treat them like real people you’d get help more quickly
i waited like 6 hours before i started arguing
can you blame me for being a little upset
no that doesnt really justify my actions
you pressed the summon helpers button two hours after you posted it, someone replied instantly, then you took another 2 hours before answering
ok i do admit that i was slow on the answering
so even if you take out the 2hrs
its 4hrs
still only two hours, and that’s because it took you two hours before you pressed the button
not to mention he gave me attitude
If I don't know how to help you then I will say so
That's not attitude
Especially when the thing I was asking if you had, you did have and kept saying you didn't need it
i come from a sarcastic family so i thought that was sarcasim
Ok well do you see how that is your problem and not mine?
yes
Troubleshooting is a collaborative endeavor
but just to tell you why its because of this
and also my fault
as well
drop it now
Yeah, it's really not important
if you’ve fixed it, run /resolve