Skip to content

Custom Patterns

roidrole edited this page May 12, 2025 · 5 revisions

Here's how to add custom patterns to the game :

If using resource loader, you can also add custom banner patterns via config by :

  1. Adding a custom pattern hash in patternbanners.cfg : general/custom_pattern_hashes
  2. Set a custom banner shape in both assets/minecraft/texture/entity/banner/[name].png and assets/minecraft/texture/entity/shield/[name].png
  3. Regenerating the configs with /patternbanners:regenconfig
  4. Find the mapping for your new pattern·s. It should be at the bottom of the list and look like this :
[number]{
    S:hash=[hash]
    I:meta=[number]
    S:name=[hash]
}

You can tweak these values as the following :

  • hash : should be the exact same as your custom_pattern_hash
  • meta : should be the same as the number in front of the category. You shouldn't touch this if you don't want to break current pattern item
  • name : name used for texture mapping and localization. Can be any name not already used. For an easier time, use snake_case

To make the mod generate a recipe, you need to add one of those two fields :

  • item : the item used for the shapeless paper + item recipe, in the format : modid:name:meta. Note that meta is required and is 0 for most items
  • shap : the shape of a dye crafting recipe, in left-right, top-down order. "#" represents dyes and " " represent empty spaces. Paper is added anywhere. Only works if shapes_pattern=true in general
  1. (optional) Overwrite default pattern item name and texture

Clone this wiki locally