Flying event?

Published by xVoidZx on Tue, 02/27/2018 - 00:10
Upvotes: 0
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

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

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. 

entity.capabilities.allowFlying = true;

    entity.fallDistance = 0.0F;

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