Forestry withTag recipes (Backpacks)
JasonMcRay opened this issue ยท 6 comments
I am adding a recipe for Forestry Woven Backpacks into Carpenter, it works when the backpack is freshly created. But when I put anything into the backpack and then take it out, it will seize to work.
Found possible reason and thats "used" Forestry backpack is using NBT information. This NBT has random UID value.
Example: <<Forestry:minerBag>>.withTag({UID: -882233916, Slots: {}})
I tried to wildcard (*) the UID value using: <<Forestry:minerBag>>.withTag({UID: *, Slots: {}})
but I get an error: Invalid Expression, last token: *
is there anything you can do, or is it up to core MineTweaker?
The script I use is: mods.forestry.Carpenter.addRecipe(600, liquid:seedoil * 5000, [Forestry:craftingMaterial:3, Forestry:craftingMaterial:3, Forestry:craftingMaterial:3,Forestry:craftingMaterial:3, Forestry:craftingMaterial:3, Forestry:craftingMaterial:3,Forestry:craftingMaterial:3, Forestry:craftingMaterial:3, Forestry:craftingMaterial:3],Forestry:minerBag.withTag({UID: *, Slots: {}}), Forestry:minerBagT2);
Also I have tried it with .onlyWithTag
still same.
The wildcard can't be used in the NBT Data, but i think this is not MineTweaker problem more with the handling NBT in general.
That a item with NBT isn't valid for the recipe has nothing to do with Mine/Modtweaker, it depends how Forestry check for valid items. I will take a look at that.
Update: Nope nothing we can do here. At least for the Box stack the Carpenter checks for Equality of NBT Data.
@mezz might want to look into that in Forestry? ;)