setgliding mechanic update

Allow us to make entities glide without needing an elytra, its possible and allows for alot of customization

  • setgliding{} @targeter

Attributes:

glide: true/false (default: true) : Enables or disables gliding

needElytra: true/false (default: true) : Whether you need an elytra to enable gliding or not

disableOnGround [or hugSurface]: true/false (default: true) : Disables gliding when you hit the ground

disableOnDamage: true/false (default: false) : Disables gliding when you receive damage

disableWhenWallHit: true/false (default: false) : Disables gliding whenever you hit a wall

flightSpeed [or velocity]: 0 to 3 (default: 0) : 0 allows you to normally glide, 1 allows you to continuously glide with flightspeed 1 etc. etc.

Possible Attributes:

onTick: meta-skill (default: none): Allows you to add an onTick meta-skill

onHit: meta-skill (default: none): Allows you to add a meta-skill whenever you fly through an entity

duration: (default: none) : Max duration you can fly

In case you would like an example of this, here's an open source project I found, it allows you to infinitely fly with or without an elytra, you activate it by using /fly: https://github.com/DarthChungo/Flying

Edited by Brickgard