Created
February 27, 2020 00:08
-
-
Save aidancbrady/967a6141a50adea6d94a610dd711d008 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void addCrusherBioFuelRecipes(Consumer<IFinishedRecipe> consumer, String basePath) { | |
//Generate baseline recipes from Composter recipe set | |
for(Entry<net.minecraft.util.IItemProvider> chance : ComposterBlock.CHANCES.object2FloatEntrySet()) { | |
ItemStackToItemStackRecipeBuilder.crushing( | |
ItemStackIngredient.from(chance.getKey().asItem()), | |
MekanismItems.BIO_FUEL.getItemStack(Math.round(chance.getFloatValue()*8)) | |
).addCriterion(Criterion.HAS_CRUSHER) | |
.build(consumer, Mekanism.rl(basePath + chance.getKey().asItem().toString())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment