Shinoow / AbyssalCraft-Integration

Integration module for AbyssalCraft
6 stars 6 forks source link

[1.10.2] Infusion Ritual for Enchanted Book not Working #12

Closed Alan19 closed 6 years ago

Alan19 commented 6 years ago

I'm using mods.abyssalcraft.InfusionRitual.addRitual("sharpnessRitual", 2, 53, 800, false, <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 8 as short, id: 16 as short}]}), <minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 7 as short, id: 16 as short}]}), [<botania:manaResource:4>, <bloodmagic:ItemActivationCrystal>, <evilcraft:invertedPotentia:1>, <botania:overgrowthSeed>, <abyssalcraft:platec>, <astralsorcery:ItemShiftingStar>], true); to add an infusion recipe to upgrade a sharpness 7 book into a sharpness 8 book but it's telling me that my data types do not match with the available methods because I have an int for the potential energy required but there's no problem with the example dirt to diamonds recipe.

Shinoow commented 6 years ago

It seems to completely refuse to recognize the method with the nbt parameter as long as there's one with yet another parameter. Until I find a solution for this (either set up bracket handlers for rituals, or switch them over to properly specifying optional parameters), you'll have to supply an empty array at the end (just []).

Alan19 commented 6 years ago

Thanks! I managed to fix the script!