Abyssalnomicon recipe
Tom4455 opened this issue ยท 3 comments
Modpack version:
beta-version-0.1
Description:
The recipe for the Abyssalnomicon wants a empty omothol necronomicon, the other recipes work with a previous book of any charge
This is very weird, because I'm using the exact same code for all of them. I'm looking into it though...
Made the Abyssalnomicon craftable from an Omothol Necronomicon with any PE, but I couldn't find a way to transfer PE. For some reason the same code that I use to modify the output items NBT just doesn't work. It's very weird, because I'm using several instances of very similar code in multiple ZenScript files.
recipes.addShaped("abyssalcraft_necronomicon_upgrade4", <abyssalcraft:abyssalnomicon>,
[[<abyssalcraft:ingotblock:3>,<abyssalcraft:gatekeeperessence>,<abyssalcraft:ingotblock:3>],
[<abyssalcraft:eldritchscale>,<abyssalcraft:necronomicon_omt>.marked("necronomicon"),<abyssalcraft:eldritchscale>],
[<abyssalcraft:ingotblock:3>,<abyssalcraft:eldritchscale>,<abyssalcraft:ingotblock:3>]],
function(out, ins, cInfo) {
return out.withTag(ins.necronomicon.tag);
}, null);
The PE amount is stored exactly the same way on the Omothol Necronomicon and the Abyssalnomicon, so that can't be the issue.
Further, the above recipe should accept an Omothol Necronomicon with any NBT, but it only accepts one with NBT {PotEnergy: 0.0}
. Something's hardcoded in AbyssalCraft that doesn't let me change this.
Looks like the new recipe I've added preserves the NBT of the Omothol Necronomicon anyway. Seems it's built into Abyssalcraft to check for a Necronomicon in the crafting window, and if it has a {PotEnergy: ...}
NBT, transfer it to the new item.
The only issue is that before the craft it looks like you'd get an Abyssalnomicon with 0 charge, but after the craft it correctly adjusts the PotEnergy amount. It's a bit of visual bug, but it won't affect much.