Pack Merging

  • Views Views: 1,554
  • Last updated Last updated:

Resource Pack Guide

Pack Merging

  • Merging Items​

    Merging new items into your pack, like swords, cosmetics, furniture/props, and other types of items that require the usage of a single item .yml file are fairly simple to merge.

    To start off, on the right is an example of a resource pack with furniture that you would want to merge into your existing resource pack. There will be 3 main things you need from this pack; the custom folders from both models and textures and the base item's .yml file.

    Begin with moving the "custom" folders from the models and textures folder into the same exact directory in your existing pack.

    Makefile:
    📁Funky Furniture RP
    └── 📁assets
    ├── 📁minecraft
    ├── 📁models
    │ ├── 📁item
    │ │ └── 📑paper.json
    │ └── 📁custom
    └── 📁textures
    └── 📁custom

    Once you've merged the models and textures folder from the other pack into your existing, you will now need to update your predicates. Inside our pack (above) you can see we have all our furniture on a paper item. Inside the paper.json, we will find something similar.

    JSON:
    {
    "parent": "minecraft:item/generated",
    "textures": {
    "layer0": "minecraft:item/paper"
    },
    "overrides": [
    {"predicate":{"custom_model_data":1},"model":"custom/funky_chair"},
    {"predicate":{"custom_model_data":2},"model":"custom/funky_desk"},
    {"predicate":{"custom_model_data":3},"model":"custom/funky_lamp"},
    {"predicate":{"custom_model_data":4},"model":"custom/funky_computer"},
    {"predicate":{"custom_model_data":5},"model":"custom/funky_bed"},
    {"predicate":{"custom_model_data":6},"model":"custom/funky_nightstand"},
    {"predicate":{"custom_model_data":7},"model":"custom/funky_sofa"},
    {"predicate":{"custom_model_data":8},"model":"custom/funky_table"},
    {"predicate":{"custom_model_data":9},"model":"custom/funky_cabinet"}
    ]
    }


    All you have to do is copy and paste every predicate line over into the same file (in this case paper.json) in your existing pack. The final result will look like the example below. Make sure that after every line, you include a comma, except for the last predicate entry (this is an easy mistake people make often, is messing up with the commas!).

    JSON:
    {
    "parent": "minecraft:item/generated",
    "textures": {
    "layer0": "minecraft:item/paper"
    },
    "overrides": [
    {"predicate":{"custom_model_data":1},"model":"my_server/cowboy_hat"},
    {"predicate":{"custom_model_data":2},"model":"my_server/fairy_wand"},
    {"predicate":{"custom_model_data":3},"model":"my_server/cup"},
    {"predicate":{"custom_model_data":4},"model":"my_server/cheese"},
    {"predicate":{"custom_model_data":5},"model":"my_server/shelf"},
    {"predicate":{"custom_model_data":6},"model":"my_server/phone"},
    {"predicate":{"custom_model_data":7},"model":"my_server/mouse"},
    {"predicate":{"custom_model_data":8},"model":"my_server/keyboard"},
    {"predicate":{"custom_model_data":9},"model":"my_server/basket"},
    {"predicate":{"custom_model_data":10},"model":"custom/funky_chair"},
    {"predicate":{"custom_model_data":11},"model":"custom/funky_desk"},
    {"predicate":{"custom_model_data":12},"model":"custom/funky_lamp"},
    {"predicate":{"custom_model_data":13},"model":"custom/funky_computer"},
    {"predicate":{"custom_model_data":14},"model":"custom/funky_bed"},
    {"predicate":{"custom_model_data":15},"model":"custom/funky_nightstand"},
    {"predicate":{"custom_model_data":16},"model":"custom/funky_sofa"},
    {"predicate":{"custom_model_data":17},"model":"custom/funky_table"},
    {"predicate":{"custom_model_data":18},"model":"custom/funky_cabinet"}
    ]
    }

    After you've merged your predicates, you're all set. Go ahead and give yourself the item and check it out in-game!

    Merging Fonts​

    Coming soon.

    Need More Brain Fuel?

    Check out these other neat guides!