Jump to content

Time

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Time

  1. So theres no way I could make it work? Maybe with some reflection?
  2. 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
  3. github.com/TimeSwitcher/ValueModify
  4. 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); } }
  5. 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.
×
×
  • Create New...

Important Information

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