Ilom_uk

Ilom's MU Sims Skript

Oct 22nd, 2017
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.04 KB | None | 0 0
  1. #Ilom's MU Sims Skript - Works best with Ghowden's UHC plugin and a spectator skript.
  2. options:
  3. prefix: &7[&8MU Sims&7]&c
  4.  
  5. command /meetupsims [<text>]:
  6. permission: skript.op
  7. aliases: /musims, /musim,
  8. trigger:
  9. if arg-1 is not set:
  10. message "{@prefix} &cYou need to put in a kit for MU Sims! Valid kits are: Iron, IronUHC, UHC, Normal..."
  11. command "/playsound mob.cat.meow %player% ~ ~ ~ 1 1 1"
  12. if arg-1 is "iron":
  13. loop all players:
  14. command "/spawn %loop-player%"
  15. command "/minecraft:gamemode 0 @a"
  16. command "/ci *"
  17. command "/team reset"
  18. command "/kings delete"
  19. command "/shstop"
  20. command "/setmaxhealth 20 *"
  21. command "/heal -a"
  22. command "/clearxp -a"
  23. wait for 1 tick
  24. loop all players:
  25. command "/stuff %loop-player% iron"
  26. command "/mv tp pvparena %loop-player%"
  27. wait for 1 tick
  28. command "/warp %loop-player% musimsbox"
  29. set {musims-%loop-player%} to true
  30. command "/freeze %loop-player%"
  31. wait for 5 seconds
  32. set {musims-ready} to true
  33. message "{@prefix} &cPlayers now ready for MU Sims!"
  34. if arg-1 is "normal":
  35. loop all players:
  36. command "/spawn %loop-player%"
  37. command "/minecraft:gamemode 0 @a"
  38. command "/ci *"
  39. command "/team reset"
  40. command "/kings delete"
  41. command "/shstop"
  42. command "/setmaxhealth 20 *"
  43. command "/heal -a"
  44. command "/clearxp -a"
  45. wait for 1 tick
  46. set {musims-ready} to true
  47. loop all players:
  48. command "/stuff %loop-player% normal"
  49. command "/mv tp pvparena %loop-player%"
  50. set {musims-%loop-player%} to true
  51. wait for 1 tick
  52. command "/warp %loop-player% musimsbox"
  53. command "/freeze on"
  54. wait for 5 seconds
  55. message "{@prefix} &cPlayers now ready for MU Sims!"
  56. if arg-1 is "uhc":
  57. loop all players:
  58. command "/spawn %loop-player%"
  59. command "/minecraft:gamemode 0 @a"
  60. command "/ci *"
  61. command "/team reset"
  62. command "/kings delete"
  63. command "/shstop"
  64. command "/setmaxhealth 20 *"
  65. command "/heal -a"
  66. command "/clearxp -a"
  67. wait for 1 tick
  68. set {musims-ready} to true
  69. loop all players:
  70. command "/stuff %loop-player% uhc"
  71. command "/mv tp pvparena %loop-player%"
  72. set {musims-%loop-player%} to true
  73. wait for 1 tick
  74. command "/warp %loop-player% musimsbox"
  75. command "/freeze on"
  76. wait for 5 seconds
  77. message "{@prefix} &cPlayers now ready for MU Sims!"
  78. if arg-1 is "ironuhc":
  79. loop all players:
  80. command "/spawn %loop-player%"
  81. command "/minecraft:gamemode 0 @a"
  82. command "/ci *"
  83. command "/team reset"
  84. command "/kings delete"
  85. command "/shstop"
  86. command "/setmaxhealth 20 *"
  87. command "/heal -a"
  88. command "/clearxp -a"
  89. wait for 1 tick
  90. set {musims-ready} to true
  91. loop all players:
  92. command "/stuff %loop-player% ironuhc"
  93. command "/mv tp pvparena %loop-player%"
  94. set {musims-%loop-player%} to true
  95. wait for 1 tick
  96. command "/warp %loop-player% musimsbox"
  97. command "/uhc enable fancyfreeze"
  98. wait for 5 seconds
  99. message "{@prefix} &cPlayers now ready for MU Sims!"
  100. if arg-1 is "help":
  101. message "{@prefix} &cYou need to put in a kit for MU Sims! Valid kits are: Iron, IronUHC, UHC, Normal..."
  102. wait for 1 tick
  103. message "{@prefix} &cMU Sims commands are /musims [kit], /simscatter [team/solo], /startsims and /endsims."
  104. command "/playsound mob.cat.meow %player% ~ ~ ~ 1 1 1"
  105.  
  106. command /musimscatter [<text>]:
  107. permission: skript.op
  108. aliases: /simscatter
  109. trigger:
  110. if arg-1 is not set:
  111. command "/sct -r 199 -c 0:0 -w pvparena -m 75 -t"
  112. broadcast "{@prefix} &cPlayers scattered for Team MU Sims!"
  113. wait for 1 tick
  114. command "/uhc enable fancyfreeze"
  115. command "/heal -a -s"
  116. if arg-1 is "teams" or "team" or "-t":
  117. command "/sct -r 199 -c 0:0 -w pvparena -m 75 -t"
  118. broadcast "{@prefix} &cPlayers scattered for Team MU Sims!"
  119. wait for 1 tick
  120. command "/uhc enable fancyfreeze"
  121. command "/heal -a -s"
  122. if arg-1 is "ffa" or "solo":
  123. command "/sct -r 199 -c 0:0 -w pvparena -m 75"
  124. broadcast "{@prefix} &cPlayers scattered for FFA MU Sims!"
  125. wait for 1 tick
  126. command "/uhc enable fancyfreeze"
  127. command "/heal -a -s"
  128.  
  129. command /startsims:
  130. permission: skript.op
  131. trigger:
  132. if {musims-running} is false:
  133. broadcast "{@prefix} &cStarting MU Sims, unfreezing all players..."
  134. command "/bc GO!"
  135. command "/day"
  136. command "/butcher"
  137. command "/heal -a -s"
  138. command "/uhc disable fancyfreeze"
  139. command "/specinfo reset"
  140. command "/selectarmor clearall"
  141. wait for 5 seconds
  142. set {musims-running} to true
  143. command "/heal -a"
  144. command "/setmoles"
  145. loop all players:
  146. set {musims-%loop-player%} to true
  147. command "/gm 0 %loop-player%"
  148. command "/playsound random.anvil_land %loop-player% ~ ~ ~ 1 1 1"
  149. broadcast "{@prefix} &cYou may now begin."
  150. command "/minecraft:worldborder set 402"
  151. wait for 10 seconds
  152. command "/heal -a"
  153. broadcast "{@prefix} &cFinal heal given."
  154. loop all players:
  155. command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  156. else:
  157. message "{@prefix} &cYou must end the previous MU Sims using /endsims before starting again."
  158. command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  159.  
  160. command /endsims:
  161. permission: skript.op
  162. trigger:
  163. broadcast "{@prefix} &cEnding MU Sims - Teleporting all players to spawn."
  164. wait for 1 tick
  165. command "/specinfo reset"
  166. set {musims-running} to false
  167. set {musims-ready} to false
  168. loop all players:
  169. clear inventory of the loop-player
  170. set {musims-%loop-player%} to false
  171. command "/spawn %loop-player%"
  172. command "/unspec %loop-player%"
  173. command "/playsound mob.enderdragon.growl %loop-player% ~ ~ ~ 1 1 1"
  174. on command "/arena" or "/a" or "/p":
  175. if {musims-running} or {musims-ready} is true:
  176. cancel the event
  177. if {musims-%player%} is false:
  178. message "{@prefix} &cYou cannot join arena whilst MU Sims is running."
  179. command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  180. if {musims-%player%} is true:
  181. command "/spec %player%"
  182. on death of player:
  183. if {musims-running} is true:
  184. loop all players:
  185. command "/playsound mob.blaze.death %loop-player% ~ ~ ~ 0.4 1 1"
  186. set {musims-%player%} to false
  187. wait for 5 seconds
  188. if {musims-running} is true:
  189. command "/spec %victim%"
  190.  
  191. on join:
  192. if {musims-running} is true:
  193. if {musims-%player%} is true:
  194. stop
  195.  
  196. else:
  197. set {musims-%player%} to false
  198. wait for 5 seconds
  199. command "/spec %player%"
  200.  
  201. # Kits
  202.  
  203. command /stuff <player> [<text>]:
  204. executable by: players, console
  205. trigger:
  206. if arg-2 is not set:
  207. command "/xp %random integer between 100 and 120% %arg-1%"
  208. clear inventory of arg-1
  209. wait for 1 tick
  210. equip arg-1 with iron chestplate of protection 1
  211. equip arg-1 with iron leggings of protection 1
  212. equip arg-1 with iron boots of projectile protection 2
  213. equip arg-1 with iron helmet of projectile protection 2
  214. give arg-1 a iron sword of sharpness 1
  215. give arg-1 a bow of power 1
  216. give arg-1 a diamond pickaxe of efficiency 1
  217. give arg-1 a iron shovel
  218. give arg-1 64 cobblestone
  219. give arg-1 a water bucket
  220. give arg-1 a lava bucket
  221. give arg-1 2 golden apples
  222. give arg-1 1 ender pearl
  223. give arg-1 64 cobblestone
  224. give arg-1 64 crafting table
  225. give arg-1 64 17
  226. give arg-1 4 apples
  227. give arg-1 10 dirt
  228. give arg-1 64 arrows
  229. give arg-1 1 flint and steel
  230. give arg-1 1 iron axe
  231. give arg-1 32 iron ingots
  232. give arg-1 3 books
  233. give arg-1 3 enchantment tables
  234. give arg-1 3 anvils
  235. give arg-1 1 gold ingot
  236. give arg-1 1 diamond
  237. give arg-1 64 dye:4
  238. chance of 50%:
  239. give arg-1 1 diamond
  240. chance of 8%:
  241. give arg-1 1 iron sword of fire aspect 1
  242. chance of 5%:
  243. give arg-1 1 bow of flame 1
  244. chance of 5%:
  245. give arg-1 1 bow of infinity 1
  246. chance of 10%:
  247. give arg-1 1 music disc
  248. give arg-1 1 jukebox
  249. chance of 20%:
  250. give arg-1 2 diamonds
  251. chance of 10%:
  252. give arg-1 5 diamonds
  253. chance of 5%:
  254. give arg-1 12 diamonds
  255. chance of 3%:
  256. give arg-1 1 bow of power 4
  257. chance of 5%:
  258. give arg-1 1 bow of power 3
  259. chance of 3%:
  260. give arg-1 1 iron sword of sharpness 4
  261. chance of 30%:
  262. give arg-1 1 diamond chestplate of protection 1
  263. chance of 10%:
  264. give arg-1 1 bow of power 2
  265. chance of 15%:
  266. give arg-1 1 bow of power 1
  267. chance of 5%:
  268. give arg-1 1 bow of punch 1
  269. chance of 2.5%:
  270. give arg-1 1 bow of punch 2
  271. chance of 10%:
  272. give arg-1 1 iron sword of sharpness 2
  273. chance of 5%:
  274. give arg-1 1 iron sword of sharpness 3
  275. chance of 7.5%:
  276. give arg-1 1 iron sword of knockback 1
  277. chance of 5%:
  278. give arg-1 1 iron sword of knockback 2
  279. chance of 5%:
  280. give arg-1 3 golden apples
  281. chance of 2.5%:
  282. give arg-1 5 golden apples
  283. chance of 20%:
  284. give arg-1 1 golden apple
  285. chance of 30%:
  286. give arg-1 4 gold ingots
  287. chance of 10%:
  288. give arg-1 1 ender pearl
  289. chance of 35%:
  290. give arg-1 1 diamond helmet of protection 1
  291. chance of 35%:
  292. give arg-1 1 diamond boots of protection 1
  293. chance of 35%:
  294. give arg-1 1 diamond leggings of protection 1
  295. chance of 5%:
  296. give arg-1 1 saddle
  297. give arg-1 1 horse spawn egg
  298. chance of 20%:
  299. give arg-1 1 diamond horse armor
  300. else:
  301. chance of 20%:
  302. give arg-1 1 gold horse armor
  303. else:
  304. chance of 20%:
  305. give arg-1 1 iron horse armor
  306. else:
  307. give arg-1 2 wheat
  308. chance of 7.5%:
  309. clear inventory of arg-1
  310. equip arg-1 with all iron armor
  311. give arg-1 a iron sword
  312. give arg-1 a bow
  313. give arg-1 a iron pickaxe
  314. give arg-1 a iron shovel
  315. give arg-1 64 cobblestone
  316. give arg-1 a water bucket
  317. give arg-1 a lava bucket
  318. give arg-1 1 golden apple
  319. give arg-1 32 cobblestone
  320. give arg-1 30 crafting table
  321. give arg-1 64 17
  322. give arg-1 4 apples
  323. give arg-1 64 arrows
  324. give arg-1 1 flint and steel
  325. give arg-1 1 iron axe
  326. give arg-1 32 iron ingots
  327. give arg-1 64 dye:4
  328. give arg-1 3 potions of speed 1
  329. give arg-1 3 potions of strength 1
  330. give arg-1 1 brewing stand
  331. give arg-1 20 nether wart
  332. give arg-1 20 redstone
  333. give arg-1 20 glowstone dust
  334. give arg-1 18 glass bottles
  335. give arg-1 6 melon slices
  336. give arg-1 2 blaze powder
  337. give arg-1 2 sugar
  338.  
  339. if arg-2 is "iron":
  340. clear inventory of arg-1
  341. command "/xp %random integer between 100 and 120% %arg-1%"
  342. wait for 1 tick
  343. equip arg-1 with iron chestplate
  344. equip arg-1 with iron leggings
  345. equip arg-1 with iron boots
  346. equip arg-1 with iron helmet
  347. give arg-1 a iron sword
  348. give arg-1 a bow
  349. give arg-1 a iron pickaxe
  350. give arg-1 a iron shovel
  351. give arg-1 64 cobblestone
  352. give arg-1 a water bucket
  353. give arg-1 a lava bucket
  354. give arg-1 2 golden apples
  355. give arg-1 1 ender pearl
  356. give arg-1 64 arrows
  357. give arg-1 64 cobblestone
  358. give arg-1 64 crafting table
  359. give arg-1 64 17
  360. give arg-1 4 apples
  361. give arg-1 1 flint and steel
  362. give arg-1 3 anvils
  363. give arg-1 1 iron axe
  364. give arg-1 32 iron ingots
  365. give arg-1 1 gold ingot
  366. give arg-1 64 dye:4
  367. chance of 5%:
  368. give arg-1 1 iron sword of fire aspect 1
  369. chance of 2.5%:
  370. give arg-1 1 iron sword of fire aspect 2
  371. chance of 2.5%:
  372. give arg-1 1 bow of flame 1
  373. chance of 5%:
  374. give arg-1 1 bow of infinity 1
  375. chance of 2.5%:
  376. give arg-1 1 bow of power 3
  377. chance of 5%:
  378. give arg-1 1 bow of power 2
  379. chance of 7.5%:
  380. give arg-1 1 bow of power 1
  381. chance of 5%:
  382. give arg-1 1 bow of punch 1
  383. chance of 2.5%:
  384. give arg-1 1 bow of punch 2
  385. chance of 7.5%:
  386. give arg-1 1 iron sword of sharpness 2
  387. chance of 5%:
  388. give arg-1 1 iron sword of sharpness 3
  389. chance of 5%:
  390. give arg-1 1 iron sword of knockback 2
  391. chance of 10%:
  392. give arg-1 2 golden apples
  393. chance of 5%:
  394. give arg-1 3 golden apples
  395. chance of 2.5%:
  396. give arg-1 5 golden apples
  397. chance of 1%:
  398. give arg-1 7 golden apples
  399. chance of 15%:
  400. give arg-1 1 golden apple
  401. chance of 20%:
  402. give arg-1 4 gold ingots
  403. chance of 5%:
  404. give arg-1 1 ender pearl
  405. chance of 2.5%:
  406. give arg-1 1 saddle
  407. give arg-1 1 horse spawn egg
  408. chance of 20%:
  409. give arg-1 1 diamond horse armor
  410. else:
  411. chance of 20%:
  412. give arg-1 1 gold horse armor
  413. else:
  414. chance of 20%:
  415. give arg-1 1 iron horse armor
  416. else:
  417. give arg-1 2 wheat
  418.  
  419. if arg-2 is "normal":
  420. command "/xp %random integer between 100 and 120% %arg-1%"
  421. clear inventory of arg-1
  422. wait for 1 tick
  423. equip arg-1 with iron chestplate of protection 1
  424. equip arg-1 with iron leggings of protection 1
  425. equip arg-1 with iron boots of projectile protection 2
  426. equip arg-1 with iron helmet of projectile protection 2
  427. give arg-1 a iron sword of sharpness 1
  428. give arg-1 a bow of power 1
  429. give arg-1 a diamond pickaxe of efficiency 1
  430. give arg-1 a iron shovel
  431. give arg-1 64 cobblestone
  432. give arg-1 a water bucket
  433. give arg-1 a lava bucket
  434. give arg-1 2 golden apples
  435. give arg-1 1 ender pearl
  436. give arg-1 64 cobblestone
  437. give arg-1 64 crafting table
  438. give arg-1 64 17
  439. give arg-1 4 apples
  440. give arg-1 10 dirt
  441. give arg-1 64 arrows
  442. give arg-1 1 flint and steel
  443. give arg-1 1 iron axe
  444. give arg-1 32 iron ingots
  445. give arg-1 3 books
  446. give arg-1 3 enchantment tables
  447. give arg-1 3 anvils
  448. give arg-1 1 gold ingot
  449. give arg-1 1 diamond
  450. give arg-1 64 dye:4
  451. chance of 50%:
  452. give arg-1 1 diamond
  453. chance of 8%:
  454. give arg-1 1 iron sword of fire aspect 1
  455. chance of 5%:
  456. give arg-1 1 bow of flame 1
  457. chance of 5%:
  458. give arg-1 1 bow of infinity 1
  459. chance of 10%:
  460. give arg-1 1 music disc
  461. give arg-1 1 jukebox
  462. chance of 20%:
  463. give arg-1 2 diamonds
  464. chance of 10%:
  465. give arg-1 5 diamonds
  466. chance of 5%:
  467. give arg-1 12 diamonds
  468. chance of 3%:
  469. give arg-1 1 bow of power 4
  470. chance of 5%:
  471. give arg-1 1 bow of power 3
  472. chance of 3%:
  473. give arg-1 1 iron sword of sharpness 4
  474. chance of 30%:
  475. give arg-1 1 diamond chestplate of protection 1
  476. chance of 10%:
  477. give arg-1 1 bow of power 2
  478. chance of 15%:
  479. give arg-1 1 bow of power 1
  480. chance of 5%:
  481. give arg-1 1 bow of punch 1
  482. chance of 2.5%:
  483. give arg-1 1 bow of punch 2
  484. chance of 10%:
  485. give arg-1 1 iron sword of sharpness 2
  486. chance of 5%:
  487. give arg-1 1 iron sword of sharpness 3
  488. chance of 7.5%:
  489. give arg-1 1 iron sword of knockback 1
  490. chance of 5%:
  491. give arg-1 1 iron sword of knockback 2
  492. chance of 5%:
  493. give arg-1 3 golden apples
  494. chance of 2.5%:
  495. give arg-1 5 golden apples
  496. chance of 20%:
  497. give arg-1 1 golden apple
  498. chance of 30%:
  499. give arg-1 4 gold ingots
  500. chance of 10%:
  501. give arg-1 1 ender pearl
  502. chance of 35%:
  503. give arg-1 1 diamond helmet of projectile protection 1
  504. chance of 35%:
  505. give arg-1 1 diamond boots of projectile protection 1
  506. chance of 35%:
  507. give arg-1 1 diamond leggings of protection 1
  508. chance of 5%:
  509. give arg-1 1 saddle
  510. give arg-1 1 horse spawn egg
  511. chance of 20%:
  512. give arg-1 1 diamond horse armor
  513. else:
  514. chance of 20%:
  515. give arg-1 1 gold horse armor
  516. else:
  517. chance of 20%:
  518. give arg-1 1 iron horse armor
  519. else:
  520. give arg-1 2 wheat
  521. chance of 7.5%:
  522. clear inventory of arg-1
  523. equip arg-1 with all iron armor
  524. give arg-1 a iron sword
  525. give arg-1 a bow
  526. give arg-1 a iron pickaxe
  527. give arg-1 a iron shovel
  528. give arg-1 64 cobblestone
  529. give arg-1 a water bucket
  530. give arg-1 a lava bucket
  531. give arg-1 1 golden apple
  532. give arg-1 32 cobblestone
  533. give arg-1 30 crafting table
  534. give arg-1 64 17
  535. give arg-1 4 apples
  536. give arg-1 64 arrows
  537. give arg-1 1 flint and steel
  538. give arg-1 1 iron axe
  539. give arg-1 32 iron ingots
  540. give arg-1 64 dye:4
  541. give arg-1 3 potions of speed 1
  542. give arg-1 3 potions of strength 1
  543. give arg-1 1 brewing stand
  544. give arg-1 20 nether wart
  545. give arg-1 20 redstone
  546. give arg-1 20 glowstone dust
  547. give arg-1 18 glass bottles
  548. give arg-1 6 melon slices
  549. give arg-1 2 blaze powder
  550. give arg-1 2 sugar
  551.  
  552. if arg-2 is "uhc":
  553. command "/xp %random integer between 100 and 120% %arg-1%"
  554. clear inventory of arg-1
  555. wait for 1 tick
  556. equip arg-1 with iron chestplate of protection 2
  557. equip arg-1 with iron leggings of protection 1
  558. equip arg-1 with iron boots of projectile protection 2
  559. equip arg-1 with iron helmet of projectile protection 2
  560. give arg-1 a iron sword of sharpness 2
  561. give arg-1 a bow of power 1
  562. give arg-1 a diamond pickaxe of efficiency 1
  563. give arg-1 a iron shovel
  564. give arg-1 64 cobblestone
  565. give arg-1 a water bucket
  566. give arg-1 a lava bucket
  567. give arg-1 3 golden apples
  568. give arg-1 1 ender pearl
  569. give arg-1 64 cobblestone
  570. give arg-1 64 crafting table
  571. give arg-1 64 17
  572. give arg-1 4 apples
  573. give arg-1 96 arrows
  574. give arg-1 1 flint and steel
  575. give arg-1 1 iron axe
  576. give arg-1 32 iron ingots
  577. give arg-1 3 books
  578. give arg-1 3 enchantment tables
  579. give arg-1 3 anvils
  580. give arg-1 1 gold ingot
  581. give arg-1 1 diamond
  582. give arg-1 64 dye:4
  583.  
  584. if arg-2 is "ironuhc":
  585. clear inventory of arg-1
  586. command "/xp %random integer between 100 and 120% %arg-1%"
  587. wait for 1 tick
  588. equip arg-1 with iron chestplate
  589. equip arg-1 with iron leggings
  590. equip arg-1 with iron boots
  591. equip arg-1 with iron helmet
  592. give arg-1 a iron sword
  593. give arg-1 a bow
  594. give arg-1 a iron pickaxe
  595. give arg-1 a iron shovel
  596. give arg-1 64 cobblestone
  597. give arg-1 a water bucket
  598. give arg-1 a lava bucket
  599. give arg-1 3 golden apples
  600. give arg-1 1 ender pearl
  601. give arg-1 96 arrows
  602. give arg-1 64 cobblestone
  603. give arg-1 64 crafting table
  604. give arg-1 64 17
  605. give arg-1 4 apples
  606. give arg-1 1 flint and steel
  607. give arg-1 3 anvils
  608. give arg-1 1 iron axe
  609. give arg-1 32 iron ingots
  610. give arg-1 1 gold ingot
  611. give arg-1 64 dye:4
Advertisement
Add Comment
Please, Sign In to add comment