2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("ToolCrafting.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-12-30 22:02:15 +01:00
|
|
|
package de.ellpeck.actuallyadditions.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2015-12-30 22:02:15 +01:00
|
|
|
import de.ellpeck.actuallyadditions.config.values.ConfigCrafting;
|
|
|
|
import de.ellpeck.actuallyadditions.items.InitItems;
|
|
|
|
import de.ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
|
|
|
import de.ellpeck.actuallyadditions.util.Util;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-09-10 21:25:34 +02:00
|
|
|
import net.minecraft.item.crafting.IRecipe;
|
2015-04-04 05:20:19 +02:00
|
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
2015-07-01 16:32:21 +02:00
|
|
|
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-09-10 21:25:34 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
public class ToolCrafting{
|
|
|
|
|
2015-09-10 21:25:34 +02:00
|
|
|
public static ArrayList<IRecipe> recipesPaxels = new ArrayList<IRecipe>();
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
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-10-02 16:48:01 +02:00
|
|
|
|
2015-07-12 15:52:08 +02:00
|
|
|
//Helm
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemHelmEmerald),
|
|
|
|
"OOO", "O O",
|
|
|
|
'O', new ItemStack(Items.emerald));
|
|
|
|
|
|
|
|
//Chest
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemChestEmerald),
|
|
|
|
"O O", "OOO", "OOO",
|
|
|
|
'O', new ItemStack(Items.emerald));
|
|
|
|
|
|
|
|
//Legs
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemPantsEmerald),
|
|
|
|
"OOO", "O O", "O O",
|
|
|
|
'O', new ItemStack(Items.emerald));
|
|
|
|
|
|
|
|
//Boots
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemBootsEmerald),
|
|
|
|
"O O", "O O",
|
|
|
|
'O', new ItemStack(Items.emerald));
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
2015-08-02 07:18:27 +02:00
|
|
|
if(ConfigCrafting.TOOL_QUARTZ.isEnabled()){
|
|
|
|
//Pickaxe
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemPickaxeQuartz),
|
|
|
|
"EEE", " S ", " S ",
|
|
|
|
'E', "gemQuartzBlack",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
|
|
|
|
|
|
|
//Sword
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemSwordQuartz),
|
|
|
|
"E", "E", "S",
|
|
|
|
'E', "gemQuartzBlack",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
|
|
|
|
|
|
|
//Axe
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemAxeQuartz),
|
|
|
|
"EE", "ES", " S",
|
|
|
|
'E', "gemQuartzBlack",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
|
|
|
|
|
|
|
//Shovel
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemShovelQuartz),
|
|
|
|
"E", "S", "S",
|
|
|
|
'E', "gemQuartzBlack",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
|
|
|
|
|
|
|
//Hoe
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemHoeQuartz),
|
|
|
|
"EE", " S", " S",
|
|
|
|
'E', "gemQuartzBlack",
|
|
|
|
'S', new ItemStack(Items.stick)));
|
|
|
|
|
|
|
|
//Helm
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemHelmQuartz),
|
|
|
|
"OOO", "O O",
|
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
|
|
|
|
|
|
|
//Chest
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemChestQuartz),
|
|
|
|
"O O", "OOO", "OOO",
|
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
|
|
|
|
|
|
|
//Legs
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemPantsQuartz),
|
|
|
|
"OOO", "O O", "O O",
|
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
|
|
|
|
|
|
|
//Boots
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemBootsQuartz),
|
|
|
|
"O O", "O O",
|
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()));
|
|
|
|
}
|
|
|
|
|
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));
|
2015-07-12 15:52:08 +02:00
|
|
|
|
|
|
|
//Helm
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemHelmObsidian),
|
|
|
|
"OOO", "O O",
|
|
|
|
'O', new ItemStack(Blocks.obsidian));
|
|
|
|
|
|
|
|
//Chest
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemChestObsidian),
|
|
|
|
"O O", "OOO", "OOO",
|
|
|
|
'O', new ItemStack(Blocks.obsidian));
|
|
|
|
|
|
|
|
//Legs
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemPantsObsidian),
|
|
|
|
"OOO", "O O", "O O",
|
|
|
|
'O', new ItemStack(Blocks.obsidian));
|
|
|
|
|
|
|
|
//Boots
|
|
|
|
GameRegistry.addRecipe(new ItemStack(InitItems.itemBootsObsidian),
|
|
|
|
"O O", "O O",
|
|
|
|
'O', new ItemStack(Blocks.obsidian));
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
2015-07-01 16:32:21 +02:00
|
|
|
|
|
|
|
//Paxels
|
|
|
|
if(ConfigCrafting.PAXELS.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.woodenPaxel),
|
|
|
|
new ItemStack(Items.wooden_axe),
|
|
|
|
new ItemStack(Items.wooden_pickaxe),
|
|
|
|
new ItemStack(Items.wooden_shovel),
|
|
|
|
new ItemStack(Items.wooden_sword),
|
|
|
|
new ItemStack(Items.wooden_hoe)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.stonePaxel),
|
|
|
|
new ItemStack(Items.stone_axe),
|
|
|
|
new ItemStack(Items.stone_pickaxe),
|
|
|
|
new ItemStack(Items.stone_shovel),
|
|
|
|
new ItemStack(Items.stone_sword),
|
|
|
|
new ItemStack(Items.stone_hoe)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.ironPaxel),
|
|
|
|
new ItemStack(Items.iron_axe),
|
|
|
|
new ItemStack(Items.iron_pickaxe),
|
|
|
|
new ItemStack(Items.iron_shovel),
|
|
|
|
new ItemStack(Items.iron_sword),
|
|
|
|
new ItemStack(Items.iron_hoe)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.goldPaxel),
|
|
|
|
new ItemStack(Items.golden_axe),
|
|
|
|
new ItemStack(Items.golden_pickaxe),
|
|
|
|
new ItemStack(Items.golden_shovel),
|
|
|
|
new ItemStack(Items.golden_sword),
|
|
|
|
new ItemStack(Items.golden_hoe)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.diamondPaxel),
|
|
|
|
new ItemStack(Items.diamond_axe),
|
|
|
|
new ItemStack(Items.diamond_pickaxe),
|
|
|
|
new ItemStack(Items.diamond_shovel),
|
|
|
|
new ItemStack(Items.diamond_sword),
|
|
|
|
new ItemStack(Items.diamond_hoe)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.emeraldPaxel),
|
|
|
|
new ItemStack(InitItems.itemAxeEmerald),
|
|
|
|
new ItemStack(InitItems.itemPickaxeEmerald),
|
|
|
|
new ItemStack(InitItems.itemSwordEmerald),
|
|
|
|
new ItemStack(InitItems.itemShovelEmerald),
|
|
|
|
new ItemStack(InitItems.itemHoeEmerald)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.obsidianPaxel),
|
|
|
|
new ItemStack(InitItems.itemAxeObsidian),
|
|
|
|
new ItemStack(InitItems.itemPickaxeObsidian),
|
|
|
|
new ItemStack(InitItems.itemSwordObsidian),
|
|
|
|
new ItemStack(InitItems.itemShovelObsidian),
|
|
|
|
new ItemStack(InitItems.itemHoeObsidian)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-29 18:58:23 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.quartzPaxel),
|
|
|
|
new ItemStack(InitItems.itemAxeQuartz),
|
|
|
|
new ItemStack(InitItems.itemPickaxeQuartz),
|
|
|
|
new ItemStack(InitItems.itemSwordQuartz),
|
|
|
|
new ItemStack(InitItems.itemShovelQuartz),
|
|
|
|
new ItemStack(InitItems.itemHoeQuartz)));
|
2015-10-03 23:28:32 +02:00
|
|
|
recipesPaxels.add(Util.GetRecipes.lastIRecipe());
|
2015-07-01 16:32:21 +02:00
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|