Jump to content

Recommended Posts

Posted

hi guys, i'm total noob in forge, just made it compile and run correctly.

i had simple mod which modifies flying mechanics. to do so i modified EntityPlayerSP class. is there a way to have same effect without need to modify base class? if none, how should i release mod after changes?

Posted

ok, forget it. i modified base class, made mod_*.java. it works perfect when i run it in mcp, but doesn't work at all when i put in my minecraft\mods folder. it shows that mod is loaded, but it looks like fml ignored modified base class. why?

 

edit : had to put in manually in minecraft.jar, obviously it works fine after that. but isn't fml supposed to do that instead of me?

Posted

FML/forge mods do not edit base-classes.

 

You are doing things wrong.

 

Look into doing it as a coremod, using access transformers, reflection, and ASM.

 

Edit--NEI is a great example of the correct way to do such a mod, as the previous poster suggested.

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.