Flying event?

Submitted by xVoidZx on Tue, 02/27/2018 - 00:10
Issue description

As the name suggests, perhaps you could add an event in the Events Editor that enables flying, as currently it is only possible through editing the code.

Issue comments

Submitted by Klemen on Tue, 02/27/2018 - 17:48

Do you have the code example on how you implemented flying?

Submitted by Klemen on Fri, 03/02/2018 - 12:04

The issue author said he uses custom code and I asked if he could provide it as flying is a pretty wide scope ranging from just levitating like in creative mode to actual flying like with elytra.

To fly like you are in create you need to go to events, add custom code. Paste these as two different events. I've only used in on armor. 

{
if(world.isRemote)
entity.capabilities.allowFlying = true;
}

{
    entity.fallDistance = 0.0F;
}
 

Submitted by Matej on Sat, 04/07/2018 - 18:53

We added this event in the next MCreator update (1.7.9).