Ilom_uk

Ilom's PvP Arena Skript

Oct 22nd, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.04 KB | None | 0 0
  1. #PvP Arena Skript - Edited by Ilom, I don't remember who originally made it.
  2. Options:
  3. P: &8[&7Nightmare UHC&8] #<<Your Servers Prefix (Edit this before use!)
  4. CC: &7 #<<Your Servers Normal Chat Colour
  5. HC: &a&o #<<Your Servers Highlighted Chat Colour
  6. World: pvparena #<<World Of Which Your PvP Arena Is Located
  7.  
  8. Variables:
  9. pvparena:fenceposts = false #Is glitchy
  10.  
  11. #Toggle The Arena On/Off
  12.  
  13. command /pvparena [<text>] [<text>] [<text>]:
  14. # usage: /pvparena <enable:disable/headposts>
  15. permission: pvparena.admin
  16. trigger:
  17. if arg-1 is "on" or "enable" or "true":
  18. set {arena} to true
  19. command "/scoreboard objectives add arenakills stat.playerKills &8[&7Arena Kills&8]"
  20. command "/scoreboard objectives setdisplay sidebar arenakills"
  21. command "/mv load pvparena"
  22. broadcast "{@P}{@CC} PvP Arena {@HC}Enabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
  23. if arg-1 is "off" or "disable" or "false":
  24. set {arena} to false
  25. command "/mv unload pvparena"
  26. command "/scoreboard objectives remove arenakills"
  27. broadcast "{@P}{@CC} PvP Arena {@HC}Disabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
  28. if arg-1 is "headpost" or "headposts":
  29. if arg-2 is "enable" or "on" or "true":
  30. set {arena:headposts} to true
  31. broadcast "{@P}{@CC} Heads will now spawn on fence posts in the PvP Arena!"
  32. if arg-2 is "disable" or "off" or "false":
  33. set {arena:headposts} to false
  34. broadcast "{@P}{@CC} Heads will now drop normally in the PvP Arena!"
  35. # if arg-1 is "mode" or "kit": #This part was broken, I removed it for sake of conscision
  36.  
  37. command /aautoreset [<text>]:
  38. usage: /aautoreset <enable:disable>
  39. permission: pvparena.admin
  40. trigger:
  41. if arg-1 is "on" or "enable" or "true":
  42. set {arenaautoreset} to true
  43. send "{@P}{@CC}Auto Reset enabled!"
  44. if arg-1 is "off" or "disable" or "false":
  45. set {arenaautoreset} to false
  46. send "{@P}{@CC}Auto Reset disabled!"
  47.  
  48.  
  49. #Join The Arena
  50.  
  51. command /arena:
  52. aliases: /a, /p
  53. trigger:
  54. if {arena} is true:
  55. command "/sct -r 199 -silent -c 0:0 -avoidSpawn 30 -w pvparena %player%"
  56. clear player's inventory
  57. heal the player
  58. command "/stuff %player%"
  59. message "{@P}{@CC} You Have Joined PvP!"
  60. command "/playsound note.pling %player% ~ ~ ~ 1 0.5 1"
  61. command "/gamemode 0 %player%"
  62. heal the player
  63. apply weakness 200 to the player for 5 seconds
  64. apply resistance 200 to the player for 5 seconds
  65. else:
  66. message "{@P}{@CC} The PvP Arena Is Currently {@HC}Disabled{@CC}!"
  67. stop
  68.  
  69. #Stops Players Joining The Arena When They Are Already In It
  70.  
  71. on command "/arena":
  72. if world of player is "pvparena":
  73. cancel the event
  74. message "{@P}{@CC} You Are Already In The PvP Arena! Use /aleave To Leave!"
  75.  
  76. #Command For Players To Leave The Arena
  77.  
  78. command /arenaleave:
  79. aliases: /aleave
  80. trigger:
  81. if player is in world "pvparena":
  82. heal the command sender
  83. clear inventory of command sender
  84. execute console command "/mv tp %player% spawn"
  85. execute console command "/effect %player% clear"
  86. execute console command "/xp -5000l %player%"
  87. execute console command "/gamemode 0 %player%"
  88. execute console command "/scoreboard players reset %player% arenakills"
  89. message "{@P}{@CC} Leaving The Arena..."
  90.  
  91. #Command Which Resets The Arena
  92.  
  93. command /arenareset [<integer>]:
  94. permission: pvparena.admin
  95. trigger:
  96. if arg-1 is not set:
  97. command "/bc Resetting arena!"
  98. command "/wb pvparena clear"
  99. set {arena} to false
  100. command "/scoreboard objectives remove arenakills"
  101. loop all players:
  102. world of loop-player is "pvparena"
  103. command "/mv tp %loop-player% spawn"
  104. heal loop-player
  105. clear inventory of loop-player
  106. command "/mv delete pvparena"
  107. wait 5 ticks
  108. command "/mvconfirm"
  109. wait 5 ticks
  110. command "/mvconfirm"
  111. command "/mvc pvparena normal"
  112. command "/wb pvparena set 201 0 0"
  113. command "/wb pvparena fill 100 40"
  114. command "/wb fill confirm"
  115. wait 15 seconds
  116. command "/setwalls pvparena 200 0 0 7"
  117. wait 15 seconds
  118. set {arena} to true
  119. command "/scoreboard objectives add arenakills stat.playerKills &8[&7Arena Kills&8]"
  120. command "/scoreboard objectives setdisplay sidebar arenakills"
  121. loop all players:
  122. message "{@P}{@CC} The Arena Map Has Reset. The Arena Is Now Open." to loop-player
  123. stop
  124. else if arg-1 is an integer:
  125. command "/bc Resetting arena!"
  126. command "/wb pvparena clear"
  127. set {arena} to false
  128. command "/scoreboard objectives remove arenakills"
  129. loop all players:
  130. world of loop-player is "pvparena"
  131. command "/mv tp %loop-player% spawn"
  132. heal loop-player
  133. clear inventory of loop-player
  134. command "/mv delete pvparena"
  135. wait 5 ticks
  136. command "/mvconfirm"
  137. command "/mvc pvparena normal -s %arg-1%"
  138. command "/wb pvparena set 201 0 0"
  139. command "/wb pvparena fill 100 40"
  140. command "/wb fill confirm"
  141. wait 15 seconds
  142. command "/setwalls pvparena 200 0 0 7"
  143. wait 15 seconds
  144. set {arena} to true
  145. command "/scoreboard objectives add arenakills stat.playerKills &8[&7Arena Kills&8]"
  146. command "/scoreboard objectives setdisplay sidebar arenakills"
  147. loop all players:
  148. message "{@P}{@CC} The Arena Map Has Reset. The Arena Is Now Open." to loop-player
  149. stop
  150.  
  151. #Auto Resets The Arena Every 60 Minutes
  152.  
  153. every 60 minutes:
  154. if {arenaautoreset} and {arena} is true:
  155. command "/arenareset"
  156. wait 60 seconds
  157.  
  158. #Command Which Gives The Items In The PvP Arena, Feel Free To Edit This..
  159.  
  160. command /stuff <player> [<text>]:
  161. executable by: players, console
  162. trigger:
  163. if arg-2 is not set:
  164. command "/xp %random integer between 100 and 120% %arg-1%"
  165. clear inventory of arg-1
  166. wait for 1 tick
  167. equip arg-1 with iron chestplate of protection 1
  168. equip arg-1 with iron leggings of protection 1
  169. equip arg-1 with iron boots of projectile protection 2
  170. equip arg-1 with iron helmet of projectile protection 2
  171. give arg-1 a iron sword of sharpness 1
  172. give arg-1 a bow of power 1
  173. give arg-1 a diamond pickaxe of efficiency 1
  174. give arg-1 a iron shovel
  175. give arg-1 64 cobblestone
  176. give arg-1 a water bucket
  177. give arg-1 a lava bucket
  178. give arg-1 2 golden apples
  179. give arg-1 1 ender pearl
  180. give arg-1 64 cobblestone
  181. give arg-1 64 crafting table
  182. give arg-1 64 17
  183. give arg-1 4 apples
  184. give arg-1 10 dirt
  185. give arg-1 64 arrows
  186. give arg-1 1 flint and steel
  187. give arg-1 1 iron axe
  188. give arg-1 32 iron ingots
  189. give arg-1 3 books
  190. give arg-1 3 enchantment tables
  191. give arg-1 3 anvils
  192. give arg-1 1 gold ingot
  193. give arg-1 1 diamond
  194. give arg-1 64 dye:4
  195. chance of 50%:
  196. give arg-1 1 diamond
  197. chance of 8%:
  198. give arg-1 1 iron sword of fire aspect 1
  199. chance of 5%:
  200. give arg-1 1 bow of flame 1
  201. chance of 5%:
  202. give arg-1 1 bow of infinity 1
  203. chance of 10%:
  204. give arg-1 1 music disc
  205. give arg-1 1 jukebox
  206. chance of 20%:
  207. give arg-1 2 diamonds
  208. chance of 10%:
  209. give arg-1 5 diamonds
  210. chance of 5%:
  211. give arg-1 12 diamonds
  212. chance of 3%:
  213. give arg-1 1 bow of power 4
  214. chance of 5%:
  215. give arg-1 1 bow of power 3
  216. chance of 3%:
  217. give arg-1 1 iron sword of sharpness 4
  218. chance of 30%:
  219. give arg-1 1 diamond chestplate of protection 1
  220. chance of 10%:
  221. give arg-1 1 bow of power 2
  222. chance of 15%:
  223. give arg-1 1 bow of power 1
  224. chance of 5%:
  225. give arg-1 1 bow of punch 1
  226. chance of 2.5%:
  227. give arg-1 1 bow of punch 2
  228. chance of 10%:
  229. give arg-1 1 iron sword of sharpness 2
  230. chance of 5%:
  231. give arg-1 1 iron sword of sharpness 3
  232. chance of 7.5%:
  233. give arg-1 1 iron sword of knockback 1
  234. chance of 5%:
  235. give arg-1 1 iron sword of knockback 2
  236. chance of 5%:
  237. give arg-1 3 golden apples
  238. chance of 2.5%:
  239. give arg-1 5 golden apples
  240. chance of 20%:
  241. give arg-1 1 golden apple
  242. chance of 30%:
  243. give arg-1 4 gold ingots
  244. chance of 10%:
  245. give arg-1 1 ender pearl
  246. chance of 35%:
  247. give arg-1 1 diamond helmet of protection 1
  248. chance of 35%:
  249. give arg-1 1 diamond boots of protection 1
  250. chance of 35%:
  251. give arg-1 1 diamond leggings of protection 1
  252. chance of 5%:
  253. give arg-1 1 saddle
  254. give arg-1 1 horse spawn egg
  255. chance of 20%:
  256. give arg-1 1 diamond horse armor
  257. else:
  258. chance of 20%:
  259. give arg-1 1 gold horse armor
  260. else:
  261. chance of 20%:
  262. give arg-1 1 iron horse armor
  263. else:
  264. give arg-1 2 wheat
  265. chance of 7.5%:
  266. clear inventory of arg-1
  267. equip arg-1 with all iron armor
  268. give arg-1 a iron sword
  269. give arg-1 a bow
  270. give arg-1 a iron pickaxe
  271. give arg-1 a iron shovel
  272. give arg-1 64 cobblestone
  273. give arg-1 a water bucket
  274. give arg-1 a lava bucket
  275. give arg-1 1 golden apple
  276. give arg-1 32 cobblestone
  277. give arg-1 30 crafting table
  278. give arg-1 64 17
  279. give arg-1 4 apples
  280. give arg-1 64 arrows
  281. give arg-1 1 flint and steel
  282. give arg-1 1 iron axe
  283. give arg-1 32 iron ingots
  284. give arg-1 64 dye:4
  285. give arg-1 3 potions of speed 1
  286. give arg-1 3 potions of strength 1
  287. give arg-1 1 brewing stand
  288. give arg-1 20 nether wart
  289. give arg-1 20 redstone
  290. give arg-1 20 glowstone dust
  291. give arg-1 18 glass bottles
  292. give arg-1 6 melon slices
  293. give arg-1 2 blaze powder
  294. give arg-1 2 sugar
  295.  
  296. if arg-2 is "iron":
  297. clear inventory of arg-1
  298. command "/xp %random integer between 100 and 120% %arg-1%"
  299. wait for 1 tick
  300. equip arg-1 with iron chestplate
  301. equip arg-1 with iron leggings
  302. equip arg-1 with iron boots
  303. equip arg-1 with iron helmet
  304. give arg-1 a iron sword
  305. give arg-1 a bow
  306. give arg-1 a iron pickaxe
  307. give arg-1 a iron shovel
  308. give arg-1 64 cobblestone
  309. give arg-1 a water bucket
  310. give arg-1 a lava bucket
  311. give arg-1 2 golden apples
  312. give arg-1 1 ender pearl
  313. give arg-1 64 arrows
  314. give arg-1 64 cobblestone
  315. give arg-1 64 crafting table
  316. give arg-1 64 17
  317. give arg-1 4 apples
  318. give arg-1 1 flint and steel
  319. give arg-1 3 anvils
  320. give arg-1 1 iron axe
  321. give arg-1 32 iron ingots
  322. give arg-1 1 gold ingot
  323. give arg-1 64 dye:4
  324. chance of 5%:
  325. give arg-1 1 iron sword of fire aspect 1
  326. chance of 2.5%:
  327. give arg-1 1 iron sword of fire aspect 2
  328. chance of 2.5%:
  329. give arg-1 1 bow of flame 1
  330. chance of 5%:
  331. give arg-1 1 bow of infinity 1
  332. chance of 2.5%:
  333. give arg-1 1 bow of power 3
  334. chance of 5%:
  335. give arg-1 1 bow of power 2
  336. chance of 7.5%:
  337. give arg-1 1 bow of power 1
  338. chance of 5%:
  339. give arg-1 1 bow of punch 1
  340. chance of 2.5%:
  341. give arg-1 1 bow of punch 2
  342. chance of 7.5%:
  343. give arg-1 1 iron sword of sharpness 2
  344. chance of 5%:
  345. give arg-1 1 iron sword of sharpness 3
  346. chance of 5%:
  347. give arg-1 1 iron sword of knockback 2
  348. chance of 10%:
  349. give arg-1 2 golden apples
  350. chance of 5%:
  351. give arg-1 3 golden apples
  352. chance of 2.5%:
  353. give arg-1 5 golden apples
  354. chance of 1%:
  355. give arg-1 7 golden apples
  356. chance of 15%:
  357. give arg-1 1 golden apple
  358. chance of 20%:
  359. give arg-1 4 gold ingots
  360. chance of 5%:
  361. give arg-1 1 ender pearl
  362. chance of 2.5%:
  363. give arg-1 1 saddle
  364. give arg-1 1 horse spawn egg
  365. chance of 20%:
  366. give arg-1 1 diamond horse armor
  367. else:
  368. chance of 20%:
  369. give arg-1 1 gold horse armor
  370. else:
  371. chance of 20%:
  372. give arg-1 1 iron horse armor
  373. else:
  374. give arg-1 2 wheat
  375.  
  376. if arg-2 is "normal":
  377. command "/xp %random integer between 100 and 120% %arg-1%"
  378. clear inventory of arg-1
  379. wait for 1 tick
  380. equip arg-1 with iron chestplate of protection 1
  381. equip arg-1 with iron leggings of protection 1
  382. equip arg-1 with iron boots of projectile protection 2
  383. equip arg-1 with iron helmet of projectile protection 2
  384. give arg-1 a iron sword of sharpness 1
  385. give arg-1 a bow of power 1
  386. give arg-1 a diamond pickaxe of efficiency 1
  387. give arg-1 a iron shovel
  388. give arg-1 64 cobblestone
  389. give arg-1 a water bucket
  390. give arg-1 a lava bucket
  391. give arg-1 2 golden apples
  392. give arg-1 1 ender pearl
  393. give arg-1 64 cobblestone
  394. give arg-1 64 crafting table
  395. give arg-1 64 17
  396. give arg-1 4 apples
  397. give arg-1 10 dirt
  398. give arg-1 64 arrows
  399. give arg-1 1 flint and steel
  400. give arg-1 1 iron axe
  401. give arg-1 32 iron ingots
  402. give arg-1 3 books
  403. give arg-1 3 enchantment tables
  404. give arg-1 3 anvils
  405. give arg-1 1 gold ingot
  406. give arg-1 1 diamond
  407. give arg-1 64 dye:4
  408. chance of 50%:
  409. give arg-1 1 diamond
  410. chance of 8%:
  411. give arg-1 1 iron sword of fire aspect 1
  412. chance of 5%:
  413. give arg-1 1 bow of flame 1
  414. chance of 5%:
  415. give arg-1 1 bow of infinity 1
  416. chance of 10%:
  417. give arg-1 1 music disc
  418. give arg-1 1 jukebox
  419. chance of 20%:
  420. give arg-1 2 diamonds
  421. chance of 10%:
  422. give arg-1 5 diamonds
  423. chance of 5%:
  424. give arg-1 12 diamonds
  425. chance of 3%:
  426. give arg-1 1 bow of power 4
  427. chance of 5%:
  428. give arg-1 1 bow of power 3
  429. chance of 3%:
  430. give arg-1 1 iron sword of sharpness 4
  431. chance of 30%:
  432. give arg-1 1 diamond chestplate of protection 1
  433. chance of 10%:
  434. give arg-1 1 bow of power 2
  435. chance of 15%:
  436. give arg-1 1 bow of power 1
  437. chance of 5%:
  438. give arg-1 1 bow of punch 1
  439. chance of 2.5%:
  440. give arg-1 1 bow of punch 2
  441. chance of 10%:
  442. give arg-1 1 iron sword of sharpness 2
  443. chance of 5%:
  444. give arg-1 1 iron sword of sharpness 3
  445. chance of 7.5%:
  446. give arg-1 1 iron sword of knockback 1
  447. chance of 5%:
  448. give arg-1 1 iron sword of knockback 2
  449. chance of 5%:
  450. give arg-1 3 golden apples
  451. chance of 2.5%:
  452. give arg-1 5 golden apples
  453. chance of 20%:
  454. give arg-1 1 golden apple
  455. chance of 30%:
  456. give arg-1 4 gold ingots
  457. chance of 10%:
  458. give arg-1 1 ender pearl
  459. chance of 35%:
  460. give arg-1 1 diamond helmet of projectile protection 1
  461. chance of 35%:
  462. give arg-1 1 diamond boots of projectile protection 1
  463. chance of 35%:
  464. give arg-1 1 diamond leggings of protection 1
  465. chance of 5%:
  466. give arg-1 1 saddle
  467. give arg-1 1 horse spawn egg
  468. chance of 20%:
  469. give arg-1 1 diamond horse armor
  470. else:
  471. chance of 20%:
  472. give arg-1 1 gold horse armor
  473. else:
  474. chance of 20%:
  475. give arg-1 1 iron horse armor
  476. else:
  477. give arg-1 2 wheat
  478. chance of 7.5%:
  479. clear inventory of arg-1
  480. equip arg-1 with all iron armor
  481. give arg-1 a iron sword
  482. give arg-1 a bow
  483. give arg-1 a iron pickaxe
  484. give arg-1 a iron shovel
  485. give arg-1 64 cobblestone
  486. give arg-1 a water bucket
  487. give arg-1 a lava bucket
  488. give arg-1 1 golden apple
  489. give arg-1 32 cobblestone
  490. give arg-1 30 crafting table
  491. give arg-1 64 17
  492. give arg-1 4 apples
  493. give arg-1 64 arrows
  494. give arg-1 1 flint and steel
  495. give arg-1 1 iron axe
  496. give arg-1 32 iron ingots
  497. give arg-1 64 dye:4
  498. give arg-1 3 potions of speed 1
  499. give arg-1 3 potions of strength 1
  500. give arg-1 1 brewing stand
  501. give arg-1 20 nether wart
  502. give arg-1 20 redstone
  503. give arg-1 20 glowstone dust
  504. give arg-1 18 glass bottles
  505. give arg-1 6 melon slices
  506. give arg-1 2 blaze powder
  507. give arg-1 2 sugar
  508.  
  509. if arg-2 is "uhc":
  510. command "/xp %random integer between 100 and 120% %arg-1%"
  511. clear inventory of arg-1
  512. wait for 1 tick
  513. equip arg-1 with iron chestplate of protection 2
  514. equip arg-1 with iron leggings of protection 1
  515. equip arg-1 with iron boots of projectile protection 2
  516. equip arg-1 with iron helmet of projectile protection 2
  517. give arg-1 a iron sword of sharpness 2
  518. give arg-1 a bow of power 1
  519. give arg-1 a diamond pickaxe of efficiency 1
  520. give arg-1 a iron shovel
  521. give arg-1 64 cobblestone
  522. give arg-1 a water bucket
  523. give arg-1 a lava bucket
  524. give arg-1 3 golden apples
  525. give arg-1 1 ender pearl
  526. give arg-1 64 cobblestone
  527. give arg-1 64 crafting table
  528. give arg-1 64 17
  529. give arg-1 4 apples
  530. give arg-1 96 arrows
  531. give arg-1 1 flint and steel
  532. give arg-1 1 iron axe
  533. give arg-1 32 iron ingots
  534. give arg-1 3 books
  535. give arg-1 3 enchantment tables
  536. give arg-1 3 anvils
  537. give arg-1 1 gold ingot
  538. give arg-1 1 diamond
  539. give arg-1 64 dye:4
  540.  
  541. if arg-2 is "ironuhc":
  542. clear inventory of arg-1
  543. command "/xp %random integer between 100 and 120% %arg-1%"
  544. wait for 1 tick
  545. equip arg-1 with iron chestplate
  546. equip arg-1 with iron leggings
  547. equip arg-1 with iron boots
  548. equip arg-1 with iron helmet
  549. give arg-1 a iron sword
  550. give arg-1 a bow
  551. give arg-1 a iron pickaxe
  552. give arg-1 a iron shovel
  553. give arg-1 64 cobblestone
  554. give arg-1 a water bucket
  555. give arg-1 a lava bucket
  556. give arg-1 3 golden apples
  557. give arg-1 1 ender pearl
  558. give arg-1 96 arrows
  559. give arg-1 64 cobblestone
  560. give arg-1 64 crafting table
  561. give arg-1 64 17
  562. give arg-1 4 apples
  563. give arg-1 1 flint and steel
  564. give arg-1 3 anvils
  565. give arg-1 1 iron axe
  566. give arg-1 32 iron ingots
  567. give arg-1 1 gold ingot
  568. give arg-1 64 dye:4
  569.  
  570. #Sends The Player You Killed/You Who They Were Killed By, and Who They Killed
  571.  
  572. on death:
  573. if {arena} is true:
  574. victim is a player
  575. world of the victim is "pvparena"
  576. if damage was caused by a projectile:
  577. clear drops
  578. set {_loc%victim%} to victim's location
  579. send "{@P}{@CC} You killed {@HC}%victim%{@CC}!" to the attacker
  580. send "{@P}{@CC} You were killed by: {@HC}%attacker% at %health of attacker*10%%% health!{@CC}" to the victim
  581. drop 8 gold ingots at {_loc%victim%}
  582. drop 1 golden apple at {_loc%victim%}
  583. chance of 50%:
  584. drop 2 diamonds at {_loc%victim%}
  585. chance of 40%:
  586. drop 3 diamonds at {_loc%victim%}
  587. else:
  588. drop 1 diamond at {_loc%victim%}
  589. drop 3 books at {_loc%victim%}
  590. drop 2 apples at {_loc%victim%}
  591. drop 32 arrows at {_loc%victim%}
  592. chance of 20%:
  593. drop 2 obsidian at {_loc%victim%}
  594. chance of 30%:
  595. drop 1 ender pearl at {_loc%victim%}
  596. chance of 25%:
  597. drop 16 dye:4 at {_loc%victim%}
  598. else:
  599. drop 4 gold ingots at {_loc%victim%}
  600. command "/xp %random integer between 20 and 80% %attacker%"
  601. command "/gamemode 0 %victim%"
  602. command "/scoreboard players reset %victim% arenakills"
  603. wait 1 second
  604. delete {_loc%victim%}
  605. command "/clearxp %victim%"
  606. else:
  607. clear drops
  608. send "{@P}{@CC} You killed {@HC}%victim%{@CC}!" to the attacker
  609. send "{@P}{@CC} You were killed by: {@HC}%attacker% at %health of attacker*10%%% health!{@CC}" to the victim
  610. drop 8 gold ingots at the player
  611. drop 1 golden apple at the player
  612. chance of 50%:
  613. drop 2 diamonds at the player
  614. chance of 40%:
  615. drop 3 diamonds at the player
  616. else:
  617. drop 1 diamond at the player
  618. drop 3 books at the player
  619. drop 2 apples at the player
  620. drop 32 arrows at the player
  621. chance of 20%:
  622. drop 2 obsidian at the player
  623. chance of 30%:
  624. drop 1 ender pearl at the player
  625. chance of 25%:
  626. drop 16 dye:4 at the player
  627. else:
  628. drop 4 gold ingots at the player
  629. command "/xp %random integer between 20 and 80% %attacker%"
  630. command "/gamemode 0 %victim%"
  631. command "/scoreboard players reset %victim% arenakills"
  632. wait 1 second
  633. command "/clearxp %victim%"
  634.  
  635. on death:
  636. if {arena} is true:
  637. victim is a player
  638. world of the victim is "pvparena"
  639. if {arena:headposts} is true:
  640. set {__loc} to victim's location
  641. set block at {__loc} to nether brick fence
  642. set {_x} to victim's x-coordinate
  643. set {_y} to (victim's y-coordinate+1)
  644. set {_z} to victim's z-coordinate
  645. execute player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:skull 1 keep {SkullType:3,ExtraType:""%victim%""}"
  646. wait 1 second
  647. delete {__loc}
  648. else if {arena:headposts} is false:
  649. drop the victim's skull at the player
  650.  
  651. #Speed When You Kill Someone
  652.  
  653. on death of player:
  654. {arena} is true:
  655. world is "pvparena"
  656. clear drops
  657. apply speed 2 to the attacker for 8 seconds
  658.  
  659. #Disables Hunger Loss
  660.  
  661. on hunger meter change:
  662. if {arena} is true:
  663. set player's hunger meter to 10
Advertisement
Add Comment
Please, Sign In to add comment