StartGlidingCheck: type: world debug: false events: after player starts gliding: - inject ElytraDamagedSlowDown ElytraDamagedSlowDown: type: task debug: true script: - flag ElytraReduction:0.5 expire:5s - if ! && : - narrate triggered!!!!!!!!! - while : - define total_velocity ].add[]> - flag ElytraReduction: - if && <[total_velocity]> >= : - adjust velocity:]> - wait 1t - flag ElytraDamagedSlowDownLoopOn expire:5s OnDamageEvent: type: world debug: true events: on player damaged: #DamageFlagPart - flag GetDamagedin5s expire:5s - inject ElytraDamagedSlowDown