Custom Code Tutorial 3 "Fly Be Free !!! "

Started by Wes on Fri, 01/16/2015 - 17:15
Last seen on 20:21, 25. Feb 2017
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Custom Code Tutorial 3 "Fly Be Free !!! "
Fri, 01/16/2015 - 17:27 (edited)

Soo As Title " Fly Be Free " 
I'v Decidet to Write small tutorial About Flying Item :)

More Info:
This Allows You to Fly around world on Survival without Fuel and Fall Damage

Bugs: Only 1 There is No Else If Function son You Will Be Able to fly without RMB on Item until you will reset World 

Sooo Let's Get Start It :D

First of All Create New Item :D
Set Max Item Duration to Anny (If You wont to Damage Item When Flying)
Finish Item As Normal
Than Open Item Code 
go to The Bottom Of Code And Write This 

public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
par3EntityPlayer.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack)); ---Use DUrability if Item
par3EntityPlayer.capabilities.allowFlying = true; ---- Allows to Fly
return par1ItemStack;
}

Than Press Save And Recompile

Now Ending Effect :D
https://copy.com/hkLpoMya4dGpyuJt

Hope Someone Find This Usefull

And Remember abot that My Job Wast To Write Thing That only Allows you to fly so dont ask me how to remove flying xD

Again Sory for My English x3

Edited by Wes on Fri, 01/16/2015 - 17:27
Last seen on 21:25, 8. Dec 2017
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
nice!
Fri, 01/16/2015 - 19:33

nice!

Last seen on 03:22, 31. Jan 2016
Joined Jan 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
can you make one so you fly
Sat, 01/17/2015 - 01:15

can you make one so you fly when you wear a piece or armor?

Last seen on 20:21, 25. Feb 2017
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:can you make one so you fly
Sat, 01/17/2015 - 01:18

@#2
I'v Do My Best Sir

Last seen on 20:21, 25. Feb 2017
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:can you make one so you fly
Sat, 01/17/2015 - 23:07

@#2 I Create a Perfect Pice Of Flying Armor

Last seen on 21:14, 19. Jan 2015
Joined Jan 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I'm sorry, but this doesn't
Mon, 01/19/2015 - 13:26

I'm sorry, but this doesn't work for me. Whenever I hover over "ItemStack" in the first line, Java says that I need to define if it is a class, interface, or enum.

Last seen on 21:14, 19. Jan 2015
Joined Jan 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:I'm sorry, but this doesn't
Mon, 01/19/2015 - 13:30

@#3 I tinkered with Java and I fixed that, but now I can't recompile my mod. Help!

Last seen on 20:21, 25. Feb 2017
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Well Send Me Your Item Code I
Mon, 01/19/2015 - 19:30

Well Send Me Your Item Code I Will Check It And Try to Fix It

Last seen on 20:21, 25. Feb 2017
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:I'm sorry, but this doesn't
Mon, 01/19/2015 - 19:31

@#3.1 Actualy Can Be Possible Because You Accidently Removed one or more Squerly Braket

Last seen on 14:12, 17. Dec 2015
Joined Sep 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Lost code
Mon, 02/02/2015 - 16:32

Sorry for the inconvenience but the code you wrote for us got deleted when the entire post was deleted. So if you could post the paste in link again it would be much appreciated

Last seen on 21:25, 8. Dec 2017
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
RE:Lost code
Mon, 02/02/2015 - 20:57

@#5 Yes someone posted something highly disgusting on your forum so it had to be removed. I copied all the links to the paste bins. here is the code he made for you Cislabh. http://pastebin.com/CKCaGjt6 this is the code for flying armor