mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
Add a way to ignore NBT in casting recipes (#43)
* Add a way to ignore NBT in casting recipes * use WILDCARD_VALUE * fix NPE
This commit is contained in:
1 parent
fdf4e1f212
commit
3394029e1d
2 files changed
+20
-7
No files matched your search
@@ -31,6 +31,7 @@ import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.CastingRecipe;
|
||||
import tconstruct.library.crafting.FluidType;
|
||||
import tconstruct.library.crafting.LiquidCasting;
|
||||
import tconstruct.library.crafting.Smeltery;
|
||||
@@ -684,7 +685,7 @@ public class TinkerSmeltery
|
||||
goldAmount = new FluidStack(TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue * 8);
|
||||
tableCasting.addCastingRecipe(new ItemStack(Items.golden_apple, 1), goldAmount, new ItemStack(Items.apple), true, 50);
|
||||
if (TinkerWorld.goldHead != null)
|
||||
tableCasting.addCastingRecipe(new ItemStack(TinkerWorld.goldHead), goldAmount, new ItemStack(Items.skull, 1, 3), true, 50);
|
||||
tableCasting.addCustomCastingRecipe(new CastingRecipe(new ItemStack(TinkerWorld.goldHead), goldAmount, new ItemStack(Items.skull, 1, 3), true, 50, null, true));
|
||||
|
||||
|
||||
// Ensure TConstruct ingots are always first. Otherwise you might get ingots from other mods from casting
|
||||
|
||||
Reference in new issue
Block a user