use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModOredict method registerOres.
public static void registerOres() {
OreDictionary.registerOre("soil", ModBlocks.compostSoilBlock);
OreDictionary.registerOre("soil", Blocks.DIRT);
OreDictionary.registerOre("soilCompost", ModBlocks.compostSoilBlock);
OreDictionary.registerOre("soilDirt", Blocks.DIRT);
OreDictionary.registerOre("chunkCompost", new ItemStack(ModItems.itemCompost, 1, 0));
OreDictionary.registerOre("chunkCompost", new ItemStack(ModItems.itemCompost, 1, 1));
OreDictionary.registerOre("chunkDirt", new ItemStack(ModItems.itemDirtChunk, 1, 0));
OreDictionary.registerOre("sugar", new ItemStack(ModItems.itemSapBottle, 1, 1));
OreDictionary.registerOre("sugar", new ItemStack(ModItems.itemSapBottle, 1, 2));
OreDictionary.registerOre("sap", new ItemStack(ModItems.itemSapBottle, 1, 1));
OreDictionary.registerOre("sap", new ItemStack(ModItems.itemSapBottle, 1, 2));
OreDictionary.registerOre("cheese", new ItemStack(ModItems.itemCheese));
OreDictionary.registerOre("blockCheese", new ItemStack(ModBlocks.cheeseBlock));
if (ModConfigGeneral.sugarOreDictInit) {
OreDictionary.registerOre("sugar", new ItemStack(Items.SUGAR));
GameRegistry.addRecipe(new ShapelessOreRecipe(Items.PUMPKIN_PIE, Blocks.PUMPKIN, "egg", "sugar"));
GameRegistry.addRecipe(new ShapelessOreRecipe(Items.FERMENTED_SPIDER_EYE, Blocks.BROWN_MUSHROOM, Items.SPIDER_EYE, "sugar"));
GameRegistry.addRecipe(new ShapedOreRecipe(Items.CAKE, "mmm", "ses", "www", 'm', Items.MILK_BUCKET, 'e', "egg", 's', "sugar", 'w', "cropWheat"));
}
if (ModConfigGeneral.doorOreDictInit) {
OreDictionary.registerOre("door", Items.OAK_DOOR);
OreDictionary.registerOre("door", Items.BIRCH_DOOR);
OreDictionary.registerOre("door", Items.ACACIA_DOOR);
OreDictionary.registerOre("door", Items.DARK_OAK_DOOR);
OreDictionary.registerOre("door", Items.JUNGLE_DOOR);
OreDictionary.registerOre("door", Items.SPRUCE_DOOR);
OreDictionary.registerOre("door", Items.IRON_DOOR);
OreDictionary.registerOre("doorWood", Items.OAK_DOOR);
OreDictionary.registerOre("doorWood", Items.BIRCH_DOOR);
OreDictionary.registerOre("doorWood", Items.ACACIA_DOOR);
OreDictionary.registerOre("doorWood", Items.DARK_OAK_DOOR);
OreDictionary.registerOre("doorWood", Items.JUNGLE_DOOR);
OreDictionary.registerOre("doorWood", Items.SPRUCE_DOOR);
}
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method initCompost.
private static void initCompost() {
if (ModConfigMisc.composter_recipe)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.composterBlock), "s s", "s s", "ppp", 's', "slabWood", 'p', "plankWood"));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.compostSoilBlock), "cc", "cc", 'c', "chunkCompost"));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Blocks.DIRT), "dd", "dd", 'd', "chunkDirt"));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.compostSoilBlock), Blocks.DIRT, "chunkCompost"));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Blocks.DIRT), ModBlocks.compostSoilBlock));
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method initBlocks.
private static void initBlocks() {
if (ModConfigMisc.platform) {
for (EnumDyeColor c : EnumDyeColor.values()) {
String dye = "dye" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
String pane = "paneGlass" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
String block = "blockGlass" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.platform, 4, c.getMetadata()), "p p", " d ", "p p", 'd', dye, 'p', pane));
ItemStack w = new ItemStack(ModBlocks.platform, 1, OreDictionary.WILDCARD_VALUE);
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.platform, 4, c.getMetadata()), w, w, w, w, dye));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.semiSolidBlock, 4, c.getMetadata()), "b b", " d ", "b b", 'd', dye, 'b', block));
w = new ItemStack(ModBlocks.semiSolidBlock, 1, OreDictionary.WILDCARD_VALUE);
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.semiSolidBlock, 4, c.getMetadata()), w, w, w, w, dye));
}
}
if (ModConfigMisc.powderKeg)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.powderKegBlock), "psp", "pgp", "psp", 'p', "plankWood", 's', "slabWood", 'g', "gunpowder"));
if (ModConfigMisc.seedBox_recipe)
GameRegistry.addRecipe(new ShapedOreRecipe(ModBlocks.seedBoxBlock, "tpt", "php", "tpt", 'h', Blocks.HOPPER, 'p', "plankWood", 't', "ingotIron"));
if (ModConfigMisc.displayCase)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.displayCase, 2), "ppp", "p p", "sss", 's', "slabWood", 'p', "paneGlassColorless"));
if (ModConfigBuildingBlocks.ironGolemBlock)
GameRegistry.addRecipe(new ShapedNBTOreRecipe(new ItemStack(ModBlocks.ironGolemBlock, 32), "iii", "isi", "iii", 'i', "blockIron", 's', ModItems.itemSoulGem.setEntityId(new ItemStack(ModItems.itemSoulGem), "minecraft:villager_golem")));
if (ModConfigMisc.enderProofBlock)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.enderProofBlock, 6), "oio", "iwi", "oio", 'o', "obsidian", 'i', Blocks.IRON_BARS, 'w', Items.WATER_BUCKET));
if (ModConfigMisc.enderProofGlass)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.enderProofGlass, 6), "gig", "iwi", "gig", 'g', "blockGlass", 'i', Blocks.IRON_BARS, 'w', Items.WATER_BUCKET));
if (ModConfigMisc.workStation)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.workStation), "sss", "pwp", "pcp", 's', "cobblestone", 'p', "plankWood", 'c', "chestWood", 'w', "workbench"));
if (ModConfigMisc.punjiSticks)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.punjiSticks), "ss", "cc", 's', ModItems.itemSpikes, 'c', new ItemStack(Blocks.STONE_SLAB)));
if (ModConfigMisc.storageCrate)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.storageCrate), "lll", "lcl", "lll", 'l', "logWood", 'c', "chestWood"));
if (ModConfigBuildingBlocks.woodenTile)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.woodenTile, 8), "sps", "ppp", "sps", 's', "stickWood", 'p', "plankWood"));
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project BetterWithAddons by DaedalusGame.
the class InteractionBWM method registerCompressRecipe.
private static void registerCompressRecipe(ItemStack small, ItemStack big, String oreSmall, String oreBig) {
// ingot -> block
GameRegistry.addRecipe(new ShapedOreRecipe(big, "###", "###", "###", '#', oreSmall));
// block -> 9 ingot
small = small.copy();
small.setCount(9);
GameRegistry.addRecipe(new ShapelessOreRecipe(small, oreBig));
}
use of net.minecraftforge.oredict.ShapelessOreRecipe in project AgriCraft by AgriCraft.
the class ItemNugget method registerRecipes.
@Override
public void registerRecipes() {
for (AgriNuggetType type : AgriNuggetType.values()) {
ItemStack nugget = new ItemStack(this, 9, type.ordinal());
ItemStack ingot = OreDictHelper.getIngot(type.ingot);
AgriCore.getLogger("agricraft").debug("Registering Nugget: {0} For: {1}", type.nugget, type.ingot);
if (ingot != null) {
GameRegistry.addRecipe(new ShapedOreRecipe(ingot, "nnn", "nnn", "nnn", 'n', type.nugget));
GameRegistry.addRecipe(new ShapelessOreRecipe(nugget, type.ingot));
}
}
}
Aggregations