Advertisement
Rylens

stuff

Oct 1st, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.42 KB | None | 0 0
  1.  
  2. command /getLoad_g:
  3. trigger:
  4. getLoad_g(player)
  5.  
  6.  
  7. function getLoad_g(p: player):
  8. set metadata tag "getLoad_g" of {_p} to chest inventory with 3 rows named "&0"
  9. set slots (integers between 0 and 26) of metadata tag "getLoad_g" of {_p} to gray stained glass pane named "&0"
  10. set slot 4 of metadata tag "getLoad_g" of {_p} to paper named "&rPlease wait..."
  11. set {_i} to {_p}'s ping
  12. set slot 26 of metadata tag "getLoad_g" of {_p} to lime stained glass pane named "&aPing: %{_i}%"
  13. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to light gray wool named "&7Unloaded load"
  14. loop 100 times:
  15. add 1 to {_getLoad_g}
  16. if {_getLoad_g} != 100:
  17. if {_p}'s ping <= 1800:
  18. stop loop
  19. wait 0.3 seconds
  20. set slot 10 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 1" with lore "&asuccessful!"
  21. set slot 11 of metadata tag "getLoad_g" of {_p} to green wool named "&2Loading load 2..."
  22. delete {_getLoad_g}
  23. loop 100 times:
  24. add 1 to {_getLoad_g}
  25. if {_getLoad_g} != 100:
  26. if {_p}'s ping <= 1000:
  27. stop loop
  28. wait 0.3 seconds
  29. set slot 11 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 2" with lore "&asuccessful!"
  30. set slot 12 of metadata tag "getLoad_g" of {_p} to green wool named "&2Loading load 3..."
  31. delete {_getLoad_g}
  32. loop 100 times:
  33. add 1 to {_getLoad_g}
  34. if {_getLoad_g} != 100:
  35. if {_p}'s ping <= 750:
  36. stop loop
  37. wait 0.3 seconds
  38. set slot 12 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 3" with lore "&asuccessful!"
  39. set slot 13 of metadata tag "getLoad_g" of {_p} to green wool named "&2Loading load 4..."
  40. delete {_getLoad_g}
  41. loop 100 times:
  42. add 1 to {_getLoad_g}
  43. if {_getLoad_g} != 100:
  44. if {_p}'s ping <= 350:
  45. stop loop
  46. wait 0.3 seconds
  47. set slot 13 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 4" with lore "&asuccessful!"
  48. set slot 14 of metadata tag "getLoad_g" of {_p} to green wool named "&2Loading load 5..."
  49. delete {_getLoad_g}
  50. loop 100 times:
  51. add 1 to {_getLoad_g}
  52. if {_getLoad_g} != 100:
  53. if {_p}'s ping <= 200:
  54. stop loop
  55. wait 0.3 seconds
  56. set slot 14 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 5" with lore "&asuccessful!"
  57. set slot 15 of metadata tag "getLoad_g" of {_p} to green wool named "&2Loading load 6..."
  58. delete {_getLoad_g}
  59. loop 100 times:
  60. add 1 to {_getLoad_g}
  61. if {_getLoad_g} != 100:
  62. if {_p}'s ping <= 170:
  63. stop loop
  64. wait 0.3 seconds
  65. set slot 15 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 6" with lore "&asuccessful!"
  66. set slot 16 of metadata tag "getLoad_g" of {_p} to green wool named "&2Loading load 7..."
  67. delete {_getLoad_g}
  68. loop 100 times:
  69. add 1 to {_getLoad_g}
  70. if {_getLoad_g} != 100:
  71. if {_p}'s ping <= 125:
  72. stop loop
  73. wait 0.3 seconds
  74. set slot 16 of metadata tag "getLoad_g" of {_p} to lime wool named "&aLoaded load 7" with lore "&asuccessful!"
  75. wait 0.3 seconds
  76. else:
  77. stop loop
  78. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  79. wait 0.3 seconds
  80. else:
  81. stop loop
  82. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  83. wait 0.3 seconds
  84. else:
  85. stop loop
  86. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  87. wait 0.3 seconds
  88. else:
  89. stop loop
  90. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  91. wait 0.3 seconds
  92. else:
  93. stop loop
  94. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  95. wait 0.3 seconds
  96. else:
  97. stop loop
  98. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  99. wait 0.3 seconds
  100. else:
  101. stop loop
  102. set slots (integers between 10 and 16) of metadata tag "getLoad_g" of {_p} to red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)"
  103. open (metadata tag "getLoad_g" of {_p}) to {_p}
  104.  
  105. on inventory open:
  106. if event-inventory = (metadata tag "getLoad_g" of player):
  107. while player's current inventory = (metadata tag "getLoad_g" of player):
  108. if {_i} != player's ping:
  109. set slot 26 of player's current inventory to lime stained glass pane named "&aPing: %{_i}%"
  110. set {_i} to player's ping
  111. wait 1 second
  112. on inventory click:
  113. if event-inventory = (metadata tag "getLoad_g" of player):
  114. if event-slot = (integers between 10 and 16):
  115. if event-item = red wool named "&cPing update failed..." with lore "&0" and "&7(Click to retry)":
  116. getLoad_g({_p})
  117. else:
  118. cancel event
  119. else:
  120. cancel event
  121.  
  122. # --- --- --- --- --- --- --- --- ---
  123. # |0 |1 |2 |3 |4 |5 |6 |7 |8 |
  124. # --- --- --- --- --- --- --- --- ---
  125. # |9 |10 |11 |12 |13 |14 |15 |16 |17 |
  126. # --- --- --- --- --- --- --- --- ---
  127. # |18 |19 |20 |21 |22 |23 |24 |25 |26 |
  128. # --- --- --- --- --- --- --- --- ---
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement