Misc Additions (#62)

* Fix Tinker Addons

Fixed clay cast taking over the registry name of standard casts
Added missing resources for molten quartz item (used by Iguana Tinker Tweaks)

* Prevent casting recipes of invalid clay casts

* Seared Channel

* Blank Clay Cast

* Enhance readability
This commit is contained in:
DrParadox7 authored and GitHub committed 2022-12-29 19:50:06 +01:00
1 parent 7ff7f25f73
commit 85e690c6b7
6 files changed
+55 -7

No files matched your search

@@ -765,7 +765,7 @@ public class TinkerSmeltery {
GameRegistry.addRecipe(
new ItemStack(TinkerSmeltery.searedBlockNether, 1, 2), "b b", "b b", "bbb", 'b', searedBrick); // Basin
GameRegistry.addRecipe(
new ItemStack(TinkerSmeltery.castingChannel, 4, 0), "b b", "bbb", 'b', searedBrick); // Channel
new ItemStack(TinkerSmeltery.castingChannel, 4, 1), "b b", "bbb", 'b', searedBrick); // Channel
// Slab Smeltery Components Recipes
for (int i = 0; i < 7; i++) {
@@ -1088,7 +1088,9 @@ public class TinkerSmeltery {
/ 2;
ItemStack metalCast = new ItemStack(TinkerTools.patternOutputs[iter], 1, liquidDamage[iterTwo]);
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), cast, 50);
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), clay_cast, true, 50);
if (isValidClayCast(iter)) {
tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, fluidAmount), clay_cast, true, 50);
}
Smeltery.addMelting(FluidType.getFluidType(fs), metalCast, 0, fluidAmount);
}
}
@@ -2033,4 +2035,8 @@ public class TinkerSmeltery {
return fluid;
}
public boolean isValidClayCast(int meta) {
return meta < 14 || meta == 22 || meta == 25;
}
}