Skip to content

Commit

Permalink
Added vanilla recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
tgame14 committed May 11, 2014
1 parent 1325c5a commit 46d5fb1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Advanced-Fluxian-Tools.iml
Expand Up @@ -7,13 +7,14 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/api/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/gradle" />
<excludeFolder url="file://$MODULE_DIR$/src/api/java/cofh/gui" />
<excludeFolder url="file://$MODULE_DIR$/src/api/java/cofh/gui/element" />
<excludeFolder url="file://$MODULE_DIR$/src/main/java/com/tgame/advfluxtools/libs" />
<excludeFolder url="file://$MODULE_DIR$/src/main/java/com/tgame/advfluxtools/multiblocks" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="Forge" />
<orderEntry type="module" module-name="CoFHLib" />
<orderEntry type="module" module-name="tgame-core" />
</component>
</module>
Expand Down
20 changes: 20 additions & 0 deletions src/main/java/com/tgame/advfluxtools/AdvancedFluxTools.java
Expand Up @@ -18,6 +18,8 @@
import cpw.mods.fml.common.registry.GameData;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.oredict.ShapedOreRecipe;
Expand Down Expand Up @@ -131,6 +133,24 @@ public void postInit (FMLPostInitializationEvent event)
GameRegistry.addRecipe(new ShapedOreRecipe(itemLaserDrill.getItemStack(1, 0), " B ", " E ", "GG ", 'B', hardenedCapacitor, 'E', GameData.getItemRegistry().getObject("emerald"), 'G', gearElectrum));

}
else
{
ItemStack quartz = new ItemStack(Blocks.quartz_block);
ItemStack redTorch = new ItemStack(Blocks.redstone_torch);
ItemStack ppIron = new ItemStack(Blocks.heavy_weighted_pressure_plate);
ItemStack ppGold = new ItemStack(Blocks.light_weighted_pressure_plate);
ItemStack soulSand = new ItemStack(Blocks.soul_sand);
ItemStack ironBlock = new ItemStack(Blocks.iron_block);
ItemStack anvil = new ItemStack(Blocks.anvil);
ItemStack enderEye = new ItemStack(Items.ender_eye);
ItemStack emerald = new ItemStack(Items.emerald);

GameRegistry.addRecipe(new ShapedOreRecipe(blockChargePlatform.getItemStack(1, 0), "CPC", "PEP", "CPC", 'C', redTorch, 'P', ppIron, 'E', soulSand));
GameRegistry.addRecipe(new ShapedOreRecipe(blockChargePlatform.getItemStack(1, 1), "CPC", "PEP", "CPC", 'C', quartz, 'P', ppIron, 'E', soulSand));
GameRegistry.addRecipe(new ShapedOreRecipe(blockChargePlatform.getItemStack(1, 2), "CPC", "PEP", "CPC", 'C', anvil, 'P', ppGold, 'E', enderEye));

GameRegistry.addRecipe(new ShapedOreRecipe(itemLaserDrill.getItemStack(1, 0), " B ", " E ", "GG ", 'B', redTorch, 'E', emerald, 'G', quartz));
}
if (wrench == null)
{
wrench = new ItemStack(GameData.getItemRegistry().getObject("golden_hoe"));
Expand Down

0 comments on commit 46d5fb1

Please sign in to comment.