Jump to content

errors starting my mod


x7airworker

Recommended Posts

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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 ?

 

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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