Yes thats what mc is. But this mod is client side and the jump events builds on the same code that the knockback event. And that event works on server but not this event. full code: github.com/TimeSwitcher/ValueModify
I want to create custom knockback. I have a method and it works in singleplayer. But it does not work in multiplayer. I put a print in the code and saw that not even the print were printed. So that must mean the event didnt fire at all. Its wierd though, since I have a linvingjumpevent in the same class and that event works perfectly fine in multiplayer. So I thought livingknockback would work too.
@SubscribeEvent
public void onKnockback(LivingKnockBackEvent e) {
System.out.println("test");
if (e.getEntity == mc.player) {
e.setStrength(kbStrength);
}
}
I want to suggest adding a velocity event. The event should function like other events, such as LivingJumpEvent for example. Whenever an entity gets added velocity such as knockback, fishingrod, explosions etc the event will be called. Then you can get the entity from the event, get the velocity, set the velocity and cancel the event to cancel the velocity.