#Updating my resource pack from 1.21.1 to 1.21.8

1 messages · Page 1 of 1 (latest)

solid bison
#

Hey, I decided to finally update my rp. But ran into a few issues when trying to see my models. I use a damage property .json to view my models on a diamond pickacxe but I've seen mixed stuff on this format being removed in 1.21.4 and that I need to use a new items folder within the rp too now? I am a little confused on what I actualy need to do in order to update the pack.

golden steepleBOT
#
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.

frozen kettle
#

Personally I'd suggest item_model, but the decision is up to you ofc.

solid bison
#

Yea I did mess up starting with damage properties, I'm willing to switch but I need the models placed around my world to stay as the model with a new format (if thats even possible)

#

I like the simplicity of typing in a number connected to a model than a name typed out if theres a system like that

#

My biggest worries about updating to a new format is that I rather not spend a few hours retyping every model into something else unless there happens to be a quick generator or something, if I dont have to retype but replacing every model is the cost I would be willing to do it

frozen kettle
#

And I know there is a converter but idk if that works for anything but custom_model_data predicates.

solid bison
#

Is there a way to do the damage properties in 1.21.8?

frozen kettle
solid bison
#

would manually require typing out every model lol

#

One thing online mentioned that but idk if it was referring to damage

#

like every model in models/items gets another .json in minecraft/items

frozen kettle
#

well, if you use damage predicates it would be one diamond_sword.json file with all the damage checks

#

if you use item_model then you'd have one .json per model

#

-# in the minecraft/items folder

solid bison
#

so all i have to do is copy the diamond_pickaxe.json into minecraft/items?

frozen kettle
#

not quite

#

threshold = damage

#

oh, forgot to put "Normalize" to false

#

set "Normalize" to true if you want values from 0.0 to 1.0

#

set it to false to have values from 0 to 1561 (or however many durability values a diamond sword has)

#

_ _
Going forward I'd suggest you use item_model for new models though, cause all that would be would be:

  • a .json model in minecraft/item that looks like this:

example.json

{
  "model": {
    "type": "model",
    "model": "item/feather"
  }
}```
and ingame you can then give any item that model via `/give @s stick[item_model=example]`
-# if you use a custom namespace it you would use `namespace:example` as value in the give command)
solid bison
#

so either way I would have to type every model data somehow in someway

#

I'm heavly debating switching to the item_model but I have alot of animated models and armor stands that would have to be remade so I might be stuck with the minecraft/items stuff

#

But for any new model I can use the item_model system right? I can run both at the same time?

frozen kettle
#

for the old predicates (damage, custom_model_data etc.) you overwrite the default item's definition file, for the item_model component you write a new item definition file.

You could have damage predicates etc. in that new item definition file too. So you could have custom swords that change the model when they get damaged enough etc.

solid bison
#

thank you this has been very helpful, one more question tho, before I get too far and have to redo alot. On the converter I put the damage in the threshold, but do I also have to type the name of the model anywhere? does that go in the model type box? I assume so but I don't wanna mess anything up

frozen kettle
solid bison
#

okay thank you, Ill probably keep this open overnight incase I run into any other issues but I think I got it from here thank you

frozen kettle
solid bison
frozen kettle
solid bison
frozen kettle
#

if your model is assets/minecraft/models/item/model1example.json and you reference model1example in the command later, then yes.

#

-# The item defintion file and the model do not necessarily need to be the same name.

solid bison
#

Once I input the command with the name and everything the model doesn't output onto the item

frozen kettle
solid bison
#

yea error cube

frozen kettle
#

And model1example.json exists in models/item?

solid bison
#

yup

frozen kettle
#

oh, you forgot a comma

#

actually, I did

#

and you copied it

solid bison
#

oh lol.

frozen kettle
#

comma at the end of the "type" line

solid bison
#

yup that fixed it, thank you so much for all this