CraftBook
CraftBook copied to clipboard
Custom crafting not working with potion as ingredient
CRAFTBOOK-3055 - Reported by cyclo
I'm having an issue where if a recipe calls for a potion in the ingredients, the resulting item does not get made. If I replace the potion with stone, for example, then the recipes crafts successfully. currently using build 3898
stevehead: type: shaped ingredients: '381': 'a' '373:8261': 'b' '264': 'c' '365': 'd' '326': 'e' '347': 'f' shape: - 'aba' - 'cdc' - 'efe' results: '397:3|&rSteve': 1
Comment by me4502
If you remove the :8261, does it work?
Comment by cyclo
Yes, but only with a water bottle.
Comment by me4502
In that case the data value is causing it to become invalid
Comment by me4502
Are you using OpenJDK by chance? I have a feeling that may not support the regex used..
Comment by cyclo
java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
Comment by me4502
Would you be able to run this program, and comment back with the log file it generates?
Comment by cyclo
Attached. I'm also in the process of making other recipes that work fine with data values. 351:15 for example, works ok.
Comment by me4502
Was that run on the machine that the issue was occurring on?
Comment by cyclo
Yes it was
Comment by me4502
I'm not sure if this will make a difference, but are you able to try the latest dev build of CraftBook?
Comment by cyclo
I actually tried that a few minutes after it was uploaded (forgot to mention). Potions still don't work with that build.