Advertisement
70sOn7

Elevator

Dec 22nd, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. on sign change:
  2. line 1 is "[Elevator]":
  3. line 2 is "Up":
  4. set line 1 to "&1[Elevator]"
  5. set line 2 to "Up"
  6. line 2 is "up":
  7. set line 1 to "&1[Elevator]"
  8. set line 2 to "Up"
  9. line 2 is "uP":
  10. set line 1 to "&1[Elevator]"
  11. set line 2 to "Up"
  12. line 2 is "UP":
  13. set line 1 to "&1[Elevator]"
  14. set line 2 to "Up"
  15.  
  16. on rightclick on sign:
  17. line 1 is "&1[Elevator]":
  18. line 2 is "Up":
  19. set {_location} to location of player
  20. set y-coordinate of {_location} to 257
  21. loop 256 times:
  22. remove 1 from the y-coordinate of {_location}
  23. if block at {_location} is not air or torch or sign or water or lava:
  24. teleport player to block above {_location}
  25. stop loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement