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.

tyrael142

Members
  • Joined

  • Last visited

  1. If that's true then i'll just make them for my mod right now. Only reason i ask is because if i use the same Manager to make a shaped recipe, i can use other mod's ingots/ores in my recipes because of the Ore Dictionary. Maybe it doesn't work with shapeless. Thanks for saving me for racking my brains for a few more hours EDIT: Nvm I figured it out. I needed to add the new Itemstack and remove the boolean. Works like a charm
  2. I'm really new to coding but you might try changing TriShardOre = (new Blocks(1000, 0, Material.rock)).setHardness(20.0F).setResistance(20.0F).setBlockName("Tri-Shard Ore"); AzurineOre = (new Blocks(1001, 3, Material.rock)).setHardness(5.0F).setResistance(20.0F).setBlockName("Azurine Ore"); AquanineOre = (new Blocks(1002, 2, Material.rock)).setHardness(5.0F).setResistance(20.0F).setBlockName("Aquanine Ore"); CrimsonineOre = (new Blocks(1003, 1, Material.rock)).setHardness(5.0F).setResistance(20.0F).setBlockName("Crimsonine Ore"); to TriShardOre = new Blocks(1000, 0, Material.rock).setHardness(20.0F).setResistance(20.0F).setBlockName("Tri-Shard Ore"); AzurineOre = new Blocks(1001, 3, Material.rock).setHardness(5.0F).setResistance(20.0F).setBlockName("Azurine Ore"); AquanineOre = new Blocks(1002, 2, Material.rock).setHardness(5.0F).setResistance(20.0F).setBlockName("Aquanine Ore"); CrimsonineOre = new Blocks(1003, 1, Material.rock).setHardness(5.0F).setResistance(20.0F).setBlockName("Crimsonine Ore"); and also try changing the GameRegistry.registerBlock(); to this GameRegistry.registerBlock(TriShardOre); GameRegistry.registerBlock(AzurineOre); GameRegistry.registerBlock(AquanineOre); GameRegistry.registerBlock(CrimsonineOre); this might also affect it private void generateSurface(World world, Random random, int BlockX, int BlockZ) int Xcoord = BlockX + random.nextInt(16); int Zcoord = BlockZ + random.nextInt(16); int Ycoord = random.nextInt(60) private void generateNether(World world, Random random, int i, int j) to private void generateSurface(World world, Random random, int chunkX, int chunkZ) int Xcoord = chunkX + random.nextInt(16); int Zcoord = chunkZ + random.nextInt(16); int Ycoord = random.nextInt(60) private void generateNether(World world, Random random, int chunkX, int chunkZ) reason i say this is because earlier when you did your switch/cases you predefined the parameters as chunkX, chunkZ and tried to change them to BlockX, BlockZ, i, and j which would cause an error. you might also want to go ahead and add case 1: to the switch for the End otherwise all of the custom ore will generate in the End aswell
  3. I'm really new to coding. Just started 2 days ago and ran across something that i can't figure out. I did a search on the forums and there are many about using GameRegistry.addShapelessRecipe but what i am looking it is the ability to use ingots/ores from other mods from the Ore Dictionary through CraftManager instead. Here is the code snippet that is causing my errors. CraftingManager.getInstance().getRecipeList().add(new ShapelessOreRecipe(TutorialMain.ingotBronze, true, new Object[]{ ingotCopper, ingotCopper, ingotCopper, ingotTin, })); 2013-01-06 22:43:18 [iNFO] [sTDERR] java.lang.RuntimeException: Invalid shapeless ore recipe: true, [Ljava.lang.Object;@2324279c, 1xitem.Bronze Ingot@0 2013-01-06 22:43:18 [iNFO] [sTDERR] at net.minecraftforge.oredict.ShapelessOreRecipe.<init>(ShapelessOreRecipe.java:55) 2013-01-06 22:43:18 [iNFO] [sTDERR] at net.minecraftforge.oredict.ShapelessOreRecipe.<init>(ShapelessOreRecipe.java:24) 2013-01-06 22:43:18 [iNFO] [sTDERR] at tyrael142.tutorial.common.TutorialMain.init(TutorialMain.java:125) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:483) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-01-06 22:43:18 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-01-06 22:43:18 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-01-06 22:43:18 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) 2013-01-06 22:43:18 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:656) 2013-01-06 22:43:18 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207) 2013-01-06 22:43:18 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:456) 2013-01-06 22:43:18 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-01-06 22:43:18 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744) 2013-01-06 22:43:18 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-01-06 22:43:39 [iNFO] [sTDERR] Someone is closing me! i've tried adding TutorialMain (whether it would help or not i have no clue) and still received the exact same error so at this point i'm lost and in need of some help

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.