Posted July 27, 20169 yr I'm stuck on increasing the jump height of the player. Here's my code: @SubscribeEvent public void onJump(LivingEvent.LivingJumpEvent e) { if(!e.getEntityLiving().worldObj.isRemote && e.getEntityLiving() instanceof EntityPlayer) { EntityPlayer p = (EntityPlayer) e.getEntityLiving(); PlayerStats stats = ScalaeCapabilities.getStats(p); if(stats.hasPerk("jump_height_1") || stats.hasPerk("jump_height_2")) { p.posY += 10D; System.out.println("HELLO"); } } } I've tried using the *= operator and nothing happens. The message "HELLO" is being printed. Kain
July 27, 20169 yr Try increasing the player's y velocity, instead of position. I believe that's how the potion effects works.
July 27, 20169 yr "motionY" field if I'm not mistaken. 1.7.10 is no longer supported by forge, you are on your own.
July 27, 20169 yr motionY on the player needs to be applied on the client, because of how vanilla handles player input 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.
July 28, 20169 yr why wont you just take a look at the jump boost effect? that's what i would do if i needed that.... that's why the forge source is there isnt it? Doing stuff n' things
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.