You can now enable/disable flight with the "setPlayerFlying" action
Code (YAML):
action
: setPlayerFlying
flying
: true
Set the "fallDamage" parameter to false to make it so the player won't take fall damage when they stop flying (only the first time they take fall damage will be blocked — any fall damage after that will still be allowed)
Code (YAML):
action
: setPlayerFlying
flying
: false
fallDamage
: false