Jump to content

[1.9.4] Modifying vanilla classes


IamMaxim

Recommended Posts

I want to add some fields to EntityPlayer. What is the better way to do that? If I extend EntityPlayer, how can I replace it everywhere else? Are class transformers avaible in 1.9.4? I've tried replacing classes with MCP, but I couldn't compile it(it works fine in IDE). As I know, reflection can only change fields, but not to add. Please point me in right direction.

Link to comment
Share on other sites

Lookup "extended entity properties" and see if that will let you do what you want.

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.

Link to comment
Share on other sites

Lookup "extended entity properties" and see if that will let you do what you want.

 

IExtendedEntityProperties

was deprecated in 1.8.9 with the introduction of the capability system and then removed in 1.9.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

I decided to try making a coremod (if it is possible in 1.9.4), but I don't know how to make my IFMLLoadingPlugin launch. Has someone worked with them? I know this breaks compatibility with other mods, but I don't see any other way to completely remake vanilla combat system.

Link to comment
Share on other sites

You want it to run in Eclipse, I take it?

Yeah, there's a runtime argument you need to add to the run configurations.

 

-Dfml.coreMods.load=path.to.main.coremod_class

 

I'm still pretty sure you can overhaul the combat system without coremodding, though.

 

By the way...

 

You will get virtually no help writing coremods.

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.

Link to comment
Share on other sites

I'm still pretty sure you can overhaul the combat system without coremodding, though.

 

True dat, with @Capabilities and Events (Attack, Hurt, Death, etc. Events) you can hook and replace any part of attacking/damaging systems (with each and every, even smallest part of detail) - trust me, I am doing it.

 

CoreMod = bleh.

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

Link to comment
Share on other sites

Do not make a coremod.

If you do, or anyone here helps you. You will be banned from the forums.

There is ALWAYS a way to do things without a coremod.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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