2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("ItemCrafting.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
|
2016-01-03 16:05:51 +01:00
|
|
|
* http://ellpeck.de/actaddlicense/
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-01-03 16:05:51 +01:00
|
|
|
* © 2016 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.metalists.TheColoredLampColors;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.metalists.TheMiscBlocks;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.config.ConfigValues;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.config.values.ConfigCrafting;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.InitItems;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.*;
|
2016-03-18 18:41:37 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.util.RecipeUtil;
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.util.Util;
|
2015-06-21 02:28:49 +02:00
|
|
|
import net.minecraft.block.IGrowable;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.item.ItemFood;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-08-29 15:40:12 +02:00
|
|
|
import net.minecraft.item.crafting.IRecipe;
|
2015-06-21 02:28:49 +02:00
|
|
|
import net.minecraftforge.common.IPlantable;
|
2016-01-07 18:20:59 +01:00
|
|
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
2015-06-30 01:58:33 +02:00
|
|
|
import net.minecraftforge.oredict.OreDictionary;
|
2015-04-04 05:20:19 +02:00
|
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
|
|
|
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 ItemCrafting{
|
|
|
|
|
2015-08-29 15:40:12 +02:00
|
|
|
public static IRecipe recipePhantomConnector;
|
2015-08-30 01:19:03 +02:00
|
|
|
public static IRecipe recipeCoil;
|
|
|
|
public static IRecipe recipeCoilAdvanced;
|
2015-08-30 19:10:10 +02:00
|
|
|
public static IRecipe recipeBook;
|
2015-08-31 10:45:05 +02:00
|
|
|
public static IRecipe recipeTinyCoal;
|
|
|
|
public static IRecipe recipeTinyChar;
|
2015-09-29 17:42:04 +02:00
|
|
|
public static ArrayList<IRecipe> recipesMashedFood = new ArrayList<IRecipe>();
|
2015-09-09 23:44:53 +02:00
|
|
|
public static IRecipe recipeDrill;
|
2015-12-01 19:09:14 +01:00
|
|
|
public static ArrayList<IRecipe> recipesDrillColoring = new ArrayList<IRecipe>();
|
2015-09-09 23:44:53 +02:00
|
|
|
public static IRecipe recipeDrillSpeedI;
|
|
|
|
public static IRecipe recipeDrillSpeedII;
|
|
|
|
public static IRecipe recipeDrillSpeedIII;
|
|
|
|
public static IRecipe recipeDrillFortuneI;
|
|
|
|
public static IRecipe recipeDrillFortuneII;
|
|
|
|
public static IRecipe recipeDrillSilk;
|
|
|
|
public static IRecipe recipeDrillPlacing;
|
|
|
|
public static IRecipe recipeDrillThree;
|
|
|
|
public static IRecipe recipeDrillFive;
|
|
|
|
public static IRecipe recipeBattery;
|
|
|
|
public static IRecipe recipeBatteryDouble;
|
|
|
|
public static IRecipe recipeBatteryTriple;
|
|
|
|
public static IRecipe recipeBatteryQuadruple;
|
|
|
|
public static IRecipe recipeBatteryQuintuple;
|
|
|
|
public static IRecipe recipeStaff;
|
|
|
|
public static IRecipe recipeGrowthRing;
|
|
|
|
public static IRecipe recipeMagnetRing;
|
|
|
|
public static IRecipe recipeWaterRing;
|
|
|
|
public static IRecipe recipeWings;
|
|
|
|
public static IRecipe recipeCup;
|
|
|
|
public static IRecipe recipeKnifeHandle;
|
|
|
|
public static IRecipe recipeKnifeBlade;
|
|
|
|
public static IRecipe recipeKnife;
|
|
|
|
public static IRecipe recipeRing;
|
|
|
|
public static IRecipe recipeDough;
|
|
|
|
public static IRecipe recipeRiceDough;
|
2015-09-10 21:25:34 +02:00
|
|
|
public static IRecipe recipeLeafBlower;
|
|
|
|
public static IRecipe recipeLeafBlowerAdvanced;
|
|
|
|
public static ArrayList<IRecipe> recipesPotionRings = new ArrayList<IRecipe>();
|
2015-10-28 20:35:39 +01:00
|
|
|
public static IRecipe recipeChestToCrateUpgrade;
|
|
|
|
public static IRecipe recipeLaserWrench;
|
2015-10-29 20:54:10 +01:00
|
|
|
public static IRecipe recipeDrillCore;
|
2015-11-03 16:30:13 +01:00
|
|
|
public static IRecipe recipeBlackDye;
|
2015-11-22 21:00:05 +01:00
|
|
|
public static IRecipe recipeLens;
|
2015-12-16 15:45:01 +01:00
|
|
|
public static IRecipe recipeCrateKeeper;
|
2016-05-04 17:47:54 +02:00
|
|
|
public static IRecipe recipeEnderStar;
|
2015-08-29 15:40:12 +02:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
public static void init(){
|
|
|
|
|
2015-11-22 21:00:05 +01:00
|
|
|
//Lens
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.LENS.ordinal()),
|
|
|
|
"GGG", "GBG", "GGG",
|
|
|
|
'G', "blockGlass",
|
|
|
|
'B', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeLens = RecipeUtil.lastIRecipe();
|
2015-11-22 21:00:05 +01:00
|
|
|
|
2015-12-01 19:48:09 +01:00
|
|
|
//Black Dye
|
2015-11-03 18:00:17 +01:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 2, TheMiscItems.BLACK_DYE.ordinal()), new ItemStack(InitBlocks.blockBlackLotus)));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBlackDye = RecipeUtil.lastIRecipe();
|
2015-11-03 16:30:13 +01:00
|
|
|
|
2015-08-30 01:19:03 +02:00
|
|
|
//Booklet
|
2016-04-20 21:39:03 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemBooklet), new ItemStack(InitItems.itemCanolaSeed), new ItemStack(Items.PAPER)));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBook = RecipeUtil.lastIRecipe();
|
2015-08-30 01:19:03 +02:00
|
|
|
|
2015-10-21 18:31:35 +02:00
|
|
|
//Clearing NBT Storage
|
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemLaserWrench), new ItemStack(InitItems.itemLaserWrench));
|
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPhantomConnector), new ItemStack(InitItems.itemPhantomConnector));
|
|
|
|
|
2015-10-28 20:35:39 +01:00
|
|
|
//Chest To Crate Upgrade
|
|
|
|
if(ConfigCrafting.CHEST_TO_CRATE_UPGRADE.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemChestToCrateUpgrade),
|
2016-05-05 20:52:32 +02:00
|
|
|
" W ", "WCW", " W ",
|
|
|
|
'C', new ItemStack(InitBlocks.blockGiantChest),
|
2015-10-28 20:35:39 +01:00
|
|
|
'W', "plankWood"));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeChestToCrateUpgrade = RecipeUtil.lastIRecipe();
|
2015-10-28 20:35:39 +01:00
|
|
|
}
|
|
|
|
|
2015-12-16 15:45:01 +01:00
|
|
|
//Crate Keeper
|
|
|
|
if(ConfigCrafting.CRATE_KEEPER.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemCrateKeeper),
|
|
|
|
"WIW", "IQI", "WIW",
|
|
|
|
'I', "ingotIron",
|
|
|
|
'W', "plankWood",
|
|
|
|
'Q', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeCrateKeeper = RecipeUtil.lastIRecipe();
|
2015-12-16 15:45:01 +01:00
|
|
|
}
|
|
|
|
|
2015-10-28 20:35:39 +01:00
|
|
|
//Laser Wrench
|
|
|
|
if(ConfigCrafting.LASER_WRENCH.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLaserWrench),
|
|
|
|
"C ", " S ", " S",
|
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
2015-12-01 23:23:55 +01:00
|
|
|
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeLaserWrench = RecipeUtil.lastIRecipe();
|
2015-10-28 20:35:39 +01:00
|
|
|
}
|
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Rice Stuff
|
|
|
|
if(ConfigCrafting.RICE_GADGETS.isEnabled()){
|
2016-04-20 21:39:03 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.PAPER, 3),
|
2015-08-28 15:29:06 +02:00
|
|
|
"R ", " R ", " R",
|
2015-07-02 10:45:15 +02:00
|
|
|
'R', new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal())));
|
2015-05-20 22:39:43 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 4, TheMiscItems.RICE_SLIME.ordinal()),
|
|
|
|
" R ", "RBR", " R ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'B', Items.WATER_BUCKET));
|
2015-05-20 22:39:43 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 4, TheMiscItems.RICE_SLIME.ordinal()),
|
|
|
|
" R ", "RBR", " R ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RICE_DOUGH.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'B', new ItemStack(Items.POTIONITEM)));
|
2015-05-20 22:39:43 +02:00
|
|
|
}
|
|
|
|
|
2015-06-18 13:14:57 +02:00
|
|
|
//Leaf Blower
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.LEAF_BLOWER.isEnabled()){
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLeafBlower),
|
2015-04-06 15:51:59 +02:00
|
|
|
" F", "IP", "IC",
|
2016-04-20 21:39:03 +02:00
|
|
|
'F', new ItemStack(Items.FLINT),
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'P', new ItemStack(Blocks.PISTON),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeLeafBlower = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-04-04 05:20:19 +02:00
|
|
|
|
2015-06-21 02:28:49 +02:00
|
|
|
//Drill
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.DRILL.isEnabled()){
|
2015-12-01 18:27:40 +01:00
|
|
|
ItemStack lightBlueDrill = new ItemStack(InitItems.itemDrill, 1, TheColoredLampColors.LIGHT_BLUE.ordinal());
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(lightBlueDrill.copy(),
|
2015-06-21 02:28:49 +02:00
|
|
|
"DDD", "CRC", "III",
|
2015-12-01 23:23:55 +01:00
|
|
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
2015-10-29 20:54:10 +01:00
|
|
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DRILL_CORE.ordinal()),
|
2015-12-01 23:41:33 +01:00
|
|
|
'I', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.IRON.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrill = RecipeUtil.lastIRecipe();
|
2015-11-14 14:30:35 +01:00
|
|
|
|
2015-12-01 19:09:14 +01:00
|
|
|
for(int i = 0; i < 16; i++){
|
|
|
|
if(i != TheColoredLampColors.LIGHT_BLUE.ordinal()){
|
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemDrill, 1, i), lightBlueDrill.copy(), "dye"+TheColoredLampColors.values()[i].name));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipesDrillColoring.add(RecipeUtil.lastIRecipe());
|
2015-12-01 19:09:14 +01:00
|
|
|
}
|
2015-12-01 18:27:40 +01:00
|
|
|
}
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-06-21 02:28:49 +02:00
|
|
|
|
2015-10-29 20:54:10 +01:00
|
|
|
//Drill Core
|
|
|
|
if(ConfigCrafting.DRILL_CORE.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.DRILL_CORE.ordinal()),
|
|
|
|
"ICI", "CRC", "ICI",
|
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
2015-12-01 23:23:55 +01:00
|
|
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
2015-12-01 23:41:33 +01:00
|
|
|
'I', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.IRON.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillCore = RecipeUtil.lastIRecipe();
|
2015-10-29 20:54:10 +01:00
|
|
|
}
|
|
|
|
|
2015-07-07 21:59:57 +02:00
|
|
|
//Tele Staff
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.TELE_STAFF.isEnabled()){
|
2015-07-07 21:59:57 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemTeleStaff),
|
2015-11-15 17:50:31 +01:00
|
|
|
" FE", " S ", "SB ",
|
2015-12-01 23:23:55 +01:00
|
|
|
'F', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2015-07-07 21:59:57 +02:00
|
|
|
'E', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
2015-07-07 22:27:04 +02:00
|
|
|
'S', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal()),
|
2015-07-08 11:49:38 +02:00
|
|
|
'B', new ItemStack(InitItems.itemBattery, 1, Util.WILDCARD)));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeStaff = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-07 21:59:57 +02:00
|
|
|
|
2015-06-21 02:28:49 +02:00
|
|
|
//Drill Speed
|
|
|
|
if(ConfigCrafting.DRILL_SPEED.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeed),
|
|
|
|
"ISI", "SRS", "ISI",
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'S', Items.SUGAR,
|
2015-12-01 23:23:55 +01:00
|
|
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillSpeedI = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeedII),
|
|
|
|
"ISI", "SCS", "ISI",
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'S', Items.SUGAR,
|
|
|
|
'C', Items.CAKE));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillSpeedII = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSpeedIII),
|
|
|
|
"ISI", "SFS", "ISI",
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'S', Items.SUGAR,
|
2015-12-01 23:23:55 +01:00
|
|
|
'F', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillSpeedIII = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//Drill Fortune
|
|
|
|
if(ConfigCrafting.DRILL_FORTUNE.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFortune),
|
|
|
|
"ISI", "SRS", "ISI",
|
2016-04-20 21:39:03 +02:00
|
|
|
'I', Blocks.GLOWSTONE,
|
|
|
|
'S', Items.REDSTONE,
|
2015-12-01 23:41:33 +01:00
|
|
|
'R', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillFortuneI = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFortuneII),
|
|
|
|
"ISI", "SRS", "ISI",
|
2016-04-20 21:39:03 +02:00
|
|
|
'I', Blocks.GLOWSTONE,
|
2015-12-01 23:23:55 +01:00
|
|
|
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
2015-07-02 10:45:15 +02:00
|
|
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillFortuneII = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//Drill Size
|
|
|
|
if(ConfigCrafting.DRILL_SIZE.isEnabled()){
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeThreeByThree),
|
|
|
|
"DID", "ICI", "DID",
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
|
|
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillThree = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeFiveByFive),
|
|
|
|
"DID", "ICI", "DID",
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
|
|
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillFive = RecipeUtil.lastIRecipe();
|
2015-06-21 02:28:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//Drill Silk Touch
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.DRILL_SILK_TOUCH.isEnabled()){
|
2015-06-21 02:28:49 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeSilkTouch),
|
|
|
|
"DSD", "SCS", "DSD",
|
2015-12-01 23:23:55 +01:00
|
|
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.EMERALD.ordinal()),
|
|
|
|
'S', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillSilk = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-06-21 02:28:49 +02:00
|
|
|
|
|
|
|
//Drill Placing
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.DRILL_PLACING.isEnabled()){
|
2015-06-21 02:28:49 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemDrillUpgradeBlockPlacing),
|
|
|
|
"CEC", "RAR", "CEC",
|
|
|
|
'C', "cobblestone",
|
2016-04-20 21:39:03 +02:00
|
|
|
'E', Items.PAPER,
|
2015-07-02 10:45:15 +02:00
|
|
|
'A', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
2015-12-01 23:23:55 +01:00
|
|
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeDrillPlacing = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-06-21 02:28:49 +02:00
|
|
|
|
|
|
|
//Battery
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.BATTERY.isEnabled()){
|
2015-06-21 02:28:49 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemBattery),
|
|
|
|
" R ", "ICI", "III",
|
2015-12-01 23:23:55 +01:00
|
|
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBattery = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-06-21 02:28:49 +02:00
|
|
|
|
2015-07-17 22:49:00 +02:00
|
|
|
//Double Battery
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.DOUBLE_BATTERY.isEnabled()){
|
2015-07-17 22:49:00 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemBatteryDouble),
|
|
|
|
" R ", "ICI", "III",
|
|
|
|
'R', new ItemStack(InitItems.itemBattery),
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2015-07-17 22:49:00 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBatteryDouble = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-17 22:49:00 +02:00
|
|
|
|
2015-08-02 07:18:27 +02:00
|
|
|
//Magnet Ring
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.MAGNET_RING.isEnabled()){
|
2015-08-02 07:18:27 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMagnetRing),
|
|
|
|
"RIB", "IOI", "BIR",
|
2015-12-01 23:23:55 +01:00
|
|
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal()),
|
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'B', new ItemStack(Items.DYE, 1, 4),
|
2015-08-02 07:18:27 +02:00
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeMagnetRing = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-08-02 07:18:27 +02:00
|
|
|
|
|
|
|
//Growth Ring
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.GROWTH_RING.isEnabled()){
|
2015-08-02 07:18:27 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemGrowthRing),
|
|
|
|
"SIS", "IOI", "SIS",
|
2016-04-20 21:39:03 +02:00
|
|
|
'S', new ItemStack(Items.WHEAT_SEEDS),
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2015-08-02 07:18:27 +02:00
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeGrowthRing = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-08-02 07:18:27 +02:00
|
|
|
|
|
|
|
//Water Ring
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.WATER_RING.isEnabled()){
|
2015-08-02 07:18:27 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemWaterRemovalRing),
|
|
|
|
"BIB", "IOI", "BIB",
|
2016-04-20 21:39:03 +02:00
|
|
|
'B', new ItemStack(Items.WATER_BUCKET),
|
2016-01-10 19:32:21 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2015-08-02 07:18:27 +02:00
|
|
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeWaterRing = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-08-02 07:18:27 +02:00
|
|
|
|
2015-07-17 22:49:00 +02:00
|
|
|
//Triple Battery
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.TRIPLE_BATTERY.isEnabled()){
|
2015-07-17 22:49:00 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemBatteryTriple),
|
|
|
|
" R ", "ICI", "III",
|
|
|
|
'R', new ItemStack(InitItems.itemBatteryDouble),
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2015-07-17 22:49:00 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBatteryTriple = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-17 22:49:00 +02:00
|
|
|
|
|
|
|
//Quadruple Battery
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.QUADRUPLE_BATTERY.isEnabled()){
|
2015-07-17 22:49:00 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemBatteryQuadruple),
|
|
|
|
" R ", "ICI", "III",
|
|
|
|
'R', new ItemStack(InitItems.itemBatteryTriple),
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2015-07-17 22:49:00 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBatteryQuadruple = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-17 22:49:00 +02:00
|
|
|
|
|
|
|
//Quintuple Battery
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.QUINTUPLE_BATTERY.isEnabled()){
|
2015-07-17 22:49:00 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemBatteryQuintuple),
|
|
|
|
" R ", "ICI", "III",
|
|
|
|
'R', new ItemStack(InitItems.itemBatteryQuadruple),
|
2015-12-01 23:23:55 +01:00
|
|
|
'I', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.IRON.ordinal()),
|
2015-07-17 22:49:00 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeBatteryQuintuple = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-17 22:49:00 +02:00
|
|
|
|
|
|
|
//Bat Wings
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.BAT_WINGS.isEnabled()){
|
2015-07-17 22:49:00 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemWingsOfTheBats),
|
|
|
|
"WNW", "WDW", "WNW",
|
|
|
|
'W', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BAT_WING.ordinal()),
|
2015-12-01 23:41:33 +01:00
|
|
|
'N', new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2016-05-04 17:47:54 +02:00
|
|
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.ENDER_STAR.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeWings = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-17 22:49:00 +02:00
|
|
|
|
2015-07-01 18:14:21 +02:00
|
|
|
//Quartz
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.QUARTZ.isEnabled()){
|
2015-07-01 18:14:21 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.COAL),
|
|
|
|
new ItemStack(Items.QUARTZ)));
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-07-01 18:14:21 +02:00
|
|
|
|
2015-04-04 05:20:19 +02:00
|
|
|
//Coil
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.COIL.isEnabled()){
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
|
|
|
" R ", "RIR", " R ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'I', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
2015-12-01 23:23:55 +01:00
|
|
|
'R', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.REDSTONE.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeCoil = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-04-04 05:20:19 +02:00
|
|
|
|
2015-06-12 19:12:06 +02:00
|
|
|
//Cup
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.CUP.isEnabled()){
|
2015-06-12 19:12:06 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CUP.ordinal()),
|
|
|
|
"S S", "SCS", "SSS",
|
|
|
|
'S', "stone",
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', InitItems.itemCoffeeBean));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeCup = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-06-12 19:12:06 +02:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Resonant Rice
|
2016-05-04 12:19:02 +02:00
|
|
|
if(ConfigCrafting.RESONANT_RICE.isEnabled() && !OreDictionary.getOres("nuggetEnderium", false).isEmpty()){
|
2015-05-20 22:39:43 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemResonantRice),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), "nuggetEnderium", Items.GUNPOWDER));
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-05-20 22:39:43 +02:00
|
|
|
|
2015-04-04 05:20:19 +02:00
|
|
|
//Advanced Coil
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.ADV_COIL.isEnabled()){
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
|
|
|
" G ", "GCG", " G ",
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
2015-04-04 05:20:19 +02:00
|
|
|
'G', "ingotGold"));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeCoilAdvanced = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-03-29 15:29:05 +02:00
|
|
|
|
|
|
|
//Advanced Leaf Blower
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.LEAF_BLOWER_ADVANCED.isEnabled()){
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemLeafBlowerAdvanced),
|
2015-04-06 15:51:59 +02:00
|
|
|
" F", "DP", "DC",
|
2016-04-20 21:39:03 +02:00
|
|
|
'F', new ItemStack(Items.FLINT),
|
2015-12-01 23:23:55 +01:00
|
|
|
'D', new ItemStack(InitItems.itemCrystal, 1, TheCrystals.DIAMOND.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
'P', new ItemStack(Blocks.PISTON),
|
2015-07-02 10:45:15 +02:00
|
|
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeLeafBlowerAdvanced = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-03-29 15:29:05 +02:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Phantom Connector
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.PHANTOM_CONNECTOR.isEnabled()){
|
2015-05-20 22:39:43 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemPhantomConnector),
|
|
|
|
"YE", "EY", "S ",
|
2016-04-20 21:39:03 +02:00
|
|
|
'Y', Items.ENDER_EYE,
|
|
|
|
'E', Items.ENDER_PEARL,
|
2015-05-20 22:39:43 +02:00
|
|
|
'S', "stickWood"));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipePhantomConnector = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-05-20 22:39:43 +02:00
|
|
|
|
2015-03-08 14:58:26 +01:00
|
|
|
//Quartz
|
2015-04-24 19:22:03 +02:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ORE_QUARTZ.ordinal()),
|
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
//Knife
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.KNIFE.isEnabled()){
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemKnife),
|
2015-07-02 10:45:15 +02:00
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_BLADE.ordinal()),
|
2015-07-12 17:35:37 +02:00
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.KNIFE_HANDLE.ordinal())));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeKnife = RecipeUtil.lastIRecipe();
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
//Crafter on a Stick
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.STICK_CRAFTER.isEnabled()){
|
2015-06-22 18:09:00 +02:00
|
|
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitItems.itemCrafterOnAStick),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Blocks.CRAFTING_TABLE),
|
|
|
|
new ItemStack(Items.SIGN)));
|
2015-08-29 15:40:12 +02:00
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
//Tiny Coal
|
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_COAL.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.COAL));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeTinyCoal = RecipeUtil.lastIRecipe();
|
2015-05-20 22:39:43 +02:00
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.TINY_CHAR.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.COAL, 1, 1));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeTinyChar = RecipeUtil.lastIRecipe();
|
2015-05-20 22:39:43 +02:00
|
|
|
|
|
|
|
//Rice Seeds
|
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemRiceSeed),
|
|
|
|
new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()));
|
|
|
|
|
|
|
|
//Canola Seeds
|
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemCanolaSeed),
|
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal()));
|
2015-04-24 19:22:03 +02:00
|
|
|
|
2015-03-31 20:37:55 +02:00
|
|
|
//Rings
|
|
|
|
initPotionRingRecipes();
|
|
|
|
|
2015-03-08 14:58:26 +01:00
|
|
|
//Ingots from Dusts
|
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.IRON.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.IRON_INGOT), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.GOLD.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.GOLD_INGOT), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.DIAMOND.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.DIAMOND), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.EMERALD.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.EMERALD), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.LAPIS.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.DYE, 1, 4), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.QUARTZ_BLACK.ordinal()),
|
|
|
|
new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), 1F);
|
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.QUARTZ.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.QUARTZ), 1F);
|
2015-03-08 14:58:26 +01:00
|
|
|
GameRegistry.addSmelting(new ItemStack(InitItems.itemDust, 1, TheDusts.COAL.ordinal()),
|
2016-04-20 21:39:03 +02:00
|
|
|
new ItemStack(Items.COAL), 1F);
|
2015-03-07 12:51:28 +01:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
2015-03-31 20:37:55 +02:00
|
|
|
public static void initPotionRingRecipes(){
|
2015-04-04 05:20:19 +02:00
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal()),
|
2015-03-31 20:37:55 +02:00
|
|
|
"IGI", "GDG", "IGI",
|
2015-04-04 05:20:19 +02:00
|
|
|
'G', "ingotGold",
|
|
|
|
'I', "ingotIron",
|
|
|
|
'D', "dustGlowstone"));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipeRing = RecipeUtil.lastIRecipe();
|
2015-03-31 20:37:55 +02:00
|
|
|
|
2015-08-29 15:40:12 +02:00
|
|
|
if(ConfigCrafting.RING_SPEED.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.SPEED.craftingItem, ThePotionRings.SPEED.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_HASTE.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.HASTE.craftingItem, ThePotionRings.HASTE.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_STRENGTH.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.STRENGTH.craftingItem, ThePotionRings.STRENGTH.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_JUMP_BOOST.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.JUMP_BOOST.craftingItem, ThePotionRings.JUMP_BOOST.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_REGEN.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.REGEN.craftingItem, ThePotionRings.REGEN.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_RESISTANCE.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.RESISTANCE.craftingItem, ThePotionRings.RESISTANCE.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_FIRE_RESISTANCE.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.FIRE_RESISTANCE.craftingItem, ThePotionRings.FIRE_RESISTANCE.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_WATER_BREATHING.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.WATER_BREATHING.craftingItem, ThePotionRings.WATER_BREATHING.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_INVISIBILITY.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.INVISIBILITY.craftingItem, ThePotionRings.INVISIBILITY.ordinal());
|
|
|
|
}
|
|
|
|
if(ConfigCrafting.RING_NIGHT_VISION.isEnabled()){
|
|
|
|
addRingRecipeWithStack(ThePotionRings.NIGHT_VISION.craftingItem, ThePotionRings.NIGHT_VISION.ordinal());
|
|
|
|
}
|
2015-04-24 19:22:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void addRingRecipeWithStack(ItemStack mainStack, int meta){
|
2016-04-20 21:39:03 +02:00
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPotionRing, 1, meta), mainStack, mainStack, mainStack, mainStack, new ItemStack(InitBlocks.blockCrystal, 1, TheCrystals.DIAMOND.ordinal()), new ItemStack(Items.NETHER_WART), new ItemStack(Items.POTIONITEM), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.RING.ordinal()));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipesPotionRings.add(RecipeUtil.lastIRecipe());
|
2016-05-04 17:47:54 +02:00
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemPotionRingAdvanced, 1, meta), new ItemStack(InitItems.itemPotionRing, 1, meta), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.ENDER_STAR.ordinal()));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipesPotionRings.add(RecipeUtil.lastIRecipe());
|
2015-03-31 20:37:55 +02:00
|
|
|
}
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
public static void initMashedFoodRecipes(){
|
2015-06-21 02:28:49 +02:00
|
|
|
if(ConfigCrafting.MASHED_FOOD.isEnabled()){
|
2016-04-20 21:39:03 +02:00
|
|
|
for(Item item : Item.REGISTRY){
|
2015-07-13 03:50:12 +02:00
|
|
|
if(item instanceof ItemFood || item instanceof IPlantable || item instanceof IGrowable){
|
|
|
|
if(!isBlacklisted(item)){
|
2016-01-08 08:10:55 +01:00
|
|
|
ItemStack ingredient = new ItemStack(item, 1, Util.WILDCARD);
|
2015-07-13 03:28:04 +02:00
|
|
|
GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemMisc, 8, TheMiscItems.MASHED_FOOD.ordinal()), ingredient, ingredient, ingredient, ingredient, new ItemStack(InitItems.itemKnife, 1, Util.WILDCARD));
|
2016-03-18 18:41:37 +01:00
|
|
|
recipesMashedFood.add(RecipeUtil.lastIRecipe());
|
2015-07-13 03:28:04 +02:00
|
|
|
}
|
2015-06-21 02:28:49 +02:00
|
|
|
}
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-07-13 03:50:12 +02:00
|
|
|
|
2016-01-08 08:10:55 +01:00
|
|
|
private static boolean isBlacklisted(Item item){
|
2015-07-13 03:50:12 +02:00
|
|
|
for(String except : ConfigValues.mashedFoodCraftingExceptions){
|
2016-04-20 21:39:03 +02:00
|
|
|
if(item.getRegistryName().toString().equals(except)){
|
2015-10-03 10:16:18 +02:00
|
|
|
return true;
|
|
|
|
}
|
2015-07-13 03:50:12 +02:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2015-12-01 23:41:33 +01:00
|
|
|
}
|