#error block showing in a model

94 messages · Page 1 of 1 (latest)

native sunBOT
#
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.

spice quail
#

what version of Minecraft do you want this to work in?

frozen trail
spice quail
#

can you show the first couple lines of text of the .json model in a text editor?

frozen trail
# spice quail can you show the first couple lines of text of the .json model in a text editor?

{
"format_version": "1.21.11",
"credit": "Made with Blockbench",
"textures": {
"0": "item/pale",
"particle": "item/pale"
},
"elements": [
{
"from": [8, 1, 7],
"to": [9, 3, 8],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 7]},
"faces": {
"north": {"uv": [7, 8, 8, 10], "texture": "#0"},
"east": {"uv": [4, 9, 5, 11], "texture": "#0"},
"south": {"uv": [5, 9, 6, 11], "texture": "#0"},
"west": {"uv": [9, 6, 10, 8], "texture": "#0"},
"up": {"uv": [12, 11, 11, 10], "texture": "#0"},
"down": {"uv": [12, 11, 11, 12], "texture": "#0"}
}
},
{
"from": [8, 3, 7],
"to": [9, 5, 8],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 3, 7]},
"faces": {
"north": {"uv": [8, 9, 9, 11], "texture": "#0"},
"east": {"uv": [9, 8, 10, 10], "texture": "#0"},
"south": {"uv": [10, 0, 11, 2], "texture": "#0"},
"west": {"uv": [10, 2, 11, 4], "texture": "#0"},
"up": {"uv": [1, 13, 0, 12], "texture": "#0"},
"down": {"uv": [13, 0, 12, 1], "texture": "#0"}
}
},

spice quail
#

!faq output-log

native sunBOT
# spice quail !faq output-log
FAQ
Java: Output Log

The output log will show you errors related to resource packs in Minecraft: Java Edition. Here is how you can enable it.
(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!)
If you don't understand the errors/warnings feel free to show and ask about them (in a help channel).

vale harness
spice quail
#

!faq piracy

native sunBOT
# spice quail !faq piracy
FAQ
Minecraft: Piracy

If you are playing a pirated copy of Minecraft, we will not provide any support.
Piracy is first and foremost is illegal, and additionally against Discord Terms of Service.
Beyond that, it is not only disrespectful to the creators, it causes them to lose money on the product.
Please consider purchasing the game. (https://www.minecraft.net/en-us/get-minecraft)

frozen trail
#

Also i forgot to tell that i gave a name dependent file and it was working fine until i added the new model when i added the new model all the models convert into error cubes when i rename to them

#

I tried fixing it and after using different formats and in one of them my other models are are okay but without texture and this one shows an error cube

spice quail
frozen trail
#

As it was just 3 lines of code that i added I checked it multiple times it wasn't wrong

spice quail
vale harness
#

I am facing the same problem as well

#

I can try to borrow my brother's account

#

Can you help me as well??

frozen trail
#

These foles are model the texture and the mame dependent file liek you said

spice quail
# frozen trail

don't see a reason why that would cause the sword in general to fail 🤔 (nor why it would fail to load your model assuming it is where you specified it in the netherite_sword.json)

frozen trail
spice quail
spice quail
frozen trail
spice quail
#

Dunno, I don't use custom clients besides for modding.

#

just use the default one for now for debugging

frozen trail
#

ok

frozen trail
#

i cant understand output log

spice quail
#

output log is colored coded though, and you can clear it before reloading the pack to limit it to the relevant info
latest.log is just everything from one session in one text file (without any coloring or limiting)

spice quail
#

screenshot the output log then

frozen trail
#

can i check it from the latest.log?

#

i can fetch it out

#

and give it to you

spice quail
#

what do you not understand from the output log?

frozen trail
#

idk

#

everything

spice quail
#

that's not an answer

#

what's the problem you encounter with showing me the output log?

frozen trail
spice quail
#

yeah ... that's why I have been asking you to SHOW ME what you don't understand

frozen trail
#

wait wait

#

Failed to load model minecraft:models/items/pale.json

#

i found ts in latest.log

spice quail
#

yeah, ofc it will say that
but there is context before/after that explains why it fails

frozen trail
#

[19:08:26] [Worker-Main-15/ERROR]: Failed to load model minecraft:models/items/pale.json
com.google.gson.JsonSyntaxException: Missing axis, expected to find a string

is this the error?

spice quail
#

didn't you say you were in 1.21.11?

frozen trail
#

i tried 1.21.11 but my main verson is 1.20.10 cuz i downloaded all mods in it

spice quail
#

well that's your problem then

frozen trail
#

i tried in 1.21.11 it didnt work as well

spice quail
#

!faq java-rotations

native sunBOT
# spice quail !faq java-rotations
FAQ
Java: Rotation

Depending on the version of Minecraft you are making your model for (specified in File > Project... or when creating a new project) there are different limitations:

1.9 - 1.21.5

  • Rotations are limited to increments of 22.5 degrees.
  • Cubes can only have one rotation value on one axis.
    -# (To be more specific, the allowed values are -45, -22.5, 0, 22.5 and 45.)

1.21.6 - 1.21.10

  • Rotations are limited to values between -45.0 and 45.0 (inclusive)
  • Cubes can only have one rotation value on one axis.

1.21.11+

  • Basically no rotation value limit (values between -180.0 and 180.0).
  • Now cubes can have rotations on all axes.

Note: Changing the format version to an older value in an existing model will not automatically snap cubes to valid rotations. You will need to rotate all cubes back and forth at least once to make sure they are rotated to valid values for the older format.

spice quail
#

1.21.11+: Now cubes can have rotations on all axes.
that's the important part

#

you have cubes in your model with the multiple rotations stored in the model (even if they are 0)
Before 1.21.11 the rotation was stored like
"angle": 0, "axis": "y"
as of 1.21.11, to support multiple rotations, it's now also stored like:
"x": 0, "y": 0, "z": -65

frozen trail
#

but why does it convert all the other models to error cubes then?

spice quail
#

it shouldn't affect any other models

frozen trail
#

but it does

spice quail
#

as you can see in my screenshot my normal netherite sword works just fine, and your custom model loads just fine on it too (in 1.21.11)

frozen trail
#

lemme send ss

#

wait

frozen trail
#

sorry it took 20 mins i use a vintage pc and the texture pack is almost 20 mbs ;-;

spice quail
#

test your pack out on a vanilla client (no mods, default launcher)

#

And clear the output log, then reload the pack ingame (F3+T), then send screenshots of the output log messages

frozen trail
#

let me tell you the entire thing form the start

#

i made a model with 13 diffrent textures

#

then i copied a model and pasted it 13 times and changed their names according sorted the texture names

#

and when i added them to the name dependent file it converted all my models to error cubes

#

i tried all of them in 1.21.11 and still it wasnt fixed

#

then i made a seperate one with only those 13

#

it didnt work\

#

then i made one with only seperate textures and it worked in 1.21.11

#

but the problem is that it is working seperately but when i add all those 13 together it converts all my models to error cubes

#

and sometimes seperate ones dont work as well (in my main pack with all other models)

#

i gotta check the logs again thats the last hope ig

spice quail
#

As I said before, I used the two .json files you sent earlier and it works fine for me on a vanill client with the default launcher.
So unless you show me the messages the output log throws I cannot help you further.

frozen trail
#

this is the texture pack that contains the 13 models along with the textures and other models that are in the picture that i sent you but dosent have the textures

#

the output log dosent shows no warnings

#

and also please check if you remove the other models from the .json file and try again to see if they work with the other model removed

#

for me when i remove the other models it works but when i add them they dont work

#

list of the 13 models i told about

#

and i am sorry if i made you frustrated i didnt ment to

spice quail
#

and the output log will tell you about that too

#

!faq invalid-name

native sunBOT
# spice quail !faq invalid-name
FAQ
Java: Invalid Names

Files/Folders nor reference to them are allowed to contain capital letters nor spaces.
Valid symobls are: a-z (lowercase only!) 0-9 / . _ and -

When changing a file's/folder's name, keep in mind that you also need to update all references (texture path in models, model paths in custom_model_data predicates etc.)
Disclaimer: Optifine used to allow those characters, but for a vanilla client the model will either be the error cube or it might even crash their game (depending on their specs).