{
  "type": "component_format",
  "items": [
    "minecraft:bundle",
    "minecraft:white_bundle",
    "minecraft:orange_bundle",
    "minecraft:magenta_bundle",
    "minecraft:light_blue_bundle",
    "minecraft:yellow_bundle",
    "minecraft:lime_bundle",
    "minecraft:pink_bundle",
    "minecraft:gray_bundle",
    "minecraft:light_gray_bundle",
    "minecraft:cyan_bundle",
    "minecraft:purple_bundle",
    "minecraft:blue_bundle",
    "minecraft:brown_bundle",
    "minecraft:green_bundle",
    "minecraft:red_bundle",
    "minecraft:black_bundle"
  ],
  "modelPrefix": "item/bundle/",
  "modelParent": "minecraft:item/generated",
  "parameters": {
    "format": "${content}_${name}",
    "variables": {
      "content": {
        "componentType": "bundle_contents",
        "nbtPath": "[0].id"
      },
      "name": {
        "componentType": "custom_name",
        "expect": "rich_text",
        "debug": true,
        "transform": ["lowercase",
          {
            "regex": "(?iu)ё",
            "substitution": "е",
            "matchAll": false,
            "validate": false
          },      {
            "regex": "(?iu)кошелек",
            "substitution": "koshelek",
            "matchAll": true,
            "validate": false
          }
        ]
      }
    },
    "expect": "string",
    "debug": true,
    "fallbackModel": "item/bundle/empty.json"
  },
  "variants": {
    "deepslate_diamond_ore_koshelek": {
      "texture": "textures/item/bundle/deepslate_diamond_ore_koshelek.png",
      "model": "item/bundle/deepslate_diamond_ore_koshelek.json"
    },
    "diamond_ore_koshelek": {
      "texture": "textures/item/bundle/diamond_ore_koshelek.png",
      "model": "item/bundle/diamond_ore_koshelek.json"
    },
    "empty_koshelek": {
      "texture": "textures/item/bundle/_koshelek.png",
      "model": "item/bundle/_koshelek.json"
    },

    "default": {
      "model": "minecraft:item/stick"
    }
  }
}