Closed Laike-Endaril closed 5 years ago
Not possible, unfortunately...
https://github.com/MinecraftForge/MinecraftForge/issues/1618
@Mohron I see, thanks for looking into it.
I suppose a workaround could probably be used with a wrapper method and a special case for 0 which adds exactly 1 level to the player immediately before the successful crafting, and then passes 1 into the vanilla method, but that's a bit hacky so I won't officially request it.
I actually thought about that as well! But for now I'll just update the scripts to error on costs less than 1
On Thu, Mar 14, 2019, 3:15 AM Laike-Endaril notifications@github.com wrote:
@Mohron https://github.com/Mohron I see, thanks for looking into it.
I suppose a workaround could probably be used with a wrapper method and a special case for 0 which adds exactly 1 level to the player immediately before the successful crafting, and then passes 1 into the vanilla method, but that's a bit hacky so I won't officially request it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DevOnTheRocks/RockyCore/issues/15#issuecomment-472787450, or mute the thread https://github.com/notifications/unsubscribe-auth/ADdI0rxyOW4sIKiXka9gbgOlaOcemOCkks5vWiEjgaJpZM4Y7jP1 .
I created a recipe (iron + coal = steel) and set the experience cost to 0. The recipe shows correctly in anvil and JEI but the steel ingot cannot be taken from the output slot.
Changing the experience cost to 1 allows the crafting (no other changes made).