Posted March 5, 201312 yr So I want to make it so when the EntityPlayer is wearing my special armor set I wish for the player to allow my flight by double-clicking space bar. Bonus question although this sounds kinda stupid how would I add an enchantment to an item upon crafting. Here's my boots code for flight and my main mod class: Boots: http://paste.minecraftforge.net/view/0482e33d Main Class: http://paste.minecraftforge.net/view/347b9b3a
March 6, 201312 yr If you use eclipse, you should see an arrow to indicate that it has successfully overridden a method. If you don't see that, you will have to use a serverTickHandler: and then use some of the info from this tutorial: where you don't add a potion effect, but instead use player.capabilities.allowFlying = true; Can you try that and report back if that works?
March 6, 201312 yr If you use eclipse, you should see an arrow to indicate that it has successfully overridden a method. If you don't see that, you will have to use a serverTickHandler: and then use some of the info from this tutorial: where you don't add a potion effect, but instead use player.capabilities.allowFlying = true; Can you try that and report back if that works? he already fixed the problem. he just hasn't marked this as [sOLVED]
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.