Posted June 10, 20169 yr Hey, as you can read from the title i want to slow the player down, using my clientside mod. So far i tried changing the player capability, motionX/motionZ and giving the player slowness. Either i did something wrong when testing or those dont work in this scenario. Thanks in advance.
June 11, 20169 yr How are you attempting to give the player slowness? I have not tested it, but the following code should work: Minecraft.getMinecraft().thePlayer.addPotionEffect(new PotionEffect(Potion.getPotionById(2), 1)); Of course, instead of Minecraft.getMinecraft().thePlayer, you would use a given reference to an EntityPlayer if possible.
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.