use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method init.
public static void init() {
RecipeSorter.register("ShapedNBTOreRecipee", ShapedNBTOreRecipe.class, Category.SHAPED, "");
RecipeSorter.register("ShapelessNBTOreRecipee", ShapelessNBTOreRecipe.class, Category.SHAPELESS, "");
if (ModConfigTools.ironWrench)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemIronWrench, 1), "n n", " i ", "n n", 'i', "ingotIron", 'n', "nuggetIron"));
if (ModConfigRelics.transmutationTome_recipe)
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemTransmutationTome, 1), Items.BOOK, Items.BLAZE_ROD, Items.ENDER_EYE, Items.WHEAT_SEEDS));
if (ModConfigCraftingItems.dislocationCore)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemDislocationCore, 3), " e ", "lrl", " e ", 'e', "enderpearl", 'r', "dustRedstone", 'l', new ItemStack(Items.DYE, 1, 4)));
if (ModConfigCraftingItems.soulGem) {
RecipeSorter.register("RecipeSoulGem", RecipeSoulGem.class, Category.SHAPELESS, "");
GameRegistry.addRecipe(new RecipeSoulGem());
}
if (ModConfigCraftingItems.spikes)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemSpikes, 4), "sss", "hhh", 's', "stickWood", 'h', "slabWood"));
if (ModConfigMisc.backpack_recipe)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemBackpack), "sls", "l l", "lll", 'l', "leather", 's', "string"));
initCompost();
initBlocks();
initMachines();
initArrows();
initRelics();
initBaubles();
initInventoryProxies();
initModules();
initTreeTap();
initAdvPickaxe();
initMCDs();
if (Loader.isModLoaded("gbook") && ModConfigCompat.gbook_recipe)
GameRegistry.addRecipe(new ShapelessOreRecipe(GameRegistry.makeItemStack("gbook:guidebook", 0, 1, "{Book:\"convenientadditions:xml/book.xml\"}"), Items.BOOK, Items.FEATHER, Items.WHEAT_SEEDS));
initCheese();
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method initAdvPickaxe.
private static void initAdvPickaxe() {
RecipeSorter.register("RecipeAdventurersPickaxeRepair", RecipeAdventurersPickaxeRepair.class, Category.SHAPELESS, "");
GameRegistry.addRecipe(new RecipeAdventurersPickaxeRepair());
GameRegistry.addRecipe(new ShapelessOreRecipe(ModItems.itemAdventurersPickaxe.subitems.get(0), Items.WOODEN_PICKAXE, Items.WHEAT_SEEDS));
GameRegistry.addRecipe(new ShapelessOreRecipe(ModItems.itemAdventurersPickaxe.subitems.get(1), Items.STONE_PICKAXE, Items.WHEAT_SEEDS));
GameRegistry.addRecipe(new ShapelessOreRecipe(ModItems.itemAdventurersPickaxe.subitems.get(2), Items.IRON_PICKAXE, Items.WHEAT_SEEDS));
GameRegistry.addRecipe(new ShapelessOreRecipe(ModItems.itemAdventurersPickaxe.subitems.get(3), Items.DIAMOND_PICKAXE, Items.WHEAT_SEEDS));
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method initCheese.
private static void initCheese() {
if (ModConfigConsumables.cheese) {
GameRegistry.addSmelting(Items.MILK_BUCKET, new ItemStack(ModItems.itemCheeseBucket), 0.5f);
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemCheese, 2), ModItems.itemCheeseBucket));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemCheeseSandwich, 2), "cheese", Items.BREAD));
}
if (ModConfigBuildingBlocks.cheeseBlock) {
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.cheeseBlock, 1), ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese, ModItems.itemCheese));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemCheese, 9), ModBlocks.cheeseBlock));
}
if (ModConfigConsumables.potion_lumbering)
GameRegistry.addRecipe(new ShapelessNBTOreRecipe(new ItemStack(ModItems.itemPotionLumbering), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.WATER), "cheese", "sap", "cropPotato"));
if (ModConfigConsumables.potion_thorns)
GameRegistry.addRecipe(new ShapelessNBTOreRecipe(new ItemStack(ModItems.itemPotionThorns), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.WATER), Items.SPIDER_EYE, Items.POISONOUS_POTATO, new ItemStack(Items.DYE, 1, 3)));
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method initArrows.
private static void initArrows() {
if (ModConfigMisc.launchingArrows_creeper) {
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemCreeperKit, 1), "tgt", "gcg", "tgt", 'c', new ItemStack(Items.SKULL, 1, 4), 'g', "gunpowder", 't', Blocks.TNT));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemLaunchingArrow, 8, 0), ModItems.itemCreeperKit, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW));
}
if (ModConfigMisc.launchingArrows_blast) {
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemBlastKit, 1), "tft", "fgf", "tft", 'f', Items.FLINT, 'g', "gunpowder", 't', Blocks.TNT));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemLaunchingArrow, 8, 1), ModItems.itemBlastKit, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW));
}
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.itemSlimeKit, 1), "gsg", "sts", "gsg", 's', "slimeball", 'g', "gunpowder", 't', Blocks.TNT));
if (ModConfigMisc.launchingArrows_slime) {
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemLaunchingArrow, 8, 2), ModItems.itemSlimeKit, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW, Items.ARROW));
}
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project ICBM-Classic by BuiltBrokenModding.
the class ICBMClassic method loadRecipes.
@Override
public void loadRecipes(ModManager manager) {
/** LOAD. */
ArrayList dustCharcoal = OreDictionary.getOres("dustCharcoal");
ArrayList dustCoal = OreDictionary.getOres("dustCoal");
// Sulfur
//GameRegistry.addSmelting(blockSulfurOre, new ItemStack(itemSulfurDust, 4), 0.8f);
GameRegistry.addSmelting(Items.reeds, new ItemStack(itemSulfurDust, 4, 1), 0f);
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.gunpowder, 2), "dustSulfur", "dustSaltpeter", Items.coal));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.gunpowder, 2), "dustSulfur", "dustSaltpeter", new ItemStack(Items.coal, 1, 1)));
if (dustCharcoal != null && dustCharcoal.size() > 0) {
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.gunpowder, 2), "dustSulfur", "dustSaltpeter", "dustCharcoal"));
}
if (dustCoal != null && dustCoal.size() > 0) {
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.gunpowder, 2), "dustSulfur", "dustSaltpeter", "dustCoal"));
}
GameRegistry.addRecipe(new ShapedOreRecipe(Blocks.tnt, "@@@", "@R@", "@@@", '@', Items.gunpowder, 'R', Items.redstone));
// Poison Powder
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(itemPoisonPowder, 3), Items.spider_eye, Items.rotten_flesh));
// Glass Pressure Plate
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockGlassPlate, 1, 0), "##", '#', Blocks.glass));
// Glass Button
GameRegistry.addRecipe(new ItemStack(blockGlassButton, 2), "G", "G", 'G', Blocks.glass);
// Proximity Detector
GameRegistry.addRecipe(new ShapedOreRecipe(blockProximityDetector, "SSS", "S?S", "SSS", 'S', Items.iron_ingot, '?', itemTracker));
// Signal Disrupter
GameRegistry.addRecipe(new ShapedOreRecipe(itemSignalDisrupter, "WWW", "SCS", "SSS", 'S', Items.iron_ingot, 'C', UniversalRecipe.CIRCUIT_T1.get(), 'W', UniversalRecipe.WIRE.get()));
// Antidote
OreDictionary.registerOre("seeds", Items.wheat_seeds);
OreDictionary.registerOre("seeds", Items.pumpkin_seeds);
OreDictionary.registerOre("seeds", Items.melon_seeds);
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemAntidote, 6), "@@@", "@@@", "@@@", '@', "seeds"));
// Reinforced rails
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockCombatRail, 16, 0), new Object[] { "C C", "CIC", "C C", 'I', new ItemStack(blockConcrete, 1, 0), 'C', Items.iron_ingot }));
// Reinforced Glass
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockReinforcedGlass, 8), new Object[] { "IGI", "GIG", "IGI", 'G', Blocks.glass, 'I', Items.iron_ingot }));
// Rocket Launcher
GameRegistry.addRecipe(new ShapedOreRecipe(itemRocketLauncher, "SCR", "SB ", 'R', itemRadarGun, 'C', new ItemStack(blockCruiseLauncher), 'B', Blocks.stone_button, 'S', UniversalRecipe.PRIMARY_METAL.get()));
// Radar Gun
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemRadarGun), "@#!", " $!", " !", '@', Blocks.glass, '!', UniversalRecipe.PRIMARY_METAL.get(), '#', UniversalRecipe.CIRCUIT_T1.get(), '$', Blocks.stone_button));
// Remote
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemRemoteDetonator), "?@@", "@#$", "@@@", '@', UniversalRecipe.PRIMARY_METAL.get(), '?', Items.redstone, '#', UniversalRecipe.CIRCUIT_T2.get(), '$', Blocks.stone_button));
// Laser Designator
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemLaserDesignator), "! ", " ? ", " @", '@', itemRemoteDetonator, '?', UniversalRecipe.CIRCUIT_T3.get(), '!', itemRadarGun));
// Defuser
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(itemDefuser), "I ", " W ", " C", 'C', UniversalRecipe.CIRCUIT_T2.get(), 'W', UniversalRecipe.WRENCH.get(), 'I', UniversalRecipe.WIRE.get()));
// Missile module
GameRegistry.addRecipe(new ShapedOreRecipe(Explosives.MISSILE.getItemStack(), " @ ", "@#@", "@?@", '@', UniversalRecipe.PRIMARY_METAL.get(), '?', Items.flint_and_steel, '#', UniversalRecipe.CIRCUIT_T1.get()));
// Homing
GameRegistry.addRecipe(new ShapedOreRecipe(Explosives.MISSILE_HOMING.getItemStack(), " B ", " C ", "BMB", 'M', Explosives.MISSILE.getItemStack(), 'C', UniversalRecipe.CIRCUIT_T1.get(), 'B', UniversalRecipe.SECONDARY_METAL.get()));
// Anti-ballistic
GameRegistry.addRecipe(new ShapedOreRecipe(Explosives.MISSILE_ANTI.getItemStack(), "!", "?", "@", '@', Explosives.MISSILE.getItemStack(), '?', new ItemStack(blockExplosive, 1, 0), '!', UniversalRecipe.CIRCUIT_T1.get()));
// Cluster
GameRegistry.addRecipe(new ShapedOreRecipe(Explosives.MISSILE_CLUSTER.getItemStack(), " ! ", " ? ", "!@!", '@', Explosives.MISSILE.getItemStack(), '?', Explosives.FRAGMENTATION.getItemStack(), '!', new ItemStack(itemMissile, 1, 0)));
// Nuclear Cluster
GameRegistry.addRecipe(new ShapedOreRecipe(Explosives.MISSILE_CLUSTER_NUKE.getItemStack(), " N ", "NCN", 'C', Explosives.MISSILE_CLUSTER.getItemStack(), 'N', Explosives.NUCLEAR.getItemStack()));
for (Explosives ex : Explosives.values()) {
Explosive explosive = ex.handler;
explosive.init();
if (!(explosive instanceof Missile)) {
// Missile
RecipeUtility.addRecipe(new ShapelessOreRecipe(new ItemStack(itemMissile, 1, ex.ordinal()), Explosives.MISSILE.getItemStack(), new ItemStack(blockExplosive, 1, ex.ordinal())), explosive.getUnlocalizedName() + " Missile", getConfig(), true);
if (explosive.getTier() < 2) {
// Grenade
RecipeUtility.addRecipe(new ShapedOreRecipe(new ItemStack(itemGrenade, 1, ex.ordinal()), "?", "@", '@', new ItemStack(blockExplosive, 1, ex.ordinal()), '?', Items.string), explosive.getUnlocalizedName() + " Grenade", getConfig(), true);
}
if (explosive.getTier() < 3) {
// Minecart
RecipeUtility.addRecipe(new ShapedOreRecipe(new ItemStack(itemBombCart, 1, ex.ordinal()), "?", "@", '?', new ItemStack(blockExplosive, 1, ex.ordinal()), '@', Items.minecart), explosive.getUnlocalizedName() + " Minecart", getConfig(), true);
}
}
}
}
Aggregations