Jump to content

Recommended Posts

Posted

I'm new to modding and I've been following this tutorial: http://www.minecraftforge.net/wiki/Tutorials

 

I've noticed a few of the methods are depricated and it doesn't seem too up to date. I have created a block and an item however overriding the getItemDropped method doesn't seem to work to make the block drop the ore. It just throws an error, does anybody know why this is? And if there is a tutorial on how I could do something like this in 1.9? Thank you!

Posted

If you know your way around Java, only thing Forge requires you to learn is its API.

Block, Items, Tiles, Entities, etc. are ALL of vanilla origin - you can simply look into base classes and decide what you want to override.

 

Tutorials will only show basics of doing so (some of methods) and ways of registering stuff to forge - which can also be easily learned just by looking at e.g GameRegistry class.

 

As to tutorials:

Some concepts: http://mcforge.readthedocs.io/en/latest/

Some examples (1.8, but still mostly valid, 1.9 introduced some new registration API): https://github.com/TheGreyGhost/MinecraftByExample

Google dude - google will give you all the tutorials you need.

1.7.10 is no longer supported by forge, you are on your own.

Posted

It just throws an error, does anybody know why this is?

???

 

Um... How can we to say "why" when you keep the error a secret?

 

Show us the error log (in spoiler tags) and show your entire class that contains the proximate cause.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

Or what Eclipse says when you hover over the underlined red area.

("No method to override, remove override annotation" means that you're not actually overriding the method you think you are, you need to change the method signature to match, not remove the annotation.  The reason Eclipse suggests that is because it doesn't know what the method signature should be, so it makes the only suggestion it can).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

Announcements



×
×
  • Create New...

Important Information

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