Posted June 12, 20169 yr Hey Guys, I need some help with my 1.7.10 Mod. I want to create Wings, so you are able to fly without using any armor slot, just wings. Does anyone know a good tutorial or anything? please help me c: Greetings, SpinatSpion
June 12, 20169 yr Why do you use 1.7.10! Update to 1.9, because otherwise I don't think you will get so much help because the most people have updated. http://i.imgur.com/J4rrGt6.png[/img] [Creator of mcrafterzz mod]
June 12, 20169 yr Author Im using 1.7.10 because of an Cauldron Server im playing on and they asked me to create a mod for them for 1.7.10
June 12, 20169 yr How do you want the flying to work? Like Creative mode? Or gliding like the 1.9 Elytra?
June 12, 20169 yr OK. Although not exactly like Creative flying, the following code should work when placed inside the Item's class (hold down spacebar to fly up): public void onUpdate(ItemStack itemStack, World worldIn, Entity entityIn, int i, boolean j){ int jumpKeyCode = Minecraft.getMinecraft().gameSettings.keyBindJump.getKeyCode(); if (Keyboard.isKeyDown(jumpKeyCode)) entityIn.setVelocity(entityIn.motionX, 1, entityIn.motionZ); }
June 12, 20169 yr Author Thanks bud c: Do u know a NoFallDMG event or something because when I do the flying I die like instantly
June 12, 20169 yr Thanks bud c: Do u know a NoFallDMG event or something because when I do the flying I die like instantly No problem I'm not sure, but you should be able to use something like entityIn.setVelocity(entityIn.motionX, 0, entityIn.motionZ); to reset the player's vertical velocity.
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.