Posted March 19, 20178 yr Yesterday I started modding with forge, but I got some errors : http://pastebin.com/p03wTR1C if you need the classes i´ll send you. sry for my bad english, I am german Edited March 19, 20178 yr by x7airworker
March 19, 20178 yr Author Quote Why are you using 1.8? If you must use the 1.8.x versions you should at least use 1.8.9. But really you should develop new mods on 1.11.2. You are trying to register an invalid recipe. Show your code if you want to know the exact problem. Its just for my first mod, I will switch to 1.11 soon, here is the code u need: main: http://pastebin.com/CYgmt11d my Blocks class: http://pastebin.com/1Pb00sFs
March 19, 20178 yr Author 6 minutes ago, diesieben07 said: Especially for your first mod you should work on the latest version. There is no point in starting in an old version. As for your issue, you are passing the integer 4 and an object array as the recipe. You need to pass in just the object array, via varargs. Can I just copy + paste the code into 1.11.2 version ?
March 19, 20178 yr yes the only thing you need to fix is the block register http://mcforge.readthedocs.io/en/latest/concepts/registries/ Edited March 19, 20178 yr by loordgek
March 19, 20178 yr Author Just now, diesieben07 said: Most things are unchanged between 1.8.x and 1.11.2, yes. There are some minor changes, for example ItemStacks can no longer be null. And you don't need to copy-paste, just change the Forge version in your build.gradle. how ? I mean do I just have to copy the new gradlew files ?
March 19, 20178 yr open the build gradle and update version = "1.8-11.14.4.1577" to some thing newer you can find all forge versions here http://files.minecraftforge.net/ mappings = "snapshot_20141130" and update this to 20170319 yyyymmdd
March 19, 20178 yr Author 15 minutes ago, loordgek said: open the build gradle and update version = "1.8-11.14.4.1577" to some thing newer you can find all forge versions here http://files.minecraftforge.net/ mappings = "snapshot_20141130" and update this to 20170319 yyyymmdd C:\Users\papas\Desktop\dev\forge mod 1.8>gradlew IDEA FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\papas\Desktop\dev\forge mod 1.8\build.gradle' line: 32 * What went wrong: A problem occurred evaluating root project 'forge mod 1.8'. > The specified mapping 'snapshot_20170319' does not exist! * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 16.005 secs C:\Users\papas\Desktop\dev\forge mod 1.8>
March 19, 20178 yr Author 35 minutes ago, diesieben07 said: Don't use the idea task. Show your updated build.gradle. why I shouldnt use IDEA for IntelliJ ?
March 20, 20178 yr Author On 19.3.2017 at 4:06 PM, loordgek said: yes the only thing you need to fix is the block register http://mcforge.readthedocs.io/en/latest/concepts/registries/ sry for wasting your time, but can u help me again ? http://pastebin.com/FfLYXHPH I dont know how to fix the recipe thing and the registerBlocks(); thing P.S: It would by great if u edit the code and send it to me thx <3 Edited March 20, 20178 yr by x7airworker
March 20, 20178 yr Quote GameRegistry.addRecipe(new ItemStack(this.mysticlamp), 4, You have the stack size outside the ItemStack constructor instead of inside.
March 20, 20178 yr Author 9 minutes ago, Jay Avery said: You have the stack size outside the ItemStack constructor instead of inside. Is it normal that IntelliJ highlight this yellow ?
March 20, 20178 yr Author 3 minutes ago, Jay Avery said: I don't know what you mean. Highlight what yellow?
March 21, 20178 yr Your mods aren't compatible with Forge Your mods aren't compatible with each other Your mods are for a different version of Minecraft than the Forge you installed Your mods are all made for different versions of Minecraft
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.