Jump to content

Recommended Posts

Posted

Hi

 

I'm new to modding. I've got Eclipse installed (under Ubuntu 12.10) and I've got ForgeGradle loaded but I'm getting errors when I try to extend the EntityCow class. I think the problem is that Forge is running 1.7 but I've only been able to find the MCP source code for 1.6 and I think that's causing all sorts of conflicts. Also I need to figure out how to refactor the entire project so it's out from under Minecraft. But with ForgeGradle I'm finding it hard to see where the Minecraft code is hiding.

 

Here's the latest error code:

 

 

  Reveal hidden contents

 

 

And here's the code as it stands at the moment. (I know it'll never work like this - I'm just commenting everything out and adding it in one bit at a time until I get a crash!)

 

 

  Reveal hidden contents

 

 

I'm tempted to just bin everything, delete or move the directories and start a fresh build. But I won't do that until I can be confident I'm all on the same version for everything!

 

thanks

 

Graham

Posted

 

  Reveal hidden contents

 

WTF???

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
  On 4/18/2014 at 8:46 AM, TheAncientMinecrafter said:

But with ForgeGradle I'm finding it hard to see where the Minecraft code is hiding.

External librairies.

Doesn't look like you searched before asking.

Posted

Once when I was a noob to modding and I hadn't yet read any tutorials, I wondered what the base class for a mod should be, too. However, I never in my wildest dreams imagined it would extend EntityCow! That is pretty novel.

Posted

OK - I used to be a Java programmer in Life-Before-Children so I can remember how to code. I have read many, many modding tutorials, read and searched the forums and had a scan through the Javadoc. My plan was to create a new Cow mob that had slightly different behaviour, so I thought I'd try extending EntityCow so my new mob would be like a Cow. I know the code doesn't look like the code for a mob, that's because it crashed so I thought I'd add in a small bit of code each time and see where it crashed.

 

If this is really hopelessly naive could you manage to point me in the right direction rather than just commenting on how silly it all is? And yes, I am very rusty, where the *** do you find external libraries? I'm still concerned that my version numbers are out of synch between Forge and the Minecraft code.

 

Graham

Posted

It's in the Minecraft project, you should see it as 'Referenced Libraries' and then the first one in the list: 'forgeSrc-*******'.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Thanks guys, I've made huge amounts of progress. And I think I've just figured out that I should have one mod file to load all the modified mobs which will be in their own class files. Which means that the @mod will only show up in one file that doesn't extend anything.

 

Off to take a break before I attempt that.

 

Cheers!

 

Graham

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.