Skip to content

Instantly share code, notes, and snippets.

@aidancbrady
Created February 27, 2020 00:08
Show Gist options
  • Save aidancbrady/967a6141a50adea6d94a610dd711d008 to your computer and use it in GitHub Desktop.
Save aidancbrady/967a6141a50adea6d94a610dd711d008 to your computer and use it in GitHub Desktop.
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