#Need help resizing models

44 messages · Page 1 of 1 (latest)

night spire
#

CustomModelData is the vanilla way to add more item models (kinda like CIT, but limited to one specific NBT tag and that NBT tag can only be changed via commands)
It has nothing to do with how big your model is.

#

If you want a bigger model then either make your model bigger or adjust its display settings accordingly.

iron arrow
#

where can the display settings be adjusted?

night spire
#

When you said "custom sword item", is that an actual model? Or is it just a texture swap?

iron arrow
#

it's a texture swap

night spire
#

K, then now you need to make it a model swap, but the .json model itself can literally just be this:

{
  "parent": "item/handheld"
  "textures": {
    "layer0":"./your_texture"
  }
}```
and in your .properties instead of textures= you write model=
#

After that you load that .json file into Blockbench click on the "Display" text in the top right and then you can adjust the display settings for different displays (Head, Hands, etc) in the left section.

iron arrow
#

alright thanks

#

@night spire sorry for bothering again, i got it to work in some way, but now normal sword item without the custom name does not have a texture, what could it be caused by?

night spire
#

Have you edited diamond_sword.json (or whatever sword it is) in models/item in some way 🤔 ?

iron arrow
#

yes

night spire
#

for what reason have you edited it?

iron arrow
#

to change the display values

night spire
#

because you want the normal diamond sword to look bigger?

#

or because you wanted your custom one to look bigger?

iron arrow
#

the custom one, i wanted the normal one to stay untouched

night spire
#

then don't edit diamond_sword.json

iron arrow
#

then, how do you do it?

night spire
iron arrow
#

that's how the netherite_sword.json looks, "the_blade" is the custom texture, and somehow it works with the custom item, but messess up the normal one

#

am i supposed to do it in some other way?

night spire
#

yes, that should be your custom model, not netherite_sword.json

iron arrow
#

the name of it should be the texture or it doesn't matter?

night spire
#

move that in the same folder as your .properties file, rename it to whatever you want, then adjust that face in the properties file as well

#

also, I wouldn't suggest having > in the name of a file

#

!faq invalid-names

copper micaBOT
# night spire !faq 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 allows 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).

iron arrow
#

now the normal variant is back, but the custom display values are not applied

night spire
#

did you do this part?

iron arrow
#

i did, now the custom texture doesn't work at all

night spire
#

can you show what you have in your .properties file?

iron arrow
night spire
#

remove the .png part

#

or better yet, write model=./the_blade

iron arrow
#

like that?

night spire
#

and rename that file to the_blade.properties, not netherite_sword.properties

#

yes

iron arrow
#

alright

night spire
iron arrow
#

yes

#

so now i have these 3 files in the cit folder, is that right?

night spire
#

if your texture is in that folder too you need to adjust that in the texture path inside the .json file too
(so "./the_blade")

#

./ just means "in the same folder as this file" (with Optifine only)