#My model isn't working

91 messages ยท Page 1 of 1 (latest)

steel heath
#

Hello, I'm new to this and i'm trying to follow a custom hat/item tutorial and my model isn't seem to be working in-game, i followed the tutorial and the game output tells me that its unable to load the model but i'm unsure how to fix it. I'd appreciate some help :)

cunning wave
#

What's your json file named?

steel heath
#

Its named hat

cunning wave
#

Are you in 1.19.3?

steel heath
#

Yes

cunning wave
#

And is it that your model loads fine but the texture is purple/black?

steel heath
#

No model

vivid apex
#

!faq output

iron acornBOT
# vivid apex !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!)

steel heath
#

The output log is posted a bit further up

vivid apex
#

oh wait yea lol

#

well there is your problem

steel heath
#

What should i do to fix it? sorry i'm new to all of this, what's wrong with it?

vivid apex
#

is this a custommodeldata model

steel heath
#

Unsure, how do i check that?

vivid apex
#

you are the one that is making it, how did you make it

steel heath
#

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

vivid apex
#

do you have a second item model somewhere

steel heath
#

No

#

Thats the only one

vivid apex
#

you must do

#

otherwise this pack wouldnt do anything

steel heath
#

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...

โ–ถ Play video
vivid apex
#

do you have any other files in your pack

steel heath
#

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

vivid apex
#

yes open it in notepad

steel heath
#

I'm not sure how to make a proper screenshot showing everyfile of it lol

steel heath
vivid apex
#

your model is not defined

steel heath
#

How so? what would be the fix for it?

vivid apex
#

putting the name of the model there properly

#

block/custom/hat.json

steel heath
#

Like this, yes?

vivid apex
#

no you added a random / at the end

pine swallow
#

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)

steel heath
#

Like this?

#

Also i'm aware of the txt file, i change it to .json afterwards

pine swallow
#

why not keep it as .json ๐Ÿค” ?
you can open a .json file in notepad just fine

#

and get rid of the whole "textures" section

steel heath
steel heath
#

This correct?

pine swallow
#

the whole textures section, not just the first line

#

all of this

steel heath
#

Oh i see!

pine swallow
#

yes, that looks correct

#

(assuming your hat model itself has no problem ofc)

steel heath
#

Now its just a regular carved pumpkin

steel heath
#

I reload the pack and theres no errors in the game output, what should i do in this situation?

pine swallow
#

Did you make it a .json again?

steel heath
#

Yes

pine swallow
#

Can you send the .json file in here? (As file, not just the content)

steel heath
#

The actual hat model or the pumpkin one?

#

sent both just in case

pine swallow
#

like, is it just a normal carved pumpkin? is it an error cube? etc.

steel heath
#

Now its just a regular carved pumpkin

steel heath
pine swallow
steel heath
pine swallow
#

hmm, i don't see why that wouldn't be the custom model ๐Ÿค”

steel heath
pine swallow
#

can you send your resource pack?

steel heath
#

Yes

pine swallow
#

what version of Minecraft are you using btw.?

steel heath
#

1.19.3

pine swallow
#

hmm, I don't see why this wouldn't work ๐Ÿค”

steel heath
#

Oh! its working now! i just made a copy and enabled the copy resource pack instead, now it just has a broken texture!

iron acornBOT
#

(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>
steel heath
#

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?

pine swallow
#

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

steel heath
pine swallow
# steel heath

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

steel heath
pine swallow
#

!close

iron acornBOT
#

Channel closed ----------