Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Blue Cake
- blockbluecake = new Blockbluecake(Material.cake).setBlockName("blockbluecake").setBlockTextureName("foodmod:blockbluecake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockbluecake, blockbluecake.getUnlocalizedName().substring(5));
- System.out.println(blockbluecake.getUnlocalizedName().substring(5));
- //Chocolate Cake
- blockchocolatecake = new Blockchocolatecake(Material.cake).setBlockName("blockchocolatecake").setBlockTextureName("foodmod:blockchocolatecake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockchocolatecake, blockchocolatecake.getUnlocalizedName().substring(5));
- System.out.println(blockchocolatecake.getUnlocalizedName().substring(5));
- //Gold Cake
- blockgoldcake = new Blockgoldcake(Material.cake).setBlockName("blockgoldcake").setBlockTextureName("foodmod:blockgoldcake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockgoldcake, blockgoldcake.getUnlocalizedName().substring(5));
- System.out.println(blockgoldcake.getUnlocalizedName().substring(5));
- //Gold Cake
- blockmagentacake = new Blockmagentacake(Material.cake).setBlockName("blockmagentacake").setBlockTextureName("foodmod:blockmagentacake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockmagentacake, blockmagentacake.getUnlocalizedName().substring(5));
- System.out.println(blockmagentacake.getUnlocalizedName().substring(5));
- //Black Cake
- blockblackcake = new Blockblackcake(Material.cake).setBlockName("blockblackcake").setBlockTextureName("foodmod:blockblackcake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockblackcake, blockblackcake.getUnlocalizedName().substring(5));
- System.out.println(blockblackcake.getUnlocalizedName().substring(5));
- //Posion Cake
- blockposioncake = new Blockposioncake(Material.cake).setBlockName("blockposioncake").setBlockTextureName("foodmod:blockposioncake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockposioncake, blockposioncake.getUnlocalizedName().substring(5));
- System.out.println(blockposioncake.getUnlocalizedName().substring(5));
- //Creeper Cake Blue
- blockcreepercakeblue = new Blockcreepercakeblue(Material.cake).setBlockName("blockcreepercakeblue").setBlockTextureName("foodmod:blockcreepercakeblue").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcreepercakeblue, blockcreepercakeblue.getUnlocalizedName().substring(5));
- System.out.println(blockcreepercakeblue.getUnlocalizedName().substring(5));
- //Creeper Cake Green
- blockcreepercakegreen = new Blockcreepercakegreen(Material.cake).setBlockName("blockcreepercakegreen").setBlockTextureName("foodmod:blockcreepercakegreen").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcreepercakegreen, blockcreepercakegreen.getUnlocalizedName().substring(5));
- System.out.println(blockcreepercakegreen.getUnlocalizedName().substring(5));
- //Red Velvet Cake
- blockredvelvetcake = new Blockredvelvetcake(Material.cake).setBlockName("blockredvelvetcake").setBlockTextureName("foodmod:blockredvelvetcake").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockredvelvetcake, blockredvelvetcake.getUnlocalizedName().substring(5));
- System.out.println(blockredvelvetcake.getUnlocalizedName().substring(5));
- //DeepDishPizza (CakeBlock)
- blockdeepdishpizza = new Blockdeepdishpizza(Material.cake).setBlockName("blockdeepdishpizza").setBlockTextureName("foodmod:blockdeepdishpizza").setHardness(0.5F).setStepSound(Block.soundTypeCloth).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockdeepdishpizza, blockdeepdishpizza.getUnlocalizedName().substring(5));
- System.out.println(blockdeepdishpizza.getUnlocalizedName().substring(5));
- //Blocks
- //Stove
- blockstove = new Blockstove(Material.anvil).setBlockName("blockstove").setBlockTextureName("foodmod:blockstove").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockstove, blockstove.getUnlocalizedName().substring(5));
- System.out.println(blockstove.getUnlocalizedName().substring(5));
- //Microwave
- blockmicrowave = new Blockmicrowave(Material.iron).setBlockName("blockmicrowave").setBlockTextureName("foodmod:blockmicrowave").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockmicrowave, blockmicrowave.getUnlocalizedName().substring(5));
- System.out.println(blockmicrowave.getUnlocalizedName().substring(5));
- //Fridge
- //Sugar Ore
- blocksugarore = new Blocksugarore(Material.ground).setBlockName("blocksugarore").setBlockTextureName("foodmod:blocksugarore").setHardness(3F).setStepSound(Block.soundTypeStone).setCreativeTab(FoodMod);
- setHarvestLevel("pickaxe",1);
- GameRegistry.registerBlock(blocksugarore, blocksugarore.getUnlocalizedName().substring(5));
- System.out.println(blocksugarore.getUnlocalizedName().substring(5));
- //Sugar Bricks
- blocksugarbricks = new Blocksugarbricks(Material.ground).setBlockName("blocksugarbricks").setBlockTextureName("foodmod:blocksugarbricks").setHardness(3F).setStepSound(Block.soundTypeStone).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blocksugarbricks, blocksugarbricks.getUnlocalizedName().substring(5));
- setHarvestLevel("pickaxe",1);
- System.out.println(blocksugarbricks.getUnlocalizedName().substring(5));
- //Sugar Block
- blocksugar = new Blocksugar(Material.ground).setBlockName("blocksugar").setBlockTextureName("foodmod:blocksugar").setHardness(3F).setStepSound(Block.soundTypeStone).setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blocksugar, blocksugar.getUnlocalizedName().substring(5));
- setHarvestLevel("pickaxe",1);
- System.out.println(blocksugar.getUnlocalizedName().substring(5));
- //Food TNT
- blockfoodtnt = new Blockfoodtnt(Material.ground).setStepSound(Block.soundTypeGravel).setBlockName("blockfoodtnt").setBlockTextureName("foodmod:blockfoodtnt").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockfoodtnt, blockfoodtnt.getUnlocalizedName().substring(5));
- System.out.println(blockfoodtnt.getUnlocalizedName().substring(5));
- //Light Block
- blocklight = new Blocklight(Material.ground).setBlockName("blocklight").setBlockTextureName("foodmod:blocklight").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blocklight, blocklight.getUnlocalizedName().substring(5));
- System.out.println(blocklight.getUnlocalizedName().substring(5));
- //Test Portal
- blocktestportal = new Blocktestportal(Material.portal).setBlockName("blocktestportal").setBlockTextureName("foodmod:blocktestportal");
- GameRegistry.registerBlock(blocktestportal, blocktestportal.getUnlocalizedName().substring(5));
- System.out.println(blocktestportal.getUnlocalizedName().substring(5));
- //Peppermint Log
- blockpeppermintlog = new Blockpeppermintlog(Material.wood).setBlockName("blockpeppermintlog").setBlockTextureName("foodmod:blockpeppermintlog").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockpeppermintlog, blockpeppermintlog.getUnlocalizedName().substring(5));
- System.out.println(blockpeppermintlog.getUnlocalizedName().substring(5));
- //Cherry leaves
- Cherryleaves = new Cherryleaves(Material.leaves).setBlockName("Cherryleaves").setHardness(0.2F).setStepSound(Block.soundTypeGrass).setBlockTextureName("foodmod:leaves_cherry").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(Cherryleaves, Cherryleaves.getUnlocalizedName().substring(5));
- System.out.println(Cherryleaves.getUnlocalizedName().substring(5));
- //jtrent238 Head
- jtrent238skull = new jtrent238skull(Material.ground).setBlockName("jtrent238skull").setBlockTextureName("foodmod:jtrent238skull").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(jtrent238skull, jtrent238skull.getUnlocalizedName().substring(5));
- System.out.println(jtrent238skull.getUnlocalizedName().substring(5));
- //Oven
- BlockOven = new BlockOven(Material.anvil).setBlockName("BlockOven").setBlockTextureName("foodmod:BlockOven").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(BlockOven, BlockOven.getUnlocalizedName().substring(5));
- System.out.println(BlockOven.getUnlocalizedName().substring(5));
- //Cherry Workbench
- blockcherryworkbench = new Blockcherryworkbench(Material.wood).setBlockName("blockcherryworkbench").setHardness(2.5F).setStepSound(Block.soundTypeWood).setBlockTextureName("foodmod:cherryworkbench").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcherryworkbench, blockcherryworkbench.getUnlocalizedName().substring(5));
- System.out.println(blockcherryworkbench.getUnlocalizedName().substring(5));
- //Cherry Planks
- blockcherryplanks = new Blockcherryplanks(Material.wood).setBlockName("blockcherryplanks").setHardness(2F).setStepSound(Block.soundTypeWood).setBlockTextureName("foodmod:blockcherryplanks").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcherryplanks, blockcherryplanks.getUnlocalizedName().substring(5));
- System.out.println(blockcherryplanks.getUnlocalizedName().substring(5));
- //Candy Stone
- blockcandystone = new Blockcandystone(Material.ground).setBlockName("blockcandystone").setHardness(1.5F).setStepSound(Block.soundTypeStone).setBlockTextureName("foodmod:blockcandystone").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcandystone, blockcandystone.getUnlocalizedName().substring(5));
- System.out.println(blockcandystone.getUnlocalizedName().substring(5));
- //Candy Dirt
- blockcandydirt = new blockcandydirt(Material.grass).setBlockName("blockcandydirt").setHardness(0.5F).setStepSound(Block.soundTypeGravel).setBlockTextureName("foodmod:blockcandydirt").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcandydirt, blockcandydirt.getUnlocalizedName().substring(5));
- System.out.println(blockcandydirt.getUnlocalizedName().substring(5));
- //Candy Grass
- blockcandygrass = new blockcandygrass(Material.grass).setBlockName("blockcandygrass").setHardness(0.6F).setStepSound(Block.soundTypeGrass).setBlockTextureName("foodmod:blockcandygrass").setCreativeTab(FoodMod);
- GameRegistry.registerBlock(blockcandygrass, blockcandygrass.getUnlocalizedName().substring(5));
- System.out.println(blockcandygrass.getUnlocalizedName().substring(5));
- //Candy Portal
- // blockcandyportal = new Blockcandyportal(Material.portal).setBlockName("blockcandyportal").setHardness(100F).setBlockTextureName("foodmod:blockcandyportal").setCreativeTab(FoodMod);
- // GameRegistry.registerBlock(blockcandyportal, blockcandyportal.getUnlocalizedName().substring(5));
- // System.out.println(blockcandyportal.getUnlocalizedName().substring(5));
Advertisement
Add Comment
Please, Sign In to add comment