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.

Featured Replies

  • 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

  • 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 ?

  • 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 ?

 

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

 

  • 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>

  • Author
35 minutes ago, diesieben07 said:
  • Don't use the idea task.
  • Show your updated build.gradle.

why I shouldnt use IDEA for IntelliJ ?

  • 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 by x7airworker

Quote

 

GameRegistry.addRecipe(new ItemStack(this.mysticlamp), 4,

 

You have the stack size outside the ItemStack constructor instead of inside.

  • 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 ?

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.