Skip to content

Commit

Permalink
increase ore multiplier for oreNetherrack and oreEndstone
Browse files Browse the repository at this point in the history
  • Loading branch information
DStrand1 committed Dec 5, 2021
1 parent 4e982cd commit 905ebba
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,18 @@ public static void processOre(OrePrefix orePrefix, Material material, OrePropert
}
ingotStack.setCount(ingotStack.getCount() * property.getOreMultiplier());
crushedStack.setCount(crushedStack.getCount() * property.getOreMultiplier());
int oreTypeMultiplier = orePrefix == OrePrefix.oreNetherrack || orePrefix == OrePrefix.oreEndstone ? 2 : 1;

if (!crushedStack.isEmpty()) {
RecipeMaps.FORGE_HAMMER_RECIPES.recipeBuilder()
.input(orePrefix, material)
.outputs(GTUtility.copyAmount((int) Math.ceil(amountOfCrushedOre), crushedStack))
.outputs(GTUtility.copyAmount((int) Math.ceil(amountOfCrushedOre) * oreTypeMultiplier, crushedStack))
.duration(100).EUt(6)
.buildAndRegister();

RecipeBuilder<?> builder = RecipeMaps.MACERATOR_RECIPES.recipeBuilder()
.input(orePrefix, material)
.outputs(GTUtility.copyAmount((int) Math.round(amountOfCrushedOre) * 2, crushedStack))
.outputs(GTUtility.copyAmount((int) Math.round(amountOfCrushedOre) * 2 * oreTypeMultiplier, crushedStack))
.chancedOutput(byproductStack, 1400, 850)
.duration(400).EUt(12);
for (MaterialStack secondaryMaterial : orePrefix.secondaryMaterials) {
Expand Down

0 comments on commit 905ebba

Please sign in to comment.