Guest User

Hotbar

a guest
Apr 9th, 2017
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.16 KB | None | 0 0
  1. Options:
  2. P: &8[&bArena&8] #<<Your Servers Prefix
  3. CC: &7 #<<Your Servers Normal Chat Colour
  4. HC: &a&o #<<Your Servers Highlighted Chat Colour
  5. Warps: 30 #<<Amount of Warps You Set. Ex. a1,a2,a3...
  6. World: pvparena #<<World Of Which Your PvP Arena Is Located
  7.  
  8. #Toggle The Arena On/Off
  9.  
  10. command /pvparena [<text>]:
  11. usage: /pvparena <enable:disable>
  12. permission: pvparena.admin
  13. trigger:
  14. if arg-1 is "on" or "enable" or "true":
  15. set {arena} to true
  16. broadcast "{@P}{@CC} PvP Arena {@HC}Enabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
  17. if arg-1 is "off" or "disable" or "false":
  18. set {arena} to false
  19. broadcast "{@P}{@CC} PvP Arena {@HC}Disabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
  20.  
  21.  
  22. #Stops Players Joining The Arena When They Are Already In It
  23.  
  24. on command "/a":
  25. world of player is "{@World}"
  26. cancel the event
  27. message "{@P}{@CC} You Are Already In The PvP Arena! Use /aleave To Leave!"
  28.  
  29. on command "/arena":
  30. world of player is "{@World}"
  31. cancel the event
  32. message "{@P}{@CC} You Are Already In The PvP Arena! Use /aleave To Leave!"
  33.  
  34. #Command For Players To Leave The Arena
  35.  
  36. #Command Which Resets The Arena
  37.  
  38. command /arenareset:
  39. permission: pvparena.admin
  40. trigger:
  41. command "/broadcast Resetting arena!"
  42. command "/wb {@World} clear"
  43. set {arena} to false
  44. loop all players:
  45. world of loop-player is "{@World}"
  46. command "/spawn %loop-player%"
  47. heal loop-player
  48. clear inventory of loop-player
  49. command "/mv delete {@World}"
  50. wait 5 ticks
  51. command "/mvconfirm"
  52. command "/mvc {@World} normal"
  53. command "/gamerule doDaylightCycle false {@World}"
  54. command "/gamerule doMobSpawning false {@World}"
  55. command "/wb {@World} set 200 200 0 0"
  56. command "/wb {@World} shape Square"
  57. command "/wb {@World} fill 100"
  58. command "/pregen pvparena 200 100"
  59. wait 30 seconds
  60. command "/setwalls {@World} 200 0 0 bedrock"
  61. wait 5 seconds
  62. set {arena} to true
  63. loop all players:
  64. message "{@P}{@CC} The Arena Map Has Reset. The Arena Is Now Open." to loop-player
  65. stop
  66.  
  67. #Command Which Gives The Items In The PvP Arena, Feel Free To Edit This..
  68.  
  69. command /stuff <player>:
  70. executable by: console, player
  71. permission: pvparena.admin
  72. trigger:
  73. equip arg-1 with all iron armor
  74. give arg-1 a iron sword
  75. give arg-1 a diamond pickaxe of efficiency 3
  76. give arg-1 a bow
  77. give arg-1 a water bucket
  78. give arg-1 64 cobblestone
  79. give arg-1 3 golden apples
  80. give arg-1 1 ender pearl
  81. give arg-1 64 crafting tables
  82. give arg-1 1 lava bucket
  83. give arg-1 128 cobblestone
  84. give arg-1 64 dirt
  85. give arg-1 2 anvils
  86. give arg-1 1 enchantment table
  87. give arg-1 64 arrow
  88. give arg-1 64 lapis lazuli
  89.  
  90.  
  91.  
  92. #Sends The Player You Killed/You Who They Were Killed By, and Who They Killed
  93.  
  94. on death:
  95. if {arena} is true:
  96. attacker is a player
  97. victim is a player
  98. send "{@P}{@CC} You killed {@HC}%victim%{@CC}!" to the attacker
  99. send "{@P}{@CC} You were killed by: {@HC}%attacker%{@CC}!" to the victim
  100. execute console command "/clearxp %victim%"
  101. give attacker 1 golden apple
  102.  
  103. #Disables The Death Messages
  104.  
  105. on death:
  106. if {arena} is true:
  107. set the death message to ""
  108.  
  109. #Regen/Speed When You Kill Someone
  110.  
  111. on death of player:
  112. if {arena} is true:
  113. clear drops
  114. apply regeneration 4 to the attacker for 2 seconds
  115. apply speed 2 to the attacker for 2 second
  116. apply strength 1 to the attacker for 5 seconds
  117. give attacker 1 player head
  118. give attacker 8 gold ingots
  119.  
  120. on hunger meter change:
  121. if {arena} is true:
  122. cancel the event
  123.  
  124.  
  125.  
  126. on mine of diamond ore:
  127. if {arena} is true:
  128. set event-block to air
  129. cancel the event
  130.  
  131. on mine of gold ore:
  132. if {arena} is true:
  133. set event-block to air
  134. cancel the event
  135.  
  136.  
  137.  
  138.  
  139. command /progression <text>:
  140. usage: /progression <enable/disable>
  141. trigger:
  142. if arg-1 is "enable" or "on":
  143. set {progression} to true
  144. broadcast "&eProgression has been &aenabled!"
  145. if arg-1 is "disable" or "off":
  146. set {progression} to false
  147. broadcast "&eProgression has been &cdisabled"
  148.  
  149.  
  150. on death of player:
  151. if {progression} is true:
  152. if {arena} is true:
  153. clear drops
  154. apply regeneration 2 to the attacker for 2 seconds
  155. apply speed 2 to the attacker for 2 second
  156. give attacker 1 diamond armour
  157. give attacker 1 ender pearl
  158. give attacker 16 arrow
  159. give attacker 50 xp
  160.  
  161.  
  162.  
  163.  
  164. #Making a no action zone with world edit's region
  165.  
  166. on drop:
  167. if player is in world "Spawn":
  168. cancel the event
  169.  
  170. on shoot:
  171. if shooter is in world "Spawn":
  172. cancel the event
  173. repair tool of shooter
  174.  
  175. on leftclick:
  176. if player is in world "Spawn":
  177. cancel the event
  178. wait 1 tick
  179. repair tool of player
  180.  
  181. on consume:
  182. if player is in world "Spawn":
  183. cancel the event
  184.  
  185. #Set up
  186.  
  187. command /hotbar [<text>]:
  188. trigger:
  189. if arg-1 is set:
  190. wait 1 tick
  191.  
  192. #Checking if player is in the No-action area
  193.  
  194. if player is in world "Spawn":
  195.  
  196. #Reseting The saved variables
  197.  
  198. if arg-1 is "arena":
  199. delete {hotbarsetup::current::%uuid of player%::*}
  200. delete {hotbarhelmet::%uuid of player%}
  201. delete {hotbarchestplate::%uuid of player%}
  202. delete {hotbarleggings::%uuid of player%}
  203. delete {hotbarboots::%uuid of player%}
  204. clear the player's inventory
  205.  
  206. #Giving Kit
  207.  
  208. equip player with diamond helmet of protection 3 and unbreaking 3 named "&9Helmet"
  209. equip player with all iron armor
  210. give player a iron sword
  211. give player a diamond pickaxe of efficiency 3
  212. give player a bow
  213. give player a water bucket
  214. give player 64 cobblestone
  215. give player 3 golden apples
  216. give player 1 ender pearl
  217. give player 64 crafting tables
  218. give player 1 lava bucket
  219. give player 128 cobblestone
  220. give player 64 dirt
  221. give player 2 anvils
  222. give player 1 enchantment table
  223. give player 64 arrow
  224. give player 64 lapis lazuli
  225. message "{@P} &7Configure your inventory to your likings and then do &c/hotbar save"
  226. stop
  227.  
  228. #Saving the setup
  229.  
  230. if arg-1 is "save":
  231. delete {hotbarsetup::current::%uuid of player%::*}
  232. loop integers from 0 to 35:
  233. add (slot loop-integer of player) to {hotbarsetup::current::%uuid of player%::* }
  234. if helmet slot of player is not air:
  235. set {hotbarhelmet::%uuid of player%} to helmet slot of player
  236. else:
  237. delete {hotbarhelmet::%uuid of player%}
  238. if chestplate slot of player is not air:
  239. set {hotbarchestplate::%uuid of player%} to chestplate slot of player
  240. else:
  241. delete {hotbarchestplate::%uuid of player%}
  242. if legging slot of player is not air:
  243. set {hotbarleggings::%uuid of player%} to legging slot of player
  244. else:
  245. delete {hotbarleggings::%uuid of player%}
  246. if boots slot of player is not air:
  247. set {hotbarboots::%uuid of player%} to boots slot of player
  248. else:
  249. delete {hotbarboots::%uuid of player%}
  250. teleport the player to {spawnlocation}
  251. clear the player's inventory
  252. message "{@P} &7Arena Setup Saved!"
  253. stop
  254.  
  255. #Arena joining command
  256.  
  257. command /arena:
  258. aliases: /a
  259. trigger:
  260. if {arena} is true:
  261. command "/xp %random integer between 30 and 60% %player%"
  262. command "/warp a%a random integer between 1 and {@Warps}% %player%"
  263. clear player's inventory
  264. heal the player
  265. command "/stuff %player%"
  266. message "{@P}{@CC} You have joined the Arena!"
  267. command "/playsound note.pling %player% ~ ~ ~ 1 0.5 1"
  268. heal the player
  269. command "/effect %player% resistance 5 5"
  270. else:
  271. message "{@P}{@CC} The PvP Arena Is Currenty {@HC}Disabled{@CC}!"
  272. stop
  273.  
  274.  
  275. #Checking if player have a custom hotbar, if so use it
  276.  
  277. if {hotbarsetup::current::%uuid of player%::*} is set:
  278. set {_c} to 0
  279. loop {barenakit::%uuid of player%::*}:
  280. set slot {_c} of player to loop-value
  281. add 1 to {_c}
  282. if {hotbarhelmet::%uuid of player%} is set:
  283. equip player with {hotbarhelmet::%uuid of player%}
  284. if {hotbarchestplate::%uuid of player%} is set:
  285. equip player with {hotbarchestplate::%uuid of player%}
  286. if {hotbarleggings::%uuid of player%} is set:
  287. equip player with {hotbarleggings::%uuid of player%}
  288. if {hotbarboots::%uuid of player%} is set:
  289. equip player with {hotbarboots::%uuid of player%}
Advertisement
Add Comment
Please, Sign In to add comment