Voilà
options:
plane: 0.6
msg: &cPatience !
cooldown: 2 seconds
perm: elytrapush.sk
on right click:
player is wearing elytra
if player's tool is iron_hoe:
if player has permission "{@perm}":
set {_waited} to difference between {elytrapush.%player%.lastused} and now
if {_waited} is less than {@cooldown}:
set {_waited} to difference between {_waited} and {@cooldown}
send "{@msg}"
else:
set {elytrapush.%player%.lastused} to now
set {_elytradura.%player%} to 432
set {_vieelytra.%player%} to durability of chestplate of player
wait 1 tick
remove {_vieelytra.%player%} from {_elytradura.%player%}
if {_elytradura.%player%} <= 1:
send "&4Répare ton elytra."
set elytra fly state of player to false
stop
else:
if elytra fly state of player is true:
push player in direction of player at speed {@plane}
else:
send "&4Tu n'as pas la permission d'utiliser la propulsion."
Après a toi de modifier les options, je te laisse gérer le push, je ne sais pas ce qui te conviens