Rocky Tweaks

Rocky Tweaks

1M Downloads

Recipe with experience cost of 0 is uncraftable

Laike-Endaril opened this issue · 3 comments

commented

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).

commented

Not possible, unfortunately...

MinecraftForge/MinecraftForge#1618

commented

@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.

commented