ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/crafting/ToolCrafting.java

80 lines
2.9 KiB
Java
Raw Normal View History

2015-03-07 12:51:28 +01:00
package ellpeck.actuallyadditions.crafting;
import cpw.mods.fml.common.registry.GameRegistry;
2015-03-07 12:51:28 +01:00
import ellpeck.actuallyadditions.config.ConfigValues;
import ellpeck.actuallyadditions.items.InitItems;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
public class ToolCrafting{
public static void init(){
if(ConfigValues.enableToolEmeraldRecipe){
//Pickaxe
GameRegistry.addRecipe(new ItemStack(InitItems.itemPickaxeEmerald),
"EEE", " S ", " S ",
'E', new ItemStack(Items.emerald),
'S', new ItemStack(Items.stick));
//Sword
GameRegistry.addRecipe(new ItemStack(InitItems.itemSwordEmerald),
"E", "E", "S",
'E', new ItemStack(Items.emerald),
'S', new ItemStack(Items.stick));
//Axe
GameRegistry.addRecipe(new ItemStack(InitItems.itemAxeEmerald),
"EE", "ES", " S",
'E', new ItemStack(Items.emerald),
'S', new ItemStack(Items.stick));
//Shovel
GameRegistry.addRecipe(new ItemStack(InitItems.itemShovelEmerald),
"E", "S", "S",
'E', new ItemStack(Items.emerald),
'S', new ItemStack(Items.stick));
//Hoe
GameRegistry.addRecipe(new ItemStack(InitItems.itemHoeEmerald),
"EE", " S", " S",
'E', new ItemStack(Items.emerald),
'S', new ItemStack(Items.stick));
}
if(ConfigValues.enableToolObsidianRecipe){
//Pickaxe
GameRegistry.addRecipe(new ItemStack(InitItems.itemPickaxeObsidian),
"EEE", " S ", " S ",
'E', new ItemStack(Blocks.obsidian),
'S', new ItemStack(Items.stick));
//Sword
GameRegistry.addRecipe(new ItemStack(InitItems.itemSwordObsidian),
"E", "E", "S",
'E', new ItemStack(Blocks.obsidian),
'S', new ItemStack(Items.stick));
//Axe
GameRegistry.addRecipe(new ItemStack(InitItems.itemAxeObsidian),
"EE", "ES", " S",
'E', new ItemStack(Blocks.obsidian),
'S', new ItemStack(Items.stick));
//Shovel
GameRegistry.addRecipe(new ItemStack(InitItems.itemShovelObsidian),
"E", "S", "S",
'E', new ItemStack(Blocks.obsidian),
'S', new ItemStack(Items.stick));
//Hoe
GameRegistry.addRecipe(new ItemStack(InitItems.itemHoeObsidian),
"EE", " S", " S",
'E', new ItemStack(Blocks.obsidian),
'S', new ItemStack(Items.stick));
}
}
}