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

Started by Wes on Fri, 01/16/2015 - 17:15

Topic category: Advanced modding

Last seen on 01:31, 20. Feb 2020
Joined Apr 2014
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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
0Upvote this forum topic
Last seen on 08:29, 18. Sep 2019
Joined Dec 2013
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
nice!
Fri, 01/16/2015 - 19:33

nice!

0Upvote this forum topic
Last seen on 03:22, 31. Jan 2016
Joined Jan 2015
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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?

0Upvote this forum topic
Last seen on 01:31, 20. Feb 2020
Joined Apr 2014
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
RE:can you make one so you fly
Sat, 01/17/2015 - 01:18

@#2
I'v Do My Best Sir

0Upvote this forum topic
Last seen on 01:31, 20. Feb 2020
Joined Apr 2014
User points:

User statistics:

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

@#2 I Create a Perfect Pice Of Flying Armor

0Upvote this forum topic
Last seen on 21:14, 19. Jan 2015
Joined Jan 2015
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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.

0Upvote this forum topic
Last seen on 21:14, 19. Jan 2015
Joined Jan 2015
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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!

0Upvote this forum topic
Last seen on 01:31, 20. Feb 2020
Joined Apr 2014
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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

0Upvote this forum topic
Last seen on 01:31, 20. Feb 2020
Joined Apr 2014
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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

0Upvote this forum topic
Last seen on 14:12, 17. Dec 2015
Joined Sep 2014
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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

0Upvote this forum topic
Last seen on 08:29, 18. Sep 2019
Joined Dec 2013
User points:

User statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
  • Mods of the week:
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

0Upvote this forum topic