ResourcePackConverter icon indicating copy to clipboard operation
ResourcePackConverter copied to clipboard

1.21.4 new resourcepack structure

Open stijnb1234 opened this issue 1 year ago • 10 comments

1.21.4 introduced a whole new structure for resourcepack files. Can someone implement a converter for this?

For example also implemented in: https://www.spigotmc.org/resources/minecraft-resourcepack-migrator-1-14-1-21-4.120983/

stijnb1234 avatar Dec 10 '24 19:12 stijnb1234

Are you talking about the "overrides" to items change in 1.21.4?

lowercasebtw avatar Dec 10 '24 19:12 lowercasebtw

No, 1.21.3 style:

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "item/stick"
    },
    "overrides": [
        {"predicate": {"custom_model_data": 19002}, "model":"custom_items/cat_hat/cat_hat_black"}
    ]
}

1.21.4 style:

{
  "model": {
    "type": "range_dispatch",
    "property": "custom_model_data",
    "fallback": {
      "type": "model",
      "model": "item/stick"
    },
    "entries": [
      {
        "threshold": 19002,
        "model": {
          "type": "model",
          "model": "custom_items/cat_hat/cat_hat_black"
        }
      }
    ]
  }
}

stijnb1234 avatar Dec 10 '24 19:12 stijnb1234

that is what i just said, the overrides to that, its in the "items" folder

lowercasebtw avatar Dec 10 '24 19:12 lowercasebtw

Ah okay, then yes.

stijnb1234 avatar Dec 10 '24 19:12 stijnb1234

There are plans to work on being able to do this, but for now you can use EMU as they just updated/released their 1.21.4 version, you can find out how to use it & more here: https://discord.gg/Rbtctdgj9h

lowercasebtw avatar Dec 10 '24 19:12 lowercasebtw

This 1.21.4 version , another Milestone in Minecraft . I don't mind the optimization, but now a pack can support multiple versions. If Mojang is developing at such an accelerated rate , they should provide support tools. Our server is still on 1.21.1 until i can migrate plugins and resource packs. Then i will worry about command blocks and data packs.

Just my 2 cents

Tsoccerguy3 avatar Dec 17 '24 18:12 Tsoccerguy3

I will work on it soon

lowercasebtw avatar Dec 17 '24 18:12 lowercasebtw

The 1.21.4 part of the converter

lowercasebtw avatar Dec 17 '24 18:12 lowercasebtw

I haven't touched this for a while due to my current workload (I haven't had a ton of time to commit to the project). I'm currently looking over @lowercasebtw 's changes, and am going to look at what is needed to add this feature on top.

CoryBorek avatar May 23 '25 23:05 CoryBorek

in the latest commit to dev/1.21.4 the new structure is partially fixed for models only containing custom_model_data or damage values.

CoryBorek avatar May 24 '25 01:05 CoryBorek