2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2015-04-24 19:22:03 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigCrafting;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-04-04 05:20:19 +02:00
|
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
public class ToolCrafting{
|
|
|
|
|
|
|
|
public static void init(){
|
|
|
|
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.TOOL_EMERALD.isEnabled()){
|
2015-03-07 02:23:31 +01:00
|
|
|
//Pickaxe
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemPickaxeEmerald),
|
2015-03-07 02:23:31 +01:00
|
|
|
"EEE", " S ", " S ",
|
2015-04-04 05:20:19 +02:00
|
|
|
'E', "gemEmerald",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Sword
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemSwordEmerald),
|
2015-03-07 02:23:31 +01:00
|
|
|
"E", "E", "S",
|
2015-04-04 05:20:19 +02:00
|
|
|
'E', "gemEmerald",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Axe
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemAxeEmerald),
|
2015-03-07 02:23:31 +01:00
|
|
|
"EE", "ES", " S",
|
2015-04-04 05:20:19 +02:00
|
|
|
'E', "gemEmerald",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Shovel
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemShovelEmerald),
|
2015-03-07 02:23:31 +01:00
|
|
|
"E", "S", "S",
|
2015-04-04 05:20:19 +02:00
|
|
|
'E', "gemEmerald",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Hoe
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemHoeEmerald),
|
2015-03-07 02:23:31 +01:00
|
|
|
"EE", " S", " S",
|
2015-04-04 05:20:19 +02:00
|
|
|
'E', "gemEmerald",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
2015-04-24 19:22:03 +02:00
|
|
|
if(ConfigCrafting.TOOL_OBSIDIAN.isEnabled()){
|
2015-03-07 02:23:31 +01:00
|
|
|
//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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|