Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package FoodPlus;
- import net.minecraft.block.Block;
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.item.EnumToolMaterial;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemFood;
- import net.minecraft.item.ItemReed;
- import net.minecraft.item.ItemStack;
- import net.minecraftforge.common.Configuration;
- import net.minecraftforge.common.EnumHelper;
- import net.minecraftforge.common.MinecraftForge;
- import cpw.mods.fml.common.Mod;
- import cpw.mods.fml.common.Mod.Init;
- import cpw.mods.fml.common.Mod.Instance;
- import cpw.mods.fml.common.Mod.PreInit;
- import cpw.mods.fml.common.event.FMLInitializationEvent;
- import cpw.mods.fml.common.event.FMLPreInitializationEvent;
- import cpw.mods.fml.common.network.NetworkMod;
- import cpw.mods.fml.common.network.NetworkRegistry;
- import cpw.mods.fml.common.registry.GameRegistry;
- import cpw.mods.fml.common.registry.LanguageRegistry;
- @Mod(modid = "FoodPlus", name = "Food Plus", version = "2.0-BugFix")
- @NetworkMod(clientSideRequired = true, channels = {"FoodPlus"}, packetHandler = PacketHandler.class)
- public class FoodPlus
- {
- //INSTANCES & GUIs
- @Instance("FoodPlus")
- public static FoodPlus instance = new FoodPlus();
- private GuiHandler guiHandlerTrees = new GuiHandler();
- //ITEMS
- public static Item applecakeslice;
- public static Item coockedcarrot;
- public static Item stew;
- public static Item breadslice;
- public static Item hamburger;
- public static Item butter;
- public static Item toast;
- public static Item sushi;
- public static Item breadandbutterpudding;
- public static Item smashedpotato;
- public static Item chocolate;
- public static Item milkshake;
- public static Item chips;
- public static Item chipsfried;
- public static Item carrotsoup;
- public static Item nutella;
- public static Item breadwithnutella;
- public static Item omelette;
- public static Item omelettefinal;
- public static Item breadwithbutter;
- public static Item muffin;
- public static Item broth;
- public static Item steakandchips;
- public static Item spaghetti;
- public static Item pasta;
- public static Item sweet;
- public static Item caramel;
- public static Item cereal;
- public static Item bowlofcereal;
- public static Item salt;
- public static Item pizzaslice;
- public static Item cheese;
- public static Item rawpizza;
- public static Item strawberry;
- public static Item strawberrymilkshake;
- public static Item cheesepasta;
- public static Item crisps;
- public static Item friedegg;
- public static Item donutbase;
- public static Item chocolatedonut;
- public static Item strawberrydonut;
- public static Item strawberryseed;
- public static Item flour;
- public static Item tomatoseed;
- public static Item tomato;
- public static Item strawberryjam;
- public static Item knife;
- public static Item waffle;
- public static Item kebab;
- public static Item fishandchips;
- public static Item chocolatecakeitem;
- public static Item pizzaitem;
- public static Item beefpieitem;
- public static Item glass;
- public static Item applejuice;
- public static Item riceseed;
- public static Item rice;
- //IDS
- public static int applecakesliceID;
- public static int coockedcarrotID;
- public static int stewID;
- public static int breadsliceID;
- public static int hamburgerID;
- public static int butterID;
- public static int toastID;
- public static int sushiID;
- public static int breadandbutterpuddingID;
- public static int smashedpotatoID;
- public static int chocolateID;
- public static int milkshakeID;
- public static int chipsID;
- public static int chipsfriedID;
- public static int carrotsoupID;
- public static int nutellaID;
- public static int breadwithnutellaID;
- public static int omeletteID;
- public static int omelettefinalID;
- public static int breadwithbutterID;
- public static int muffinID;
- public static int brothID;
- public static int steakandchipsID;
- public static int spaghettiID;
- public static int pastaID;
- public static int sweetID;
- public static int caramelID;
- public static int cerealID;
- public static int bowlofcerealID;
- public static int saltID;
- public static int pizzasliceID;
- public static int cheeseID;
- public static int rawpizzaID;
- public static int strawberryID;
- public static int strawberrymilkshakeID;
- public static int cheesepastaID;
- public static int crispsID;
- public static int friedeggID;
- public static int donutbaseID;
- public static int chocolatedonutID;
- public static int strawberrydonutID;
- public static int strawberryseedID;
- public static int flourID;
- public static int tomatoseedID;
- public static int tomatoID;
- public static int strawberryjamID;
- public static int knifeID;
- public static int waffleID;
- public static int kebabID;
- public static int fishandchipsID;
- public static int chocolatecakeitemID;
- public static int pizzaitemID;
- public static int beefpieitemID;
- public static int glassID;
- public static int applejuiceID;
- public static int riceseedID;
- public static int riceID;
- //BLOCKS
- public static Block tomatocrop;
- public static Block strawberrycrop;
- public static Block beefpie;
- public static Block partyblock;
- public static Block pizza;
- public static Block saltore;
- public static Block saltblock;
- public static Block chocolatecake;
- public static Block worktop;
- public static Block ricecrop;
- //IDS
- public static int tomatocropID;
- public static int strawberrycropID;
- public static int partyblockID;
- public static int saltoreID;
- public static int saltblockID;
- public static int worktopID;
- public static int ricecropID;
- public static int chocolatecakeID;
- public static int beefpieID;
- public static int pizzaID;
- //MISC.
- public static CreativeTabs foodplustab;
- public static Item candypickaxe;
- public static Item candyaxe;
- public static Item candyhoe;
- public static Item candysword;
- public static Item candyspade;
- //IDS
- public static int candypickaxeID;
- public static int candyaxeID;
- public static int candyhoeID;
- public static int candyswordID;
- public static int candyspadeID;
- @PreInit
- public void preInit(FMLPreInitializationEvent event) {
- Configuration config = new Configuration(event.getSuggestedConfigurationFile());
- config.load();
- // Configuration goes here.
- applecakesliceID = config.getItem("applecakeslice",3000).getInt();
- coockedcarrotID = config.getItem("coockedcarrot", 3001).getInt();
- stewID = config.getItem("stew", 3002).getInt();
- breadsliceID = config.getItem("breadslice", 3003).getInt();
- hamburgerID = config.getItem("hamburger", 3004).getInt();
- butterID = config.getItem("butter", 3005).getInt();
- toastID = config.getItem("toast", 3006).getInt();
- sushiID = config.getItem("sushi", 3007).getInt();
- breadandbutterpuddingID = config.getItem("breadandbutterpudding", 3008).getInt();
- smashedpotatoID = config.getItem("smashedpotato", 3009).getInt();
- chocolateID = config.getItem("chocolate", 3010).getInt();
- milkshakeID = config.getItem("milkshake", 3011).getInt();
- chipsID = config.getItem("chips", 3013).getInt();
- chipsfriedID = config.getItem("chipsfried", 3014).getInt();
- carrotsoupID = config.getItem("carrotsoup", 3015).getInt();
- nutellaID = config.getItem("nutella", 3016).getInt();
- breadwithnutellaID = config.getItem("breadwithnutella", 3017).getInt();
- omeletteID = config.getItem("omelette", 3018).getInt();
- omelettefinalID = config.getItem("omelettefinal", 3019).getInt();
- breadwithbutterID = config.getItem("breadwithbutter", 3039).getInt();
- muffinID = config.getItem("muffin", 3020).getInt();
- brothID = config.getItem("broth", 3021).getInt();
- steakandchipsID = config.getItem("steakandchips", 3022).getInt();
- spaghettiID = config.getItem("spaghetti", 3023).getInt();
- pastaID = config.getItem("pasta", 3024).getInt();
- sweetID = config.getItem("sweet", 3025).getInt();
- caramelID = config.getItem("caramel", 3026).getInt();
- cerealID = config.getItem("cereal", 3027).getInt();
- bowlofcerealID = config.getItem("bowlofcereal", 3028).getInt();
- saltID = config.getItem("salt", 3029).getInt();
- pizzasliceID = config.getItem("pizzaslice", 3033).getInt();
- cheeseID = config.getItem("cheese", 3037).getInt();
- rawpizzaID = config.getItem("rawpizza", 3038).getInt();
- strawberryID = config.getItem("strawberry", 3031).getInt();
- strawberrymilkshakeID = config.getItem("strawberrymilkshake", 3042).getInt();
- cheesepastaID = config.getItem("cheesepastam", 3043).getInt();
- crispsID = config.getItem("crisps", 3044).getInt();
- friedeggID = config.getItem("friedegg", 3045).getInt();
- donutbaseID = config.getItem("donutbase", 3046).getInt();
- chocolatedonutID = config.getItem("chocolatedonut", 3049).getInt();
- strawberrydonutID = config.getItem("strawberrydonut", 3059).getInt();
- strawberryseedID = config.getItem("strawberryseed", 3048).getInt();
- flourID = config.getItem("flour", 3050).getInt();
- tomatoseedID = config.getItem("tomatoseed", 3041).getInt();
- tomatoID = config.getItem("tomato", 3036).getInt();
- strawberryjamID = config.getItem("strawberryjam", 3058).getInt();
- knifeID = config.getItem("knife", 3052).getInt();
- waffleID = config.getItem("waffle", 3060).getInt();
- kebabID = config.getItem("kebab", 3061).getInt();
- fishandchipsID = config.getItem("fishandchips", 3062).getInt();
- chocolatecakeitemID = config.getItem("chocolatecakeitem", 3063).getInt();
- pizzaitemID = config.getItem("pizzaitem", 3064).getInt();
- beefpieitemID = config.getItem("beefpieitem", 3065).getInt();
- glassID = config.getItem("glass", 3066).getInt();
- applejuiceID = config.getItem("applejuice", 3067).getInt();
- riceseedID = config.getItem("riceseed", 3070).getInt();
- riceID = config.getItem("rice", 3068).getInt();
- partyblockID = config.getBlock("partyblock", 3035).getInt();
- saltblockID = config.getBlock("saltblock", 3051).getInt();
- saltoreID = config.getBlock("saltore", 3030).getInt();
- tomatocropID = config.getBlock("tomatocrop", 3040).getInt();
- strawberrycropID = config.getBlock("strawberrycrop", 3047).getInt();
- worktopID = config.getBlock("worktop", 3052).getInt();
- ricecropID = config.getBlock("ricecrop", 3069).getInt();
- beefpieID = config.getBlock("beefpie", 3034).getInt();
- pizzaID = config.getBlock("pizza", 3032).getInt();
- chocolatecakeID = config.getBlock("chocolatecake", 3012).getInt();
- candypickaxeID = config.getItem("candypickaxe", 3053).getInt();
- candyaxeID = config.getItem("candyaxe", 3054).getInt();
- candyhoeID = config.getItem("candyhoe", 3055).getInt();
- candyswordID = config.getItem("candysword", 3056).getInt();
- candyspadeID = config.getItem("candyspade", 3057).getInt();
- config.save();
- }
- @Init
- public void load(FMLInitializationEvent event)
- {
- //MISC. IMPORTANT
- foodplustab = new foodplustab(CreativeTabs.getNextID(), "FoodPlus Tab");
- EnumToolMaterial TutTool = EnumHelper.addToolMaterial("Tool", 1, 131, 4.0F, 1, 5); //Stone
- beefpie = new beefpie(beefpieID).setUnlocalizedName("beefpie");
- pizza = new pizza(pizzaID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("pizza");
- chocolatecake = new chocolatecake(chocolatecakeID).setUnlocalizedName("chocolatecake");
- //ITEMS
- applecakeslice = new ItemFood(applecakesliceID, 10, false).setUnlocalizedName("applecakeslice").setCreativeTab(this.foodplustab);
- coockedcarrot = new ItemFood(coockedcarrotID, 5, false).setUnlocalizedName("coockedcarrot").setCreativeTab(this.foodplustab);
- stew = new ItemFood(stewID, 10, true).setUnlocalizedName("stew").setCreativeTab(this.foodplustab);
- breadslice = new ItemFood(breadsliceID, 3, false).setUnlocalizedName("breadslice").setCreativeTab(this.foodplustab);
- hamburger = new ItemFood(hamburgerID, 6, false).setUnlocalizedName("hamburger").setCreativeTab(this.foodplustab);
- butter = new ItemFood(butterID, 1, false).setUnlocalizedName("butter").setCreativeTab(this.foodplustab);
- toast = new ItemFood(toastID, 2, false).setUnlocalizedName("toast").setCreativeTab(this.foodplustab);
- sushi = new ItemFood(sushiID, 2, true).setUnlocalizedName("sushi").setCreativeTab(this.foodplustab);
- breadandbutterpudding = new ItemFood(breadandbutterpuddingID, 12, false).setUnlocalizedName("breadandbutterpudding").setCreativeTab(this.foodplustab);
- smashedpotato = new ItemFood(smashedpotatoID, 10, false).setUnlocalizedName("smashedpotato").setCreativeTab(this.foodplustab);
- chocolate = new ItemFood(chocolateID, 4, false).setUnlocalizedName("chocolate").setCreativeTab(this.foodplustab);
- milkshake = new ItemFood(milkshakeID, 3, false).setUnlocalizedName("milkshake").setCreativeTab(this.foodplustab);
- chips = new ItemFood(chipsID, 6, false).setUnlocalizedName("chips").setCreativeTab(this.foodplustab);
- chipsfried = new ItemFood(chipsfriedID, 7, false).setUnlocalizedName("chipsfried").setCreativeTab(this.foodplustab);
- carrotsoup = new ItemFood(carrotsoupID, 6, false).setUnlocalizedName("carrotsoup").setCreativeTab(this.foodplustab);
- nutella = new ItemFood(nutellaID, 4, false).setUnlocalizedName("nutella").setCreativeTab(this.foodplustab);
- breadwithnutella = new ItemFood(breadwithnutellaID, 10, false).setUnlocalizedName("breadwithnutella").setCreativeTab(this.foodplustab);
- omelette = new ItemFood(omeletteID, 3, false).setUnlocalizedName("omelette").setCreativeTab(this.foodplustab);
- omelettefinal = new ItemFood(omelettefinalID, 6, false).setUnlocalizedName("omelettefinal").setCreativeTab(this.foodplustab);
- muffin = new ItemFood(muffinID, 4, false).setUnlocalizedName("muffin").setCreativeTab(this.foodplustab);
- broth = new ItemFood(brothID, 8, false).setUnlocalizedName("broth").setCreativeTab(this.foodplustab);
- steakandchips = new ItemFood(steakandchipsID, 12, false).setUnlocalizedName("steakandchips").setCreativeTab(this.foodplustab);
- spaghetti = new ItemFood(spaghettiID, 1, false).setUnlocalizedName("spaghetti").setCreativeTab(this.foodplustab);
- pasta = new ItemFood(pastaID, 10, false).setUnlocalizedName("pasta").setCreativeTab(this.foodplustab);
- sweet = new ItemFood(sweetID, 10, false).setUnlocalizedName("sweet").setCreativeTab(this.foodplustab);
- caramel = new ItemFood(caramelID, 1, false).setUnlocalizedName("caramel").setCreativeTab(this.foodplustab);
- cereal = new ItemFood(cerealID, 8, false).setUnlocalizedName("cereal").setCreativeTab(this.foodplustab);
- bowlofcereal = new ItemFood(bowlofcerealID, 8, false).setUnlocalizedName("bowlofcereal").setCreativeTab(this.foodplustab);
- salt = new ItemFood(saltID, 1, false).setUnlocalizedName("salt").setCreativeTab(this.foodplustab);
- strawberry = new ItemFood(strawberryID, 2, false).setUnlocalizedName("strawberry").setCreativeTab(this.foodplustab);
- pizzaslice = new ItemFood(pizzasliceID, 4, false).setUnlocalizedName("pizzaslice").setCreativeTab(this.foodplustab);
- tomato = new ItemFood(tomatoID, 4, false).setUnlocalizedName("tomato").setCreativeTab(this.foodplustab);
- cheese = new ItemFood(cheeseID, 6, false).setUnlocalizedName("cheese").setCreativeTab(this.foodplustab);
- rawpizza = new ItemFood(rawpizzaID, 2, false).setUnlocalizedName("rawpizza").setCreativeTab(this.foodplustab);
- breadwithbutter = new ItemFood(breadwithbutterID, 6, false).setUnlocalizedName("breadwithbutter").setCreativeTab(this.foodplustab);
- strawberrymilkshake = new ItemFood(strawberrymilkshakeID, 3, false).setUnlocalizedName("strawberrymilkshake").setCreativeTab(this.foodplustab);
- cheesepasta = new ItemFood(cheesepastaID, 10, false).setUnlocalizedName("cheesepasta").setCreativeTab(this.foodplustab);
- crisps = new ItemFood(crispsID, 10, false).setUnlocalizedName("crisps").setCreativeTab(this.foodplustab);
- friedegg = new ItemFood(friedeggID, 4, false).setUnlocalizedName("friedegg").setCreativeTab(this.foodplustab);
- donutbase = new ItemFood(donutbaseID, 2, false).setUnlocalizedName("donutbase").setCreativeTab(this.foodplustab);
- chocolatedonut = new ItemFood(chocolatedonutID, 6, false).setUnlocalizedName("chocolatedonut").setCreativeTab(this.foodplustab);
- flour = new ItemFood(flourID, 1, false).setUnlocalizedName("flour").setCreativeTab(this.foodplustab);
- knife = new Item(knifeID).setUnlocalizedName("knife").setCreativeTab(this.foodplustab);
- strawberryjam = new ItemFood(strawberryjamID, 4, false).setUnlocalizedName("strawberryjam").setCreativeTab(this.foodplustab);
- strawberrydonut = new ItemFood(strawberrydonutID, 6, false).setUnlocalizedName("strawberrydonut").setCreativeTab(this.foodplustab);
- waffle = new ItemFood(waffleID, 3, false).setUnlocalizedName("waffle").setCreativeTab(this.foodplustab);
- kebab = new ItemFood(kebabID, 7, false).setUnlocalizedName("kebab").setCreativeTab(this.foodplustab);
- fishandchips = new ItemFood(fishandchipsID, 11, false).setUnlocalizedName("fishandchips").setCreativeTab(this.foodplustab);
- chocolatecakeitem = new ItemReed(chocolatecakeitemID, chocolatecake).setMaxStackSize(2).setUnlocalizedName("chocolatecakeitem").setCreativeTab(this.foodplustab);
- pizzaitem = new ItemReed(pizzaitemID, pizza).setMaxStackSize(2).setUnlocalizedName("pizzaitem").setCreativeTab(this.foodplustab);
- beefpieitem = new ItemReed(beefpieitemID, beefpie).setMaxStackSize(2).setUnlocalizedName("beefpieitem").setCreativeTab(this.foodplustab);
- glass = new Item(glassID).setUnlocalizedName("glass").setCreativeTab(this.foodplustab);
- applejuice = new ItemFood(applejuiceID, 5, false).setUnlocalizedName("applejuice").setCreativeTab(this.foodplustab);
- rice = new Item(riceID).setUnlocalizedName("rice").setCreativeTab(this.foodplustab);
- //TOOLS & ARMOUR
- candypickaxe = new candypickaxe(candypickaxeID, TutTool).setUnlocalizedName("candypickaxe").setCreativeTab(this.foodplustab);
- candyaxe = new candyaxe(candyaxeID, TutTool).setUnlocalizedName("candyaxe").setCreativeTab(this.foodplustab);
- candyhoe = new candyhoe(candyhoeID, TutTool).setUnlocalizedName("candyhoe").setCreativeTab(this.foodplustab);
- candysword = new candysword(candyswordID, TutTool).setUnlocalizedName("candysword").setCreativeTab(this.foodplustab);
- candyspade = new candyspade(candyspadeID, TutTool).setUnlocalizedName("candyspade").setCreativeTab(this.foodplustab);
- //BLOCKS
- partyblock = new partyblock(partyblockID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("partyblock").setCreativeTab(this.foodplustab);
- saltblock = new saltblock(saltblockID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("saltblock").setCreativeTab(this.foodplustab);
- saltore = new saltore(saltoreID).setHardness(1.0F).setResistance(2.0F).setUnlocalizedName("saltore").setCreativeTab(this.foodplustab);
- tomatocrop = new tomatocrop(tomatocropID).setStepSound(Block.soundGrassFootstep).setHardness(0.0F).setUnlocalizedName("tomatocrop");
- tomatoseed = new tomatoseed(tomatoseedID, tomatocrop.blockID, Block.grass.blockID).setUnlocalizedName("tomatoseed").setCreativeTab(this.foodplustab);
- strawberrycrop = new strawberrycrop(strawberrycropID).setStepSound(Block.soundGrassFootstep).setHardness(0.0F).setUnlocalizedName("strawberrycrop");
- strawberryseed = new strawberryseed(strawberryseedID, strawberrycrop.blockID, Block.grass.blockID).setUnlocalizedName("strawberryseed").setCreativeTab(this.foodplustab);
- worktop = new worktop(worktopID).setHardness(2.5F).setStepSound(Block.soundWoodFootstep).setUnlocalizedName("Smiths Bench").setCreativeTab(this.foodplustab);
- ricecrop = new ricecrop(ricecropID).setStepSound(Block.soundGrassFootstep).setHardness(0.0F).setUnlocalizedName("ricecrop");
- riceseed = new tomatoseed(riceseedID, ricecrop.blockID, Block.grass.blockID).setUnlocalizedName("riceseed").setCreativeTab(this.foodplustab);
- //MISC.
- MinecraftForge.EVENT_BUS.register(new tomatocropevent());
- MinecraftForge.EVENT_BUS.register(new strawberrycropevent());
- GameRegistry.registerWorldGenerator(new WorldGeneratorName());
- GameRegistry.registerWorldGenerator(new WorldGeneratorName());
- MinecraftForge.addGrassSeed(new ItemStack(tomatoseed), 10);
- MinecraftForge.addGrassSeed(new ItemStack(strawberryseed), 10);
- //MinecraftForge.addGrassSeed(new ItemStack(riceseed), 10);
- NetworkRegistry.instance().registerGuiHandler(this, guiHandlerTrees);
- //LANGUAGE
- //ApplecakeSlice
- LanguageRegistry.addName(applecakeslice, "Apple pie");
- //CoockedCarrot
- LanguageRegistry.addName(coockedcarrot, "Cooked carrot");
- GameRegistry.addSmelting(Item.carrot.itemID, new ItemStack(FoodPlus.coockedcarrot), 0.1f);
- //Stew
- LanguageRegistry.addName(stew, "Stew");
- //BreadSlice-------
- LanguageRegistry.addName(breadslice, "Bread Slice");
- //Hamburger--------
- LanguageRegistry.addName(hamburger, "Hamburger");
- //Butter-----------
- LanguageRegistry.addName(butter, "Butter");
- //Tostade---------
- LanguageRegistry.addName(toast, "Tostade");
- GameRegistry.addSmelting(FoodPlus.breadslice.itemID, new ItemStack(FoodPlus.toast), 0.1f);
- //Sushi-------------
- LanguageRegistry.addName(sushi, "Sushi");
- //BreadAndButterPudding---
- LanguageRegistry.addName(breadandbutterpudding, "Bread and butter pudding");
- //SmashedPotato----
- LanguageRegistry.addName(smashedpotato, "Mashed potato");
- //Chocolate------
- LanguageRegistry.addName(chocolate, "Chocolate");
- //Milkshake------
- LanguageRegistry.addName(milkshake, "Chocolate milkshake");
- //Chocolatecacke---
- LanguageRegistry.addName(chocolatecake, "Chocolate cake");
- GameRegistry.registerBlock(chocolatecake, "Chocolate cake");
- //Chips&Fries-------
- LanguageRegistry.addName(chips, "Raw chips");
- LanguageRegistry.addName(chipsfried, "Cooked chips");
- GameRegistry.addSmelting(FoodPlus.chips.itemID, new ItemStack(FoodPlus.chipsfried), 0.1f);
- //Carrotsoup------
- LanguageRegistry.addName(carrotsoup, "Carrot soup");
- //Nutella---------
- LanguageRegistry.addName(nutella, "Nutella");
- //Breadwithnutella----
- LanguageRegistry.addName(breadwithnutella, "Bread with nutella");
- //Omelete-------
- LanguageRegistry.addName(omelette, "Raw omelette");
- LanguageRegistry.addName(omelettefinal, "Omelette");
- GameRegistry.addSmelting(FoodPlus.omelette.itemID, new ItemStack(FoodPlus.omelettefinal), 0.1f);
- //breadwithbutter-----
- LanguageRegistry.addName(breadwithbutter, "Buttered bread");
- //Muffin--------
- LanguageRegistry.addName(muffin, "Muffin");
- //Broth---------
- LanguageRegistry.addName(broth, "Broth");
- //Steakandchips--
- LanguageRegistry.addName(steakandchips, "Steak and chips");
- //Spaghetti----
- LanguageRegistry.addName(spaghetti, "Spaghetti");
- //Pasta--------
- LanguageRegistry.addName(pasta, "Pasta");
- GameRegistry.registerItem(pasta, "pasta");
- //Sweet--------
- LanguageRegistry.addName(sweet, "Sweet");
- //Caramel-------
- LanguageRegistry.addName(caramel, "Caramel");
- GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack(FoodPlus.caramel), 0.1f);
- //Cereal--------
- LanguageRegistry.addName(cereal, "Cereal");
- //Bowlofcereal-----
- LanguageRegistry.addName(bowlofcereal, "Bowl of cereal");
- //Salt----------
- LanguageRegistry.addName(salt, "Salt");
- //Saltore-----
- LanguageRegistry.addName(saltore, "Salt ore");
- GameRegistry.registerBlock(saltore, "Salt ore");
- //SaltBlock-----
- LanguageRegistry.addName(saltblock, "Salt block");
- GameRegistry.registerBlock(saltblock, "Salt block");
- //RawPizza-----
- LanguageRegistry.addName(rawpizza, "Raw pizza");
- //Pizza--------
- LanguageRegistry.addName(pizza, "Pizza");
- GameRegistry.registerBlock(pizza, "Pizza");
- GameRegistry.addSmelting(FoodPlus.rawpizza.itemID, new ItemStack(FoodPlus.pizzaitem), 0.1f);
- //PizzaSlice-----
- LanguageRegistry.addName(pizzaslice, "Pizza Slice");
- //PartyBlock-----
- GameRegistry.registerBlock(partyblock, "Partyblock");
- LanguageRegistry.addName(partyblock, "Partyblock");
- //Tomato-------
- LanguageRegistry.addName(tomato, "Tomato");
- //BeefPie----
- GameRegistry.registerBlock(beefpie, "Beef pie");
- LanguageRegistry.addName(beefpie, "Beef pie");
- //Cheese-----
- LanguageRegistry.addName(cheese, "Cheese");
- //Strawberry-----
- LanguageRegistry.addName(strawberry, "Strawberry");
- //Strawberry milkshake------
- LanguageRegistry.addName(strawberrymilkshake, "Strawberry milkshake");
- //Cheesepasta-------
- LanguageRegistry.addName(cheesepasta, "Cheese pasta");
- //Crisps----------
- LanguageRegistry.addName(crisps, "Crisps");
- //Fried egg-------
- LanguageRegistry.addName(friedegg, "Fried egg");
- GameRegistry.addSmelting(Item.egg.itemID, new ItemStack(FoodPlus.friedegg), 0.1f);
- //Flour--------
- LanguageRegistry.addName(flour, "Flour");
- //Donut base-------
- LanguageRegistry.addName(donutbase, "Donut");
- //Chocolate donut-----
- LanguageRegistry.addName(chocolatedonut, "Chocolate donut");
- //Strawberry donut-----
- LanguageRegistry.addName(strawberrydonut, "Strawberry donut");
- //Tomatocrop------
- LanguageRegistry.addName(tomatocrop, "Tomato crop");
- GameRegistry.registerBlock(tomatocrop, "Tomato crop");
- //Strawberrycrop----
- LanguageRegistry.addName(strawberrycrop, "Strawberry crop");
- GameRegistry.registerBlock(strawberrycrop, "Strawberry crop");
- //Tomatoseed------
- LanguageRegistry.addName(tomatoseed, "Tomato seeds");
- //Starwberryseed-----
- LanguageRegistry.addName(strawberryseed, "Strawberry seeds");
- //Worktop-------
- GameRegistry.registerBlock(worktop, "Worktop");
- LanguageRegistry.addName(worktop, "Worktop");
- GameRegistry.addRecipe(new ItemStack(FoodPlus.worktop), "PKP","PCP","PPP", Character.valueOf('P'), Block.cobblestone, Character.valueOf('C'), Block.workbench, Character.valueOf('K'), FoodPlus.knife);
- //Knife-----------
- LanguageRegistry.addName(knife, "Knife");
- GameRegistry.addRecipe(new ItemStack(FoodPlus.knife), "Z "," Z "," Y", Character.valueOf('Z'), Item.ingotIron, Character.valueOf('Y'), Item.stick);
- //Strawberry jam-----
- LanguageRegistry.addName(strawberryjam, "Strawberry jam");
- //Waffle---------
- LanguageRegistry.addName(waffle, "Waffle");
- //Kebab
- LanguageRegistry.addName(kebab, "Kebab");
- //Fishandchips
- LanguageRegistry.addName(fishandchips, "Fish and chips");
- //Candypickaxe
- LanguageRegistry.addName(candypickaxe, "Candy Pickaxe");
- //Candyaxe
- LanguageRegistry.addName(candyaxe, "Candy Axe");
- //Candyhoe
- LanguageRegistry.addName(candyhoe, "Candy Hoe");
- //Candysword
- LanguageRegistry.addName(candysword, "Candy Sword");
- //Candyspade
- LanguageRegistry.addName(candyspade, "Candy Spade");
- //Pie item
- LanguageRegistry.addName(beefpieitem, "Beef pie");
- //Chocolatecake item
- LanguageRegistry.addName(chocolatecakeitem, "Chocolate cake");
- //Pizza item
- LanguageRegistry.addName(pizzaitem, "Pizza");
- //Glass
- LanguageRegistry.addName(glass, "Glass");
- //Applejuice
- LanguageRegistry.addName(applejuice, "Apple Juice");
- //Riceseed
- LanguageRegistry.addName(riceseed, "Rice");
- //Rice
- LanguageRegistry.addName(rice, "Rice");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement