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

Started by trashoflevillage on Tue, 06/30/2020 - 15:35

Topic category: Help with MCreator software

Last seen on 02:08, 12. Jul 2020
Joined Dec 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Is there a way to add enchants to items inside the crafting grid and the output for the recipe?
Tue, 06/30/2020 - 15:35

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}]}
  }
}