Is there a way to add enchants to items inside the crafting grid and the output for the recipe?

Started by trashoflevillage on

Topic category: Help with MCreator software

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to add enchants to items inside the crafting grid and the output for the recipe?

I am wanting to be able to add a way to upgrade enchantment books in the crafting grid from their max level to a level above that, I've tried doing this with multiple methods and it has not worked. Here is the code for the recipe modification:

{
  "group": "more_progression",
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "012",
    "345",
    "678"
  ],
  "key": {
    "0": {
      "item": "more_progression:mythril_nugget"
    },
    "1": {
      "item": "more_progression:mythril_ingot"
    },
    "2": {
      "item": "more_progression:mythril_nugget"
    },
    "3": {
      "item": "more_progression:mythril_ingot"
    },
    "4": {
      "item": "minecraft:enchanted_book"
      "nbt": {StoredEnchantments:[{lvl:5s,id:16s}]}
    },
    "5": {
      "item": "more_progression:mythril_ingot"
    },
    "6": {
      "item": "more_progression:mythril_nugget"
    },
    "7": {
      "item": "more_progression:mythril_ingot"
    },
    "8": {
      "item": "more_progression:mythril_nugget"
    }
  },
  "result": {
    "item": "minecraft:enchanted_book",
    "count": 1
    "nbt": {StoredEnchantments:[{lvl:6s,id:16s}]}
  }
}