Guest User

Untitled

a guest
Sep 11th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. #Scenarios all into 1 pastebin.
  2.  
  3. command /skyhigh-enable:
  4. description: Enabled the skyhigh scenario.
  5. usage: /skyhigh-enable
  6. permission: skript.skyhigh.enable
  7. trigger:
  8. set {SkyHigh} to "true"
  9. broadcast "&9[SkyHigh] &bHope you like heights..."
  10.  
  11. command /skyhigh-disable:
  12. description: Disabled the skyhigh scenario.
  13. usage: /skyhigh-disable
  14. permission: skript.skyhigh.disable
  15. trigger:
  16. set {SkyHigh} to "false"
  17. broadcast "&9[SkyHigh] &bThe ground is safe, for now..."
  18.  
  19. command /skyhigh:
  20. description: Gives an explanation of the scenario.
  21. usage: /skyhigh
  22. trigger:
  23. message "&b-----------------------------------------------------" to command sender
  24. message " " to command sender
  25. message "&9[Skyhigh] &b- After 45 minutes, any player below Y-101 will begin to take half a heart of damage every 30 seconds." to command sender
  26. message " " to command sender
  27. message "&bYou must use this 45 minutes wisely to make preparations for surviving the remainder of the game in the sky." to command sender
  28. message " " to command sender
  29. message "&bHint: Cobblestone and snow generators are going to be very important." to command sender
  30. message " " to command sender
  31. message "&bBe sure your tower is near enough to 0,0 to reach the sky meetup in reasonable time and have encounters with other teams." to command sender
  32. message " " to command sender
  33. message "&bYou will be forced to head to meetup by means of ground travel if necessary, another reason why having a way to generate blocks and build bridges is important." to command sender
  34. message " " to command sender
  35. message "&b-----------------------------------------------------" to command sender
  36.  
  37.  
  38. every 30 seconds:
  39. loop all players:
  40. {SkyHigh} is "true"
  41. loop-player is in "world":
  42. loop-player's y-coordinate is between 0 and 100
  43. damage the loop-player by 0.5 hearts
  44.  
  45. Options:
  46. prefix: &7[&9Rewarding Longshots&7]&r
  47. N: &3&l%command sender%
  48.  
  49. command /longshots <text>:
  50. permission: skript.op
  51. trigger:
  52. if arg 1 is equal to "enable":
  53. if {longshot} is true:
  54. message "{@prefix} Already Enabled!"
  55. else:
  56. set {longshot} to true
  57. broadcast "{@prefix} Enabled by {@N}"
  58. else if arg 1 is equal to "disable":
  59. if {longshot} is false:
  60. broadcast "{@prefix} Already Disabled!"
  61. else:
  62. set {longshot} to false
  63. broadcast "{@prefix} Disabled by {@N}
  64. else if arg 1 is equal to "toggle":
  65. if {longshot} is false:
  66. set {longshot} to true
  67. broadcast "{@prefix} Enabled by {@N}
  68. else:
  69. set {longshot} to false
  70. broadcast "{@prefix} Disabled by {@N}
  71.  
  72. on damage of player:
  73. {longshot} is true
  74. projectile exists
  75. projectile is an arrow
  76. set {_dist} to the distance between the victim and the attacker
  77. if {_dist} is between 30 and 49:
  78. Broadcast "{@prefix} %attacker% just got a longshot of %{_dist}% metres!"
  79. execute console command "/give %attacker% iron_ingot 1"
  80. else if {_dist} is between 50 and 99:
  81. Broadcast "{@prefix} %attacker% just got a longshot of %{_dist}% metres!"
  82. execute console command "/give %attacker% iron_ingot 1"
  83. execute console command "/give %attacker% gold_ingot 1"
  84. else if {_dist} is between 100 and 199:
  85. Broadcast "{@prefix} %attacker% just got a longshot of %{_dist}% metres!"
  86. execute console command "/give %attacker% iron_ingot 1"
  87. execute console command "/give %attacker% gold_ingot 1"
  88. execute console command "/give %attacker% diamond 1"
  89. else if {_dist} is greater than 200:
  90. Broadcast "{@prefix} %attacker% just got a longshot of %{_dist}% metres!"
  91. execute console command "/give %attacker% iron_ingot 2"
  92. execute console command "/give %attacker% gold_ingot 3"
  93. execute console command "/give %attacker% diamond 5"
  94.  
  95. command /diamondless:
  96. permission: skript.op
  97. usage: /diamondless
  98. trigger:
  99. if {Diamondless} is not set:
  100. set {Diamondless} to true
  101. message "Diamondless Enabled!"
  102.  
  103. else if {Diamondless} is true:
  104. delete {Diamondless}
  105. message "Diamondless Disabled!"
  106. command /Goldless:
  107. permission: skript.op
  108. usage: /Goldless
  109. trigger:
  110. {Goldless} is true:
  111. delete {Goldless}
  112. message "Goldless Disabled!"
  113.  
  114. else if {Goldless} is not set:
  115. set {Goldless} to true
  116. message "Goldless enabled!"
  117.  
  118. on mine of diamond ore:
  119. {Diamondless} is true:
  120. cancel the event
  121. set the block to air
  122. message "It's Diamondless, silly! Have a potato!"
  123. give 1 poisonous potato to player
  124.  
  125.  
  126. on mine of gold ore:
  127. {Goldless} is true:
  128. cancel the event
  129. set the block to air
  130. message "It's Goldless, silly! Have a potato!"
  131. give 1 poisonous potato to player
  132.  
  133. on craft of enchantment table:
  134. {Diamondless} is true:
  135. cancel the event
  136.  
  137. on mine of enchantment table:
  138. {Diamondless} is true:
  139. cancel the event
  140.  
  141. on death of player:
  142. {Goldless} is true:
  143. add 4 gold ingots to drops
  144.  
  145. on death of player:
  146. {Diamondless} is true:
  147. chance of 50%:
  148. add 1 diamond to drops
Advertisement
Add Comment
Please, Sign In to add comment