#My model isn't working
91 messages ยท Page 1 of 1 (latest)
What's your json file named?
Are you in 1.19.3?
Yes
And is it that your model loads fine but the texture is purple/black?
!faq output
(Result for "output-log")
The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it: https://i.imgur.com/WbQZa6k.png
(PS: Optifine likes to hide vanilla errors/warnings for some weird reason, so always load the game up without it if you don't need it for your pack to work!)
The output log is posted a bit further up
What should i do to fix it? sorry i'm new to all of this, what's wrong with it?
is this a custommodeldata model
Unsure, how do i check that?
you are the one that is making it, how did you make it
I was the one who made it yes, i made it through blockbench
I followed a tutorial but i'm unsure if i did something wrong along the way, which i don't think i did because i followed it exactly how it told me to. Perhaps its a bit outdated but i didn't notice much of a difference
do you have a second item model somewhere
How will i do that?
I followed this tutorial btw if that helps https://youtu.be/Cw8PPPEl_IQ
A huge thank you to Violet for teaching me all of this: https://twitter.com/violxiv
A stream where I make hats: https://www.youtube.com/watch?v=PfHN7cO87sc
00:00 - Intro
00:50 - Creating your model
06:49 - Texturing your model
09:14 - Customizing in game appearance
11:50 - Creating a resource pack & importing your model
15:31 - Spawning your m...
do you have any other files in your pack
I only have the ones that the tutorial told me to do
ill try to get a screenshot
Oh i have the carved pumpkin model in the item folder if that helps
yes open it in notepad
I'm not sure how to make a proper screenshot showing everyfile of it lol
your model is not defined
How so? what would be the fix for it?
Like this, yes?
no you added a random / at the end
and get rid of the .json
also, your carved_pumpkin file is a .txt instead of a .json
and that parent/texture combination is not what the default model looks like
you just want "parent": "block/carved_pumpkin", there, (instead of the current "parent" and"textures" sections)
why not keep it as .json ๐ค ?
you can open a .json file in notepad just fine
and get rid of the whole "textures" section
Doesn't let me for some reason haha
Now its just a regular carved pumpkin
I reload the pack and theres no errors in the game output, what should i do in this situation?
Did you make it a .json again?
Yes
Can you send the .json file in here? (As file, not just the content)
what's the current problem btw.?
like, is it just a normal carved pumpkin? is it an error cube? etc.
Now its just a regular carved pumpkin
Before i started editing the pumpkin json file it was an error cube, now its a regular carved pumpkin
what command did you use ingame to give yourself the pumpkin?
/give @s minecraft:carved_pumpkin{CustomModelData:1} i did this one
hmm, i don't see why that wouldn't be the custom model ๐ค
I still have no clue what the problem might be, the output log doesn't say absolutely nothing
can you send your resource pack?
what version of Minecraft are you using btw.?
1.19.3
hmm, I don't see why this wouldn't work ๐ค
Oh! its working now! i just made a copy and enabled the copy resource pack instead, now it just has a broken texture!
(Result for "java-1.19.3-textures")
General Information:
The game creates a "texture atlas" (combination of all textures into one file) for block/item models.
For performance reasons as of Java 1.19.3 the game by default only loads textures from within textures/item and textures/block (and any folders within those two folders) into that atlas instead of reading through every model for the relevant textures.
_________________________
Making the game load from custom directories
If you want the game to add textures from other directories (that are still somewhere within the "textures" folder) to that atlas you will need to create a blocks.json file in YourPack/assets/minecraft/atlases:
Example blocks.json
{
"sources": [
{
"type": "directory",
"source": "custom",
"prefix": "custom/"
}
]
}```
This example would make the game add _all_ textures that are within `textures/custom` to the atlas. This **even** applies to images that are not used by your models, so keep your pack clean for better performance and smaller size!.
**_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_**
**Additional/more specific information**:
If you have several custom directories you can add several json objects in the "sources" list/array.
blocks.json's of different packs combine btw, so you don't need to worry that one pack will stop another pack from loading their textures.
Here is also an example pack from a Minecraft dev (boq) with some more specific examples (like only using the face part of the default pig texture instead of loading all entity textures or the whole pig texture): <https://cdn.discordapp.com/attachments/593812273164976166/1042452631743901756/sprites.zip>
The official blog post with the changes (you will have to scroll down quite a bit for the relevant information): <https://www.minecraft.net/en-us/article/minecraft-snapshot-22w46a>
I'm not sure if i get it sorry, so do i have to create a new file called atlases?
and inside needs to be a json file like the one specified above?
whoever sent that faq:
-that's not the problem here since the texture is within textures/block/...
unless you edited that carved_pumpkin.json again, Kydax
Last edit i did to it was the last one that i sent here
right, in your hat.json the path is "block/custom/texture"
but you have no texture.png, you have a hat.png there
so either rename the .png file or adjust the texture paths in your hat.json to hat instead of texture
Oh my it worked! thank you so much, you've been of great help, i really appreciate it! :)
!close
Channel closed ----------