Advertisement
Blue_Tec

Untitled

Jun 15th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. on script load:
  2. set {elytra.ancientelytralore} to "&5Clolin Elytra"
  3. set {elytra.speed} to 0.35
  4. command /giveancientelytra:
  5. permission: elytra.op
  6. trigger:
  7. give a 443 with lore {elytra.ancientelytralore} to player
  8. on any movement:
  9. if player's is not flying:
  10. if "%player's chestplate%" contains "elytra":
  11. if player's pitch is more than -15:
  12. wait 20 ticks
  13. set {_b1} to block below player
  14. set {_b2} to block below {_b1}'s location
  15. set {_b3} to block below {_b2}'s location
  16. set {_b4} to block below {_b3}'s location
  17. if {_b1} and {_b2} and {_b3} and {_b4} is air:
  18. if difference between {cd.elytra.autouse.%player%} and now is more than 3 seconds:
  19. delete {cd.elytra.autouse.%player%}
  20. if {cd.elytra.autouse.%player%} is not set:
  21. if player's glide state is false:
  22. set {cd.elytra.autouse.%player%} to now
  23. set player's glide state to true
  24. if player's glide state is true:
  25. if "%lore of player's chestplate%" contains "%{elytra.ancientelytralore}%":
  26. if player's glide state is true:
  27. if player's pitch is less than -30:
  28. if {cd.elytra.%player%} is not set:
  29. set {cd.elytra.%player%} to now
  30. if difference between {cd.elytra.%player%} and now is more than 10 ticks:
  31. push the player in direction of player at speed {elytra.speed}
  32. set {cd.elytra.%player%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement