Jump to content

Recommended Posts

Posted

Hi! Can someone tell me why is the LivingKnockBackEvent not calling? Everything else is working but that one is not. I checked with a simple System.out.println() to see if its working.

Posted
public void init(FMLInitializationEvent event)
is where I register with MinecraftForge.EVENT_BUS.register(new MyForgeEventHandler());
public class MyForgeEventHandler {
BUNCH OF EVENTS WHICH ARE WORKING
@SubscribeEvent
public void onKb(LivingKnockBackEvent e) { 
this one not

 

Posted

How did you determine whether it is working? The event is firing fine in my workspace.

Some tips:

  Reveal hidden contents

 

Posted
  On 4/29/2020 at 2:23 PM, DavidM said:

How did you determine whether it is working? The event is firing fine in my workspace.

Expand  

Actually just a simple System.out.println().
Lets make it clear, this should fire when e.g I get hit and I take knockback, right?

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.