Guest User

My Code

a guest
Nov 4th, 2018
104
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /rand:
  2. trigger:
  3. open chest with 6 row named "&c✎ &e&lRand" to player
  4. format gui slot 0 of player with yellow_stained_glass_pane named " " to do nothing
  5. format gui slot 8 of player with yellow_stained_glass_pane named " " to do nothing
  6. format gui slot 45 of player with yellow_stained_glass_pane named " " to do nothing
  7. format gui slot 53 of player with yellow_stained_glass_pane named " " to do nothing
  8. format gui slot 1 of player with purple_stained_glass_pane named " " to do nothing
  9. format gui slot 2 of player with purple_stained_glass_pane named " " to do nothing
  10. format gui slot 3 of player with purple_stained_glass_pane named " " to do nothing
  11. format gui slot 5 of player with purple_stained_glass_pane named " " to do nothing
  12. format gui slot 6 of player with purple_stained_glass_pane named " " to do nothing
  13. format gui slot 7 of player with purple_stained_glass_pane named " " to do nothing
  14. format gui slot 17 of player with purple_stained_glass_pane named " " to do nothing
  15. format gui slot 26 of player with purple_stained_glass_pane named " " to do nothing
  16. format gui slot 35 of player with purple_stained_glass_pane named " " to do nothing
  17. format gui slot 52 of player with purple_stained_glass_pane named " " to do nothing
  18. format gui slot 51 of player with purple_stained_glass_pane named " " to do nothing
  19. format gui slot 50 of player with purple_stained_glass_pane named " " to do nothing
  20. format gui slot 48 of player with purple_stained_glass_pane named " " to do nothing
  21. format gui slot 47 of player with purple_stained_glass_pane named " " to do nothing
  22. format gui slot 46 of player with purple_stained_glass_pane named " " to do nothing
  23. format gui slot 44 of player with purple_stained_glass_pane named " " to do nothing
  24. format gui slot 9 of player with purple_stained_glass_pane named " " to do nothing
  25. format gui slot 18 of player with purple_stained_glass_pane named " " to do nothing
  26. format gui slot 27 of player with purple_stained_glass_pane named " " to do nothing
  27. format gui slot 36 of player with purple_stained_glass_pane named " " to do nothing
  28. format gui slot 4 of player with name_tag named "&aSpieler &dRänder" with lore "&7Seite 1||||&8• &4Braucht:||&d➥ &aSpieler &cRang oder höher" to do nothing
  29. # format gui slot 49 of player with arrow named "&5✦ &eNächste Seite..." to close then run player command "randnext-1"
  30. format gui slot 49 of player with yellow_stained_glass_pane named " " to do nothing
  31. # Seite 1
  32. format gui slot 10 of player with barrier named "&4&lNichts" to close then run function plotBorder(player, "nothing")
  33. format gui slot 11 of player with grass named "&2&lGrass" to close then run function plotBorder(player, "grass")
  34. format gui slot 12 of player with stone named "&8&lStein" to close then run function plotBorder(player, "stone")
  35. format gui slot 13 of player with cobble_stone named "&7&lBruchstein" to close then run function plotBorder(player, "cobble")
  36. format gui slot 14 of player with bedrock named "&0&lGrundgestein" to close then run function plotBorder(player, "bedrock")
  37. format gui slot 15 of player with plain_glass_block named "&f&lGlass" to close then run function plotBorder(player, "glass")
  38. format gui slot 16 of player with oak_leaves named "&a&lLaub" to close then run function plotBorder(player, "leaves")
  39. format gui slot 19 of player with oak_planks named "&2&lEichenholzbretter" to close then run function plotBorder(player, "oak_planks", "location")
  40. # ränder
  41. function plotBorder(p: player, t: string, l: string):
  42. # Seite 1
  43. if {_t} is "nothing":
  44. if {_p} is in a plot:
  45. if {_p} has permission "rand.admin":
  46. set the border blocks at height 65 of the plot with id "%plot at {_p}%" to air
  47. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  48. else:
  49. if "%the plots of {_p}%" contains "%plot at {_p}%":
  50. set the border blocks at height 65 of the plot with id "%plot at {_p}%" to air
  51. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  52. else:
  53. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  54. else:
  55. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  56. if {_t} is "grass":
  57. if {_p} is in a plot:
  58. if {_p} has permission "rand.admin":
  59. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to grass
  60. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  61. else:
  62. if "%the plots of {_p}%" contains "%the ID of the PlotSquared plot at {_p}%":
  63. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to grass
  64. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  65. else:
  66. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  67. else:
  68. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  69. if {_t} is "stone":
  70. if {_p} is in a plot:
  71. if {_p} has permission "rand.admin":
  72. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to stone
  73. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  74. else:
  75. if "%the plots of {_p}%" contains "%the ID of the PlotSquared plot at {_p}%":
  76. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to stone
  77. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  78. else:
  79. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  80. else:
  81. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  82. if {_t} is "cobble":
  83. if {_p} is in a plot:
  84. if {_p} has permission "rand.admin":
  85. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to cobble_stone
  86. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  87. else:
  88. if "%the plots of {_p}%" contains "%the ID of the PlotSquared plot at {_p}%":
  89. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to cobble_stone
  90. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  91. else:
  92. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  93. else:
  94. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  95. if {_t} is "bedrock":
  96. if {_p} is in a plot:
  97. if {_p} has permission "rand.admin":
  98. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to bedrock
  99. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  100. else:
  101. if "%the plots of {_p}%" contains "%the ID of the PlotSquared plot at {_p}%":
  102. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to bedrock
  103. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  104. else:
  105. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  106. else:
  107. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  108. if {_t} is "glass":
  109. if {_p} is in a plot:
  110. if {_p} has permission "rand.admin":
  111. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to plain_glass_block
  112. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  113. else:
  114. if "%the plots of {_p}%" contains "%the ID of the PlotSquared plot at {_p}%":
  115. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to plain_glass_block
  116. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  117. else:
  118. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  119. else:
  120. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  121. if {_t} is "leaves":
  122. if {_p} is in a plot:
  123. if {_p} has permission "rand.admin":
  124. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to oak_leaves
  125. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  126. else:
  127. if "%the plots of {_p}%" contains "%the ID of the PlotSquared plot at {_p}%":
  128. set the border blocks at height 65 of the plot with id "%the ID of the PlotSquared plot at {_p}%" to oak_leaves
  129. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  130. else:
  131. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  132. else:
  133. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
  134. if {_t} is "oak_planks":
  135. if {_p} is in a plot:
  136. if {_p} has permission "rand.admin":
  137. set the border blocks at height 65 of the plot with id "%ID of plot at {_p}%" to oak_planks
  138. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  139. else:
  140. if "%the plots of {_p}%" contains "%plot at {_p}%":
  141. set the border blocks at height 65 of the plot with id "%id of plot at {_p}%" to oak_planks
  142. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &2PlotRand &aerfolgreich geändert!" to {_p}
  143. else:
  144. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu bist nicht der Plotbesitzer!" to {_p}
  145. else:
  146. message "&f&l&m ]&5&lEnderRoayel&f&l&m[ &r &cDu befindest dich nicht auf einem Plot!" to {_p}
RAW Paste Data