Skip to content

RecipeModule

Kapitencraft edited this page Sep 25, 2026 · 1 revision

this module adds two new recipe serializers:

Armor Recipe Serializer

Diamond Armor Example:

{
  "type": "kap_lib:armor",
  "material": {
    "item": "minecraft:diamond"
  },
  "results": "minecraft:diamond"
}

allows modders to simplify recipes for armor, which usually require 4 different recipes, one for each piece.

Upgrade Item Recipe Serializer

allows upgrades of items by surrounding the item to upgrade with items in a certain pattern. the upgraded item retains the data components (enchantments, custom name, etc.)

{
  "type": "kap_lib:upgrade_item",
  "craft_type": "four_diagonal",
  "source": {
    "item": "minecraft:diamond_sword"
  },
  "material": {
    "item": "minecraft:ender_pearl"
  },
  "result": "anything:ender_sword"
}

Clone this wiki locally