Advertisement
CREAMPAN0408

Untitled

Feb 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. on right click holding a glass block:
  2. cancel the event
  3. set {_color} to data value of player's tool
  4. "%name of player's tool%" is "&eMagical Carpet"
  5. if sql var "cooldown::carpets::%player%" exists is true:
  6. set {_time} to value of sql var "cooldown::carpets::%player%"
  7. set {_time} to convert unix ({_time} parsed as number) to date
  8. difference between {_time} and now is less than 3 minutes
  9. set {_cooldown} to difference between {_time} and now
  10. set {_cooldown} to "%difference between {_cooldown} and 3 minute%"
  11. set {_cooldown::*} to {_cooldown} split at " "
  12. if {_cooldown::4} is not set:
  13. set {_cooldown} to "%{_cooldown::1}%&es"
  14. else:
  15. set {_cooldown} to "%{_cooldown::1}%m %{_cooldown::4}%&es"
  16. if {_cooldown} contains ".":
  17. set {_cooldown::*} to {_cooldown} split at "."
  18. set {_cooldown} to "%{_cooldown::1}%&es"
  19. send "&7You can't use &eMagical Carpet&7 for another &e%{_cooldown}%"
  20. stop trigger
  21. set sql var "cooldown::carpets::%player%" to "%unix time%"
  22. set {_amt} to value of sql var "gadgets::carpets::%player%" parsed as integer
  23. set sql var "gadgets::carpets::%player%" to "%{_amt} - 1%"
  24. remove 1 of player's tool from player's tool
  25. loop 300 times:
  26. if player is sneaking:
  27. set {_below} to 2
  28. else:
  29. set {_below} to 1
  30. set {_block1} to block at location {_below} below player
  31. set {_block2} to block at location {_below} below 1 north player
  32. set {_block3} to block at location {_below} below 1 west player
  33. set {_block4} to block at location {_below} below 1 east player
  34. set {_block5} to block at location {_below} below 1 south player
  35. set {_block6} to block at location {_below} below 1 north east player
  36. set {_block7} to block at location {_below} below 1 north west player
  37. set {_block8} to block at location {_below} below 1 south east player
  38. set {_block9} to block at location {_below} below 1 south west player
  39. loop 9 times:
  40. block at {_block%loop-number-2%} is air
  41. if y-coordinate of {_block%loop-number-2%} is greater than 115:
  42. set y-coordinate of {_block%loop-number-2%} to 115
  43. set block at {_block%loop-number-2%} to "95:%{_color}%" parsed as item
  44. set metadata "Painted" of block at {_block%loop-number-2%} to "true"
  45. wait 2 ticks
  46. loop 9 times:
  47. set block at {_block%loop-number-2%} to {_block%loop-number-2%}
  48. if block at {_block%loop-number-2%} is a glass block:
  49. set block at {_block%loop-number-2%} to air
  50. delete metadata "Painted" of block at {_block%loop-number-2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement