After reading lots of code and googling minecraft forge events I managed to subscribe to an event in a generic custom event handler class that I wrote.
I built and ran my code and got eclipse to stop at my breakpoint. I think that it even does what I want it to do.
(I did figure out that onLivingUpdate was probably to high up the stack for my purpose and found a hook much closer to the behavior that I wanted to override.)
Many thanks!
I have created a class that inherits from the vanilla entity and overrides a protected method to implement some sample overriden behavior.
Now my question is how do I tell the game engine to use my inherited entity instead of the original entity (without modifying the vanilla files of course!)?
I am assuming that this kind of change is supported I guess.
That sounds excellent!
I don't suppose there are any links out there that demonstrate using minecraft forge hooks to modify vanilla minecraft entities...
From my point of view I am not looking for anything very specific to start with.
I think it could help me if I could see a sample or something of someone modifying any aspect of a vanilla entity.
Basically I know that I know nothing about this tool and I am looking for a place to start learning.
Ok, thank you for that information I was confused when the vanilla minecraft classes were not included in the project.
I would still like to override some vanilla entity behavior...
Or is this the wrong tool for that?
Do I create a subclass of the vanilla class I want to modify and override the original functionality there, and then somehow replace the original entity with my inheritied entity?
Hi,
I am new here and would like some basic modding information.
I have managed to setup minecraft forge for 1.7.10 on my machine using Eclipse 4.4.2 and forge 10.13.2.1291.
I am able to start reading and debugging the vanilla minecraft code (yeah!)
I have already made a change to one of the vanilla minecraft classes and would like to recompile and test my change.
I have tried Build All from the project menu but when I start debugging, the code reads the same as before my change.
Could you please provide the proper steps to change and debug vanilla minecraft classes please?
Thank you in advance!
11 replies
Important Information
By using this site, you agree to our Terms of Use.