Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- set {elytra.ancientelytralore} to "&5Clolin Elytra"
- set {elytra.speed} to 0.35
- command /giveancientelytra:
- permission: elytra.op
- trigger:
- give a 443 with lore {elytra.ancientelytralore} to player
- on any movement:
- if player's is not flying:
- if "%player's chestplate%" contains "elytra":
- if player's pitch is more than -15:
- wait 20 ticks
- set {_b1} to block below player
- set {_b2} to block below {_b1}'s location
- set {_b3} to block below {_b2}'s location
- set {_b4} to block below {_b3}'s location
- if {_b1} and {_b2} and {_b3} and {_b4} is air:
- if difference between {cd.elytra.autouse.%player%} and now is more than 3 seconds:
- delete {cd.elytra.autouse.%player%}
- if {cd.elytra.autouse.%player%} is not set:
- if player's glide state is false:
- set {cd.elytra.autouse.%player%} to now
- set player's glide state to true
- if player's glide state is true:
- if "%lore of player's chestplate%" contains "%{elytra.ancientelytralore}%":
- if player's glide state is true:
- if player's pitch is less than -30:
- if {cd.elytra.%player%} is not set:
- set {cd.elytra.%player%} to now
- if difference between {cd.elytra.%player%} and now is more than 10 ticks:
- push the player in direction of player at speed {elytra.speed}
- set {cd.elytra.%player%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement