Skip to content

Commit

Permalink
Add Fermenter support for Barley, Natura Saplings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirek-K authored and mezz committed Jan 15, 2015
1 parent 8977d04 commit baa70ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/forestry/plugins/PluginNatura.java
Expand Up @@ -18,6 +18,7 @@
import forestry.core.config.Defaults;
import forestry.core.fluids.Fluids;
import forestry.core.proxy.Proxies;
import forestry.core.utils.RecipeUtil;
import java.util.ArrayList;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
Expand Down Expand Up @@ -64,6 +65,10 @@ public void doInit() {

for (String key : saplingItemKeys) {
Item saplingItem = GameRegistry.findItem(NATURA, key);

ItemStack saplingWild = new ItemStack(saplingItem, 1, Defaults.WILDCARD);
RecipeUtil.injectLeveledRecipe(saplingWild, GameMode.getGameMode().getIntegerSetting("fermenter.yield.sapling"), Fluids.BIOMASS);

String saplingName = GameData.getItemRegistry().getNameForObject(saplingItem);
FMLInterModComms.sendMessage(Defaults.MOD, "add-farmable-sapling", String.format("farmArboreal@%s.-1", saplingName));
}
Expand Down Expand Up @@ -115,6 +120,10 @@ protected void registerRecipes() {
amount = (amount > 1) ? amount : 1; // Produce at least 1 mb of juice.
for (ItemStack berry : berries)
RecipeManagers.squeezerManager.addRecipe(3, new ItemStack[]{berry}, Fluids.JUICE.getFluid(amount));

ItemStack itemBarley = GameRegistry.findItemStack(NATURA, "barleyFood", 1);
if (itemBarley != null)
RecipeUtil.injectLeveledRecipe(itemBarley, GameMode.getGameMode().getIntegerSetting("fermenter.yield.wheat"), Fluids.BIOMASS);
}

}

0 comments on commit baa70ec

Please sign in to comment.