Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CraigTheMailman

Members
  • Joined

  • Last visited

Everything posted by CraigTheMailman

  1. Still nothing, it's like the code isn't called, no output from the consle... new code:
  2. Uhh i am using two items, using the same concept as a furnace, replacing the items instead of a block, and both items use the same class I'm changing my code right now...
  3. I Even tried changing my code up Item Code:
  4. I am trying to make a sigil using an onItemRightClick Method, but when i right click with the item nothing happens, can anyone help me? Main mod class: Item Class:
  5. You know what this topic is for! I have no idea what the name for this team should be! That is up to you! Main Coder is mostly who i decide is really good at coding! We need a : Texturer Assistant Coder modeler(someone good with techne) these will be crosssed out when the job is filled! we're gonna make our first mod soon, so better hurry and apply at: [email protected] no skype name needed! Application: Name: Age: (dosen't matter what age you are, just be good with coding!) experience: your rating on yourself:(what do you call yourself? experienced but not too advanced, or basic??, or advanced, straight out advanced) what you wanna be:(assistant modder, texturer or modeler) email: Hope you guys join fast! Submit your application to the email above! [move][shadow=red,left]Thanks guys in advanced[/shadow][/move]
  6. @larsgerrits dosen't generate one cause it doesn't crash my game
  7. @diesieben07 By freezing I mean the furnace will not open the GUI, then it overloads my memory With java heapspace (Already know what that means)
  8. @diesieben07 then what is my problem with my furnace code, besides missing methods of course cause i'm not finished with it
  9. So I am supposed to put the public static Block block Under a @sideonly? Or am I supposed to Just put the public static Block block Under the preinit?
  10. My custom furnace that i'm making is freezing my game!! when i right click on it it will have major lag! And. don't say i'm missing methods, because i am, i'm not finished with it yet, so don't say i'm missing methods please! I'm experienced with java but not too TOO advanced. Main mod class: Gui Handler: Gui class for block: Block class: Container: Tile Entity:
  11. My custom rendering is going nuts! The block is usually floating around me if i get close to where i actually put it Main: http://pastebin.com/3SywYT6M BlockClass: http://pastebin.com/RKBpfdbF ClientProxy: http://pastebin.com/sNFMUJq7 ModelClass: http://pastebin.com/UAhn3FLv Renderer: http://pastebin.com/Q71NDsGm TileEntity: http://pastebin.com/6jd0j8A1 And yes... I used techne. By the way it keeps saying ########## GL ERROR ########## [18:21:45] [Client thread/ERROR]: @ Post render [18:21:45] [Client thread/ERROR]: 1284: Stack underflow
  12. @diesieben07: GUI HANDLER: Sorry, kinda knew i forgot something...
  13. I Keep getting an error on my block when it is activated MainClass: Block Class: And, of course last, but not least! CRASH REPORT:
  14. My mod keeps crashing! it will say: Crash Report: Code: package com.CraigTheMailman.RandomMC; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.EnumHelper; import com.CraigTheMailman.RandomMC.Gen.ChocoGen; import com.CraigTheMailman.RandomMC.Gen.RainbowGen; import com.CraigTheMailman.RandomMC.armor.ArmorR; import com.CraigTheMailman.RandomMC.blocks.ChocoOre; import com.CraigTheMailman.RandomMC.blocks.RainbowBlk; import com.CraigTheMailman.RandomMC.blocks.RainbowOre; import com.CraigTheMailman.RandomMC.food.FoodChocolate; import com.CraigTheMailman.RandomMC.items.Ash; import com.CraigTheMailman.RandomMC.items.ChocoBoStaff; import com.CraigTheMailman.RandomMC.items.FireCrystal; import com.CraigTheMailman.RandomMC.items.FlameEmitter; import com.CraigTheMailman.RandomMC.items.GoldenDiamondHammer; import com.CraigTheMailman.RandomMC.items.GoldenDiamondIngot; import com.CraigTheMailman.RandomMC.items.Infuser; import com.CraigTheMailman.RandomMC.items.RainbowAxe; import com.CraigTheMailman.RandomMC.items.RainbowDye; import com.CraigTheMailman.RandomMC.items.RainbowHoe; import com.CraigTheMailman.RandomMC.items.RainbowIngot; import com.CraigTheMailman.RandomMC.items.RainbowPick; import com.CraigTheMailman.RandomMC.items.RainbowShovel; import com.CraigTheMailman.RandomMC.items.RainbowSword; import com.CraigTheMailman.RandomMC.items.SpellBk1; import com.CraigTheMailman.RandomMC.items.Unstable1; import com.CraigTheMailman.RandomMC.items.Unstable3; import com.CraigTheMailman.RandomMC.items.UnstableDiamond; import com.CraigTheMailman.RandomMC.lib.ProxyCommon; import com.CraigTheMailman.RandomMC.lib.Refrences; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = Refrences.ModID, version = Refrences.Version) public class RandomMC { @SidedProxy(clientSide = Refrences.Client, serverSide = Refrences.Common) public static ProxyCommon Proxy; public static int helm; public static int chest; public static int legs; public static int boots; //Tools public static ToolMaterial Rainbow = EnumHelper.addToolMaterial("Rainbow", 3, 10000, 23.0F, 6.0F, 20); public static ToolMaterial ChocoBostaff = EnumHelper.addToolMaterial("Chocolate", 0, 10000, 23.0F, 30.0F, 100); public static ToolMaterial GoldenDiamond = EnumHelper.addToolMaterial("Golden Diamond", 0, 100000, 23.0F, 50.0F, 1000); //Armor public static ArmorMaterial RainbowArmor = EnumHelper.addArmorMaterial("Rainbow", 10000, new int[] {6, 24, 12, 4}, 24); //Items public static Item FlameEmitter = new FlameEmitter(100006).setCreativeTab(RandomMC.tabRandom); public static Item Ash = new Ash(100005).setCreativeTab(RandomMC.tabRandom); public static Item FireCrystal = new FireCrystal(100004).setCreativeTab(RandomMC.tabRandom); public static Item SpellBk1 = new SpellBk1(100003).setCreativeTab(RandomMC.tabRandom); public static Item RainbowIngot = new RainbowIngot(100002).setCreativeTab(RandomMC.tabRandom); public static Item RainbowDye = new RainbowDye(100001).setCreativeTab(RandomMC.tabRandom); public static Item RainbowPick = new RainbowPick(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowSword = new RainbowSword(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowShovel = new RainbowShovel(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowAxe = new RainbowAxe(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowHoe = new RainbowHoe(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item ChocoBoStaff = new ChocoBoStaff(ChocoBostaff).setCreativeTab(RandomMC.tabRandom); public static Item RainbowHelmet = new ArmorR(RainbowArmor, helm, 0, 0).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowHelm"); public static Item RainbowChest = new ArmorR(RainbowArmor, chest, 0, 1).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowChest"); public static Item RainbowLegs = new ArmorR(RainbowArmor, legs, 0, 2).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowLegs"); public static Item RainbowBoots = new ArmorR(RainbowArmor, boots, 0, 3).setCreativeTab(RandomMC.tabRandom).setTextureName("RandomMC:RainbowBoots"); public static Item GoldenDiamondHammer = new GoldenDiamondHammer(GoldenDiamond).setCreativeTab(RandomMC.tabRandom); public static Item UnstableGoldenIngot = new Unstable1(100012).setCreativeTab(RandomMC.tabRandom); public static Item Infuser1 = new Infuser(100013).setCreativeTab(RandomMC.tabRandom); public static Item UnstableDiamond = new UnstableDiamond(100014).setCreativeTab(RandomMC.tabRandom); public static Item InfusedGoldDiamond1 = new Unstable3(100015).setCreativeTab(RandomMC.tabRandom); public static Item GoldenDiamondIngot = new GoldenDiamondIngot(100011).setCreativeTab(RandomMC.tabRandom); //Generation public static RainbowGen RainbowGen = new RainbowGen(); public static ChocoGen ChocoGen = new ChocoGen(); //Blocks public static final Block RainbowOre = new RainbowOre(Material.rock); public static final Block ChocoOre = new ChocoOre(Material.rock); public static final Block RainbowBlk = new RainbowBlk(Material.rock); public static CreativeTabs tabRandom = new tabRandom(CreativeTabs.getNextID(), "RandomMC"); //Food public static Item Chocolate = new FoodChocolate(100000, 4, true).setCreativeTab(RandomMC.tabRandom); @EventHandler public void init(FMLInitializationEvent event) { } @EventHandler public void load(FMLInitializationEvent event) { //Crafting GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.paper}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.book}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.planks}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_hoe}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_pickaxe}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_sword}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_shovel}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_axe}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.log}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.log2}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.chest}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.crafting_table}); GameRegistry.addShapedRecipe(new ItemStack(this.FireCrystal, 1), new Object[] { "XXX", "YYY", "YAY", 'X', Blocks.glass, 'Y', Items.ghast_tear, 'A', this.Ash}); GameRegistry.addShapedRecipe(new ItemStack(FlameEmitter, 1), new Object[] { "X A", " XY", " YY", 'X', Blocks.iron_block, 'A', this.FireCrystal, 'Y', Items.iron_ingot}); GameRegistry.addShapedRecipe(new ItemStack(this.SpellBk1, 1), new Object[] { "XYX", "YJY", "XYX", 'X', Blocks.tnt, 'Y', Blocks.redstone_torch, 'J', Items.book}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowDye, 1), new Object[] { "XXX", "XXX", "XXX", 'X', Items.dye}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowIngot, 1), new Object[] { "XXX", "XYX", "XXX", 'X', this.RainbowDye, 'Y', Items.iron_ingot}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.bookshelf}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowPick, 1), new Object[] { "XXX", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowSword, 1), new Object[] { " X ", " X ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowShovel, 1), new Object[] { " X ", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowAxe, 1), new Object[] { "XX ", "XY ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowAxe, 1), new Object[] { " XX", " YX", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHoe, 1), new Object[] { " XX", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHoe, 1), new Object[] { "XX ", " Y ", " Y ", 'X', this.RainbowIngot, 'Y', Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.ChocoBoStaff, 1), new Object[] { "X ", " X ", " X", 'X', this.Chocolate}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowBlk, 1), new Object[] { "XXX", "XXX", "XXX", 'X', this.RainbowIngot}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHelmet, 1), new Object[] { "XXX", "X X", " ", 'X', this.RainbowIngot}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowChest, 1), new Object[] { "X X", "XXX", "XXX", 'X', this.RainbowIngot}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowLegs, 1), new Object[] { "XXX", "X X", "X X", 'X', this.RainbowIngot}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowBoots, 1), new Object[] { "X X", "X X", " ", 'X', this.RainbowIngot}); GameRegistry.addShapedRecipe(new ItemStack(InfusedGoldDiamond1, 1), new Object[] { UnstableDiamond, UnstableGoldenIngot}); GameRegistry.addShapedRecipe(new ItemStack(this.UnstableDiamond, 1), new Object[] { Items.diamond, Infuser1, Items.lava_bucket}); GameRegistry.addShapedRecipe(new ItemStack(this.UnstableGoldenIngot, 1), new Object[] { Items.gold_ingot, Infuser1, Items.lava_bucket}); GameRegistry.addShapedRecipe(new ItemStack(this.GoldenDiamondHammer, 1), new Object[] { "XXX", "XYX", " Y ", 'X', GoldenDiamondIngot, 'Y', Items.stick}); //Smelting GameRegistry.addSmelting(InfusedGoldDiamond1, new ItemStack(GoldenDiamondIngot, 1), 0.3F); Proxy.registerRenderInformation(); GameRegistry.registerBlock(RainbowOre, "RO"); GameRegistry.registerBlock(ChocoOre, "CO"); GameRegistry.registerBlock(RainbowBlk, "RB"); LanguageRegistry.addName(RainbowOre, "Rainbow Ore"); LanguageRegistry.addName(ChocoOre, "Chocolate Ore"); LanguageRegistry.addName(RainbowBlk, "Rainbow Block"); this.FlameEmitter.setCreativeTab(this.tabRandom); this.FireCrystal.setCreativeTab(this.tabRandom); this.Ash.setCreativeTab(this.tabRandom); this.SpellBk1.setCreativeTab(this.tabRandom); this.RainbowIngot.setCreativeTab(this.tabRandom); this.RainbowOre.setCreativeTab(this.tabRandom); this.RainbowDye.setCreativeTab(this.tabRandom); this.Chocolate.setCreativeTab(this.tabRandom); this.ChocoOre.setCreativeTab(this.tabRandom); this.RainbowPick.setCreativeTab(this.tabRandom); this.RainbowSword.setCreativeTab(this.tabRandom); this.RainbowShovel.setCreativeTab(this.tabRandom); this.RainbowAxe.setCreativeTab(this.tabRandom); this.RainbowHoe.setCreativeTab(this.tabRandom); this.ChocoBoStaff.setCreativeTab(this.tabRandom); this.RainbowHelmet.setCreativeTab(tabRandom); this.RainbowChest.setCreativeTab(tabRandom); this.RainbowLegs.setCreativeTab(tabRandom); this.RainbowBoots.setCreativeTab(tabRandom); this.GoldenDiamondHammer.setCreativeTab(tabRandom); this.InfusedGoldDiamond1.setCreativeTab(tabRandom); this.Infuser1.setCreativeTab(tabRandom); this.UnstableDiamond.setCreativeTab(tabRandom); this.UnstableGoldenIngot.setCreativeTab(tabRandom); this.GoldenDiamondIngot.setCreativeTab(tabRandom); } public RandomMC(){ //GameRegistry GameRegistry.registerItem(InfusedGoldDiamond1, "IGD"); GameRegistry.registerItem(Infuser1, "I"); GameRegistry.registerItem(GoldenDiamondIngot, "GDH2"); GameRegistry.registerItem(UnstableDiamond, "UD"); GameRegistry.registerItem(UnstableGoldenIngot, "UGI"); GameRegistry.registerItem(GoldenDiamondHammer, "GDH"); GameRegistry.registerItem(FlameEmitter, "FE"); GameRegistry.registerItem(Ash, "A"); GameRegistry.registerItem(FireCrystal, "FC"); GameRegistry.registerItem(SpellBk1, "SB1"); GameRegistry.registerItem(RainbowIngot, "RI"); GameRegistry.registerItem(RainbowDye, "RD"); GameRegistry.registerItem(Chocolate, "Fc2"); GameRegistry.registerItem(RainbowPick, "RP"); GameRegistry.registerItem(RainbowSword, "RS"); GameRegistry.registerItem(RainbowShovel, "Rs2"); GameRegistry.registerItem(RainbowAxe, "RA"); GameRegistry.registerItem(RainbowHoe, "RH"); GameRegistry.registerItem(ChocoBoStaff, "CBS"); GameRegistry.registerItem(RainbowHelmet, "RainbowHelmet"); GameRegistry.registerItem(RainbowChest, "RainbowChest"); GameRegistry.registerItem(RainbowLegs, "RainbowLegs"); GameRegistry.registerItem(RainbowBoots, "RainbowBoots"); //Registry WorldGen GameRegistry.registerWorldGenerator(RainbowGen, 16); GameRegistry.registerWorldGenerator(ChocoGen, 16); //LanguageRegistry LanguageRegistry.addName(FlameEmitter, "Flame Emitter"); LanguageRegistry.addName(Ash, "Ash"); LanguageRegistry.addName(FireCrystal, "Fire Crystal"); LanguageRegistry.addName(SpellBk1, "Spell Book of the Grenadier"); LanguageRegistry.addName(RainbowIngot, "Rainbow Ingot"); LanguageRegistry.addName(RainbowDye, "RainbowDye"); LanguageRegistry.addName(Chocolate, "Chocolate"); LanguageRegistry.addName(RainbowPick, "Rainbow Pickaxe"); LanguageRegistry.addName(RainbowSword, "Rainbow Sword"); LanguageRegistry.addName(RainbowShovel, "Rainbow Shovel"); LanguageRegistry.addName(RainbowAxe, "Rainbow Axe"); LanguageRegistry.addName(RainbowHoe, "Rainbow Hoe"); LanguageRegistry.addName(ChocoBoStaff, "Chocolate Bo Staff"); LanguageRegistry.addName(RainbowHelmet, "Rainbow Helmet"); LanguageRegistry.addName(RainbowChest, "Rainbow Chestplate"); LanguageRegistry.addName(RainbowLegs, "Rainbow Leggings"); LanguageRegistry.addName(RainbowBoots, "Rainbow Boots"); LanguageRegistry.addName(InfusedGoldDiamond1, "Infused Unstable Gold & Diamond"); LanguageRegistry.addName(Infuser1, "Infuser"); LanguageRegistry.addName(GoldenDiamondIngot, "Golden Diamond Ingot"); LanguageRegistry.addName(UnstableDiamond, "Unstable Diamond"); LanguageRegistry.addName(UnstableGoldenIngot, "Unstable Golden Ingot"); LanguageRegistry.addName(GoldenDiamondHammer, "Golden Diamond Hammer"); } } Class that can't be casted to java.lang.character: package com.CraigTheMailman.RandomMC.items; import net.minecraft.item.Item; public class UnstableDiamond extends Item { public UnstableDiamond(int i) { this.setTextureName("RandomMC:UD"); this.setUnlocalizedName("UD"); this.setMaxStackSize(1); } } Help! [move]Please? [/move]
  15. I'm make a minecraft mod that adds in random stuff, but it keeps crashing! Crash log: Code: package com.CraigTheMailman.RandomMC; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.EnumHelper; import com.CraigTheMailman.RandomMC.Gen.ChocoGen; import com.CraigTheMailman.RandomMC.Gen.RainbowGen; import com.CraigTheMailman.RandomMC.blocks.ChocoOre; import com.CraigTheMailman.RandomMC.blocks.RainbowOre; import com.CraigTheMailman.RandomMC.food.FoodChocolate; import com.CraigTheMailman.RandomMC.items.Ash; import com.CraigTheMailman.RandomMC.items.FireCrystal; import com.CraigTheMailman.RandomMC.items.FlameEmitter; import com.CraigTheMailman.RandomMC.items.RainbowAxe; import com.CraigTheMailman.RandomMC.items.RainbowDye; import com.CraigTheMailman.RandomMC.items.RainbowIngot; import com.CraigTheMailman.RandomMC.items.RainbowPick; import com.CraigTheMailman.RandomMC.items.RainbowShovel; import com.CraigTheMailman.RandomMC.items.RainbowSword; import com.CraigTheMailman.RandomMC.items.SpellBk1; import com.CraigTheMailman.RandomMC.lib.ProxyCommon; import com.CraigTheMailman.RandomMC.lib.Refrences; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = Refrences.ModID, version = Refrences.Version) public class RandomMC { @SidedProxy(clientSide = Refrences.Client, serverSide = Refrences.Common) public static ProxyCommon Proxy; //Tools public static ToolMaterial Rainbow = EnumHelper.addToolMaterial("Rainbow", 3, 10000, 23.0F, 6.0F, 20); //Armor //Items public static Item FlameEmitter = new FlameEmitter(100006).setCreativeTab(RandomMC.tabRandom); public static Item Ash = new Ash(100005).setCreativeTab(RandomMC.tabRandom); public static Item FireCrystal = new FireCrystal(100004).setCreativeTab(RandomMC.tabRandom); public static Item SpellBk1 = new SpellBk1(100003).setCreativeTab(RandomMC.tabRandom); public static Item RainbowIngot = new RainbowIngot(100002).setCreativeTab(RandomMC.tabRandom); public static Item RainbowDye = new RainbowDye(100001).setCreativeTab(RandomMC.tabRandom); public static Item RainbowPick = new RainbowPick(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowSword = new RainbowSword(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowShovel = new RainbowShovel(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowAxe = new RainbowAxe(Rainbow).setCreativeTab(RandomMC.tabRandom); public static Item RainbowHoe = new RainbowHoe(Rainbow).setCreativeTab(RandomMC.tabRandom); //Generation public static RainbowGen RainbowGen = new RainbowGen(); public static ChocoGen ChocoGen = new ChocoGen(); //Blocks public static final Block RainbowOre = new RainbowOre(Material.rock); public static final Block ChocoOre = new ChocoOre(Material.rock); public static CreativeTabs tabRandom = new tabRandom(CreativeTabs.getNextID(), "RandomMC"); //Food public static Item Chocolate = new FoodChocolate(100000, 4, true).setCreativeTab(RandomMC.tabRandom); @EventHandler public void init(FMLInitializationEvent event) { //Crafting GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.paper}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.book}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.planks}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_hoe}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_pickaxe}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_sword}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_shovel}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Items.wooden_axe}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.log}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.log2}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.chest}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.crafting_table}); GameRegistry.addShapedRecipe(new ItemStack(this.FireCrystal, 1), new Object[] { "XXX", "YYY", "YAY", 'X', Blocks.glass, 'Y', Items.ghast_tear, 'A', this.Ash}); GameRegistry.addShapedRecipe(new ItemStack(FlameEmitter, 1), new Object[] { "X A", " XY", " YY", 'X', Blocks.iron_block, 'A', this.FireCrystal, 'Y', Items.iron_ingot}); GameRegistry.addShapedRecipe(new ItemStack(this.SpellBk1, 1), new Object[] { "XYX", "YJY", "XYX", 'X', Blocks.tnt, 'Y', Blocks.redstone_torch, 'J', Items.book}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowDye, 1), new Object[] { "XXX", "XXX", "XXX", 'X', Items.dye}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowIngot, 1), new Object[] { "XXX", "XYX", "XXX", 'X', this.RainbowDye, 'Y', Items.iron_ingot}); GameRegistry.addShapelessRecipe(new ItemStack(this.Ash, 1), new Object[] { Items.flint_and_steel, Blocks.bookshelf}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowPick, 1), new Object[] { "XXX", " Y ", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowSword, 1), new Object[] { " X ", " X ", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowShovel, 1), new Object[] { " X ", " Y ", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowAxe, 1), new Object[] { "XX ", "XY ", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowAxe, 1), new Object[] { " XX", " YX", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHoe, 1), new Object[] { " XX", " Y ", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); GameRegistry.addShapedRecipe(new ItemStack(this.RainbowHoe, 1), new Object[] { "XX ", " Y ", " Y ", 'X', this.RainbowIngot, "Y", Items.stick}); } @EventHandler public void load(FMLInitializationEvent event) { Proxy.registerRenderInformation(); GameRegistry.registerBlock(RainbowOre, "RO"); GameRegistry.registerBlock(ChocoOre, "CO"); LanguageRegistry.addName(RainbowOre, "Rainbow Ore"); LanguageRegistry.addName(ChocoOre, "Chocolate Ore"); this.FlameEmitter.setCreativeTab(this.tabRandom); this.FireCrystal.setCreativeTab(this.tabRandom); this.Ash.setCreativeTab(this.tabRandom); this.SpellBk1.setCreativeTab(this.tabRandom); this.RainbowIngot.setCreativeTab(this.tabRandom); this.RainbowOre.setCreativeTab(this.tabRandom); this.RainbowDye.setCreativeTab(this.tabRandom); this.Chocolate.setCreativeTab(this.tabRandom); this.ChocoOre.setCreativeTab(this.tabRandom); this.RainbowPick.setCreativeTab(this.tabRandom); this.RainbowSword.setCreativeTab(this.tabRandom); this.RainbowShovel.setCreativeTab(this.tabRandom); this.RainbowAxe.setCreativeTab(this.tabRandom); this.RainbowHoe.setCreativeTab(this.tabRandom); } public RandomMC(){ //GameRegistry GameRegistry.registerItem(FlameEmitter, "FE"); GameRegistry.registerItem(Ash, "A"); GameRegistry.registerItem(FireCrystal, "FC"); GameRegistry.registerItem(SpellBk1, "SB1"); GameRegistry.registerItem(RainbowIngot, "RI"); GameRegistry.registerItem(RainbowDye, "RD"); GameRegistry.registerItem(Chocolate, "Fc2"); GameRegistry.registerItem(RainbowPick, "RP"); GameRegistry.registerItem(RainbowSword, "RS"); GameRegistry.registerItem(RainbowShovel, "Rs2"); GameRegistry.registerItem(RainbowAxe, "RA"); GameRegistry.registerItem(RainbowHoe, "RH"); //Registry WorldGen GameRegistry.registerWorldGenerator(RainbowGen, 16); GameRegistry.registerWorldGenerator(ChocoGen, 16); //LanguageRegistry LanguageRegistry.addName(FlameEmitter, "Flame Emitter"); LanguageRegistry.addName(Ash, "Ash"); LanguageRegistry.addName(FireCrystal, "Fire Crystal"); LanguageRegistry.addName(SpellBk1, "Spell Book of the Grenadier"); LanguageRegistry.addName(RainbowIngot, "Rainbow Ingot"); LanguageRegistry.addName(RainbowDye, "RainbowDye"); LanguageRegistry.addName(Chocolate, "Chocolate"); LanguageRegistry.addName(RainbowPick, "Rainbow Pickaxe"); LanguageRegistry.addName(RainbowSword, "Rainbow Sword"); LanguageRegistry.addName(RainbowShovel, "Rainbow Shovel"); LanguageRegistry.addName(RainbowAxe, "Rainbow Axe"); LanguageRegistry.addName(RainbowHoe, "Rainbow Hoe"); } } I have tried the crafting recipes under the game registry and under the load notation [move]Thanks for helping me create my mod! [/move]

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.