Advertisement
yukki10

Untitled

Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.17 KB | None | 0 0
  1. command /sanka:
  2. trigger:
  3. if {team.%player%} is 0:
  4.  
  5.  
  6.  
  7. if {redp} is less than {grep}:
  8. set {team.%player%} to 1
  9.  
  10. add 1 to {redp}
  11. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  12. send "&c⬛ &7You are the Red team &c⬛" to player
  13. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  14.  
  15. execute console command "/replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {Unbreakable:1b,ench:[{id:10s,lvl:1s}],HideFlags:7,display:{color:16711680}}"
  16. if {wm} is 1:
  17. teleport player to {rspawn1}
  18. if {wm} is 2:
  19. teleport player to {rspawn2}
  20. if {wm} is 3:
  21. teleport player to {rspawn3}
  22. if {wm} is 4:
  23. teleport player to {rspawn4}
  24. if {wm} is 5:
  25. teleport player to {rspawn5}
  26. if {wm} is 6:
  27. teleport player to {rspawn6}
  28. if {wm} is 7:
  29. teleport player to {rspawn7}
  30. else if {grep} is less than {redp}:
  31. set {team.%player%} to 2
  32. add 1 to {grep}
  33.  
  34. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  35. send "&a⬛ &7You are the Green team &a⬛" to player
  36. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  37. execute console command "/replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {Unbreakable:1b,ench:[{id:10s,lvl:1s}],HideFlags:7,display:{color:8453888}}"
  38. if {wm} is 1:
  39. teleport player to {gspawn1}
  40. if {wm} is 2:
  41. teleport player to {gspawn2}
  42. if {wm} is 3:
  43. teleport player to {gspawn3}
  44. if {wm} is 4:
  45. teleport player to {gspawn4}
  46. if {wm} is 5:
  47. teleport player to {rspawn5}
  48. if {wm} is 6:
  49. teleport player to {rspawn6}
  50. if {wm} is 7:
  51. teleport player to {rspawn7}
  52. else:
  53. set {teamn} to random integer between 1 and 10
  54. if {teamn} is between 1 and 5:
  55. set {team.%player%} to 1
  56. add 1 to {redp}
  57. execute console command "/replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {Unbreakable:1b,ench:[{id:10s,lvl:1s}],HideFlags:7,display:{color:16711680}}"
  58.  
  59. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  60. send "&c⬛ &7You are the Red team &c⬛" to player
  61. send "&c━━━━━━━━━━━━━━━━━━━━━" to player
  62. if {wm} is 1:
  63. teleport player to {rspawn1}
  64. if {wm} is 2:
  65. teleport player to {rspawn2}
  66. if {wm} is 3:
  67. teleport player to {rspawn3}
  68. if {wm} is 4:
  69. teleport player to {rspawn4}
  70. if {wm} is 5:
  71. teleport player to {rspawn5}
  72. if {wm} is 6:
  73. teleport player to {rspawn6}
  74. if {wm} is 7:
  75. teleport player to {rspawn7}
  76.  
  77. if {teamn} is between 6 and 10:
  78. set {team.%player%} to 2
  79. add 1 to {grep}
  80.  
  81. execute console command "/replaceitem entity %player% slot.armor.chest minecraft:leather_chestplate 1 0 {Unbreakable:1b,ench:[{id:10s,lvl:1s}],HideFlags:7,display:{color:8453888}}"
  82.  
  83. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  84. send "&a⬛ &7You are the Green team &a⬛" to player
  85. send "&a━━━━━━━━━━━━━━━━━━━━━━━" to player
  86. if {wm} is 1:
  87. teleport player to {gspawn1}
  88. if {wm} is 2:
  89. teleport player to {gspawn2}
  90. if {wm} is 3:
  91. teleport player to {gspawn3}
  92. if {wm} is 4:
  93. teleport player to {gspawn4}
  94. if {wm} is 5:
  95. teleport player to {rspawn5}
  96. if {wm} is 6:
  97. teleport player to {rspawn6}
  98. if {wm} is 7:
  99. teleport player to {rspawn7}
  100. command /warmap:
  101. permission:admin
  102. trigger:
  103. set {wmn} to random integer between 1 and 60
  104. if {wmn} is between 1 and 10:
  105. set {wm} to 1
  106. if {wmn} is between 11 and 20:
  107. set {wm} to 2
  108. if {wmn} is between 21 and 30:
  109. set {wm} to 3
  110. if {wmn} is between 31 and 40:
  111. set {wm} to 4
  112. if {wmn} is between 41 and 50:
  113. set {wm} to 5
  114. if {wmn} is between 51 and 60:
  115. set {wm} to 6
  116.  
  117.  
  118.  
  119.  
  120. command /wms <number>:
  121. permission:admin
  122. trigger:
  123. set {wm} to arg-1
  124. command /rwss1:
  125. permission:admin
  126. trigger:
  127. set {rspawn1} to location of player
  128.  
  129. command /gwss1:
  130. permission:admin
  131. trigger:
  132. set {gspawn1} to location of player
  133. command /rwss2:
  134. permission:admin
  135. trigger:
  136. set {rspawn2} to location of player
  137.  
  138. command /gwss2:
  139. permission:admin
  140. trigger:
  141. set {gspawn2} to location of player
  142. command /rwss3:
  143. permission:admin
  144. trigger:
  145. set {rspawn3} to location of player
  146.  
  147. command /gwss3:
  148. permission:admin
  149. trigger:
  150. set {gspawn3} to location of player
  151. command /rwss4:
  152. permission:admin
  153. trigger:
  154. set {rspawn4} to location of player
  155.  
  156. command /gwss4:
  157. permission:admin
  158. trigger:
  159. set {gspawn4} to location of player
  160. command /rwss5:
  161. permission:admin
  162. trigger:
  163. set {rspawn5} to location of player
  164.  
  165. command /gwss5:
  166. permission:admin
  167. trigger:
  168. set {gspawn5} to location of player
  169. command /rwss6:
  170. permission:admin
  171. trigger:
  172. set {rspawn6} to location of player
  173.  
  174. command /gwss6:
  175. permission:admin
  176. trigger:
  177. set {gspawn6} to location of player
  178. command /rwss7:
  179. permission:admin
  180. trigger:
  181. set {rspawn7} to location of player
  182.  
  183. command /gwss7:
  184. permission:admin
  185. trigger:
  186. set {gspawn7} to location of player
  187. command /wcsr:
  188. permission:admin
  189. trigger:
  190. set {wcs} to 0
  191. command /ptr:
  192. permission:admin
  193. trigger:
  194. set {team.%player%} to 0
  195.  
  196.  
  197. command /wcs:
  198. permission:admin
  199. trigger:
  200. if {wcs} is 0:
  201. set {wcs} to 1
  202. set {wsc} to 0
  203. set {gteamsc} to 0
  204. set {rteamsc} to 0
  205. set {redp} to 0
  206. set {grep} to 0
  207. command /lset:
  208. permission:admin
  209. trigger:
  210. set {lobby} to location of player
  211.  
  212. command /wst:
  213. permission:admin
  214. trigger:
  215. if {wcs} is 1:
  216. set {wcs} to 0
  217. set {wsc} to 0
  218. set {gteamsc} to 0
  219. set {rteamsc} to 0
  220. set {redp} to 0
  221. set {grep} to 0
  222. command /gmoney <player> <number>:
  223. permission:admin
  224. trigger:
  225. add arg-2 to {money.%arg-1%}
  226. command /smoney <player> <number>:
  227. permission:admin
  228. trigger:
  229. set {money.%arg-1%} to arg-2
  230.  
  231. command /tmoney <player> <number>:
  232. permission:admin
  233. trigger:
  234. subtract arg-2 from {money.%arg-1%}
  235.  
  236. command /gtmoney <number>:
  237. trigger:
  238. if arg-1 is less than 0:
  239. stop
  240.  
  241.  
  242. if arg-1 is less than {money.%player%}:
  243. subtract arg-1 from {money.%player%}
  244. give arg-1 of diamond named "&8&l1 Money" to player
  245.  
  246. else:
  247. send "金が足りません!!" to player
  248.  
  249. command /tgmoney <number>:
  250. trigger:
  251. loop all items in player's inventory:
  252. if name of loop-item contains "&8&l1 Money":
  253. if loop-item is equal to diamond:
  254. if number of diamond in the player's inventory is less than arg-1:
  255. stop
  256. remove arg-1 of loop-item from player
  257. add arg-1 to {money.%player%}
  258.  
  259.  
  260.  
  261. command /gtcmoney <number>:
  262. trigger:
  263. if arg-1 is less than 0:
  264.  
  265. stop
  266. set {gtcmoney.%player%} to arg-1 * 50
  267. if {gtcmoney.%player%} is less than {money.%player%}:
  268. subtract {gtcmoney.%player%} from {money.%player%}
  269. give arg-1 of lapis block named "&8&lCompression Money" to player
  270.  
  271. else:
  272. send "金が足りません!!" to player
  273.  
  274.  
  275.  
  276.  
  277. command /gtes <number>:
  278. trigger:
  279. if arg-1 is less than 0:
  280.  
  281. stop
  282. set {gtes.%player%v} to arg-1 * 50
  283. if {gtes.%player%} is less than {money.%player%}:
  284. subtract {gtes.%player%} from {money.%player%}
  285. give arg-1 of blue dye named "&fEnchantStone" to player
  286.  
  287. else:
  288. send "金が足りません!!" to player
  289. command /gtpb <number>:
  290. trigger:
  291. if arg-1 is less than 0:
  292.  
  293. stop
  294. set {gtpb.%player%} to arg-1 * 50
  295. if {gtpb.%player%} is less than {money.%player%}:
  296. subtract {gtpb.%player%} from {money.%player%}
  297. give arg-1 of blue dye named "&fPartsBOX" to player
  298.  
  299. else:
  300. send "金が足りません!!" to player
  301. command /gtgp <number>:
  302. trigger:
  303. if arg-1 is less than 0:
  304.  
  305. stop
  306. set {gtgp.%player%} to arg-1 * 50
  307. if {gtgp.%player%} is less than {money.%player%}:
  308. subtract {gtgp.%player%} from {money.%player%}
  309. give arg-1 of blue dye named "&fGunParts" to player
  310.  
  311. else:
  312. send "金が足りません!!" to player
  313.  
  314.  
  315. command /money:
  316. trigger:
  317. send "&e⛃&7Money you have &8%{money.%player%}%&7 Money" to player
  318.  
  319. command /gemoney:
  320. trigger:
  321. if 1 is less than {money.%player%}:
  322. give player diamond named "&8&l1 Money"
  323. subtract 1 from {money.%player%}
  324. else:
  325. send "金が足りません!!" to player
  326.  
  327.  
  328.  
  329. command /lup <player> <number>:
  330. permission:admin
  331. trigger:
  332. add arg-2 to {lev.%arg-1%}
  333. on first join:
  334. set {team.%player%} to 0
  335. set {money.%player%} to 50
  336. set {lev.%player%} to 1
  337. set {levexp.%player%} to 0
  338.  
  339.  
  340.  
  341.  
  342. command /wf <player>:
  343. permission:admin
  344. trigger:
  345. add 10 to {wft}
  346. broadcast "&6&l&m--------*--------*--------"
  347. broadcast "&a%arg-1% がWar Fireworksを使いました!"
  348. broadcast "&aあと%{wft}%試合の間 War報酬が増えてさらに"
  349. broadcast "&a毎月大当たりが変わるガチャを入手できます!"
  350. broadcast "&6&l&m--------*--------*--------"
  351.  
  352. set {WF} to 1
  353. execute console command "setblock 1310 4 1764 redstone_block"
  354. execute console command "setblock 1310 4 1760 stone"
  355.  
  356. command /wfs <number>:
  357. permission:admin
  358. trigger:
  359. set {wft} to arg-1
  360.  
  361. every 1 seconds:
  362. if {wcs} is 1:
  363. if {wsc} is 300:
  364. set {wcs} to 0
  365. set {rla} to 0
  366. set {gla} to 0
  367. if {gteamsc} is less than {rteamsc}:
  368. loop all players:
  369. send loop-player title "&c&lRed Team &6&lWIN!" for 5 seconds
  370. if {team.%loop-player%} is 1:
  371.  
  372. teleport loop-player to {lobby}
  373.  
  374.  
  375. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  376. send "&8------------------------" to loop-player
  377. send "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛" to loop-player
  378. send "&fYou Team:&cRed" to loop-player
  379. send "&fK/D:%{pksc.%loop-player%}%K/%{pdsc.%loop-player%}%D" to loop-player
  380. send "&8------------------------" to loop-player
  381.  
  382.  
  383.  
  384.  
  385.  
  386. if {team.%loop-player%} is 2:
  387. teleport loop-player to {lobby}
  388.  
  389.  
  390.  
  391. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  392. send "&8------------------------" to loop-player
  393. send "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛" to loop-player
  394. send "&fYou Team:&aGreen" to loop-player
  395. send "&f/KD:%{pksc.%loop-player%}%K/%{pdsc.%loop-player%}%D" to loop-player
  396. send "&8------------------------" to loop-player
  397.  
  398.  
  399.  
  400. command "/warmap"
  401. command "/wcs"
  402.  
  403. else if {rteamsc} is less than {gteamsc}:
  404. loop all players:
  405. send loop-player title "&a&lGreen Team &6&lWIN!" for 5 seconds
  406. if {team.%loop-player%} is 1:
  407. teleport loop-player to {lobby}
  408.  
  409. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  410. send "&8------------------------" to loop-player
  411. send "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛" to loop-player
  412. send "&fYou Team:&cRed" to loop-player
  413. send "&fK/D:%{pksc.%loop-player%}%K/%{pdsc.%loop-player%}%D" to loop-player
  414. send "&8------------------------" to loop-player
  415.  
  416.  
  417.  
  418. if {team.%loop-player%} is 2:
  419. teleport loop-player to {lobby}
  420.  
  421.  
  422. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  423. send "&8------------------------" to loop-player
  424. send "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛" to loop-player
  425. send "&fYou Team:&aGreen" to loop-player
  426. send "&f/KD:%{pksc.%loop-player%}%K/%{pdsc.%loop-player%}%D" to loop-player
  427. send "&8------------------------" to loop-player
  428.  
  429.  
  430. command "/wcs"
  431. else:
  432. loop all players:
  433.  
  434. send loop-player title "&6&lBoth Teams &f&lDraw" for 5 seconds
  435. if {team.%loop-player%} is 1:
  436. teleport loop-player to {lobby}
  437.  
  438.  
  439. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  440. send "&8------------------------" to loop-player
  441. send "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛" to loop-player
  442. send "&fYou Team:&cRed" to loop-player
  443. send "&fK/D:%{pksc.%loop-player%}%K/%{pdsc.%loop-player%}%D" to loop-player
  444. send "&8------------------------" to loop-player
  445.  
  446.  
  447. if {team.%loop-player%} is 2:
  448. teleport loop-player to {lobby}
  449.  
  450. add 100+{pksc.%loop-player%}*5 to {money.%loop-player%}
  451. send "&8------------------------" to loop-player
  452. send "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛" to loop-player
  453. send "&fYou Team:&aGreen" to loop-player
  454. send "&f/KD:%{pksc.%loop-player%}%K/%{pdsc.%loop-player%}%D" to loop-player
  455. send "&8------------------------" to loop-player
  456.  
  457.  
  458. command "/warmap"
  459. command "/wcs"
  460.  
  461.  
  462.  
  463. if {wf} is 1:
  464. loop all players:
  465. if {team.%loop-player%} is 1:
  466. give 1 of magma cream named "&6War Fireworks ガチャ" to loop-player
  467. add 300 to {money.%loop-player%}
  468.  
  469. if {team.%loop-player%} is 2:
  470. give 1 of magma cream named "&6War Fireworks ガチャ" to loop-player
  471. add 300 to {money.%loop-player%}
  472.  
  473.  
  474.  
  475.  
  476. if {wft} is less than 0:
  477. set {wft} to 0
  478.  
  479. if {wft} is 1:
  480. set {WF} to 0
  481. broadcast "&6&l&m-------*--------*-------"
  482. broadcast "&aWar Fireworksの効果が切れました"
  483. broadcast "&6&l&m-------*--------*-------"
  484. execute console command "setblock 1310 4 1764 air"
  485. execute console command "setblock 1310 4 1760 air"
  486.  
  487. subtract 1 from {wft}
  488. if 0 is less than {wft}:
  489. broadcast "&6&l&m--------*--------*--------"
  490. broadcast "&aWar Fireworkはあと%{wft}%試合の間効果があります"
  491. broadcast "&6&l&m--------*--------*--------"
  492. if {wft} is less than 0:
  493. set {wft} to 0
  494. loop all players:
  495. set {pksc.%loop-player%} to 0
  496. set {pdsc.%loop-player%} to 0
  497. set {team.%loop-player%} to 0
  498.  
  499. add 1 to {wsc}
  500. loop all players:
  501. send action bar from "&a&l⬛ &7&l%{gteamsc}% ━ %{rteamsc}% &c&l⬛ &6&l残り時間 %(300-{wsc})%" to loop-players
  502.  
  503. loop all players:
  504. set {levexpl.%loop-player%} to {lev.%loop-player%}*10*1.5
  505. if {levexp.%loop-player%} is {levexpl.%loop-player%}:
  506. add 1 to {lev.%loop-player%}
  507. if {team.%loop-player%} is 0:
  508.  
  509. set {levexp.%loop-player%} to 0
  510. if {team.%loop-player%} is 1:
  511.  
  512. set {levexp.%loop-player%} to 0
  513. if {team.%loop-player%} is 2:
  514.  
  515. set {levexp.%loop-player%} to 0
  516. if {levexpl.%loop-player%} is less than {levexp.%loop-player%}:
  517. add 1 to {lev.%loop-player%}
  518. if {team.%loop-player%} is 0:
  519.  
  520. set {levexp.%loop-player%} to 0
  521. if {team.%loop-player%} is 1:
  522.  
  523. set {levexp.%loop-player%} to 0
  524. if {team.%loop-player%} is 2:
  525.  
  526. set {levexp.%loop-player%} to 0
  527. if {team.%loop-player%} is 0:
  528. set the loop-player's tablist name to "[Lv%{lev.%loop-player%}%]%name of loop-player%"
  529. set the loop-player's display name to "[Lv%{lev.%loop-player%}%]%name of loop-player%"
  530.  
  531. if {team.%loop-player%} is 1:
  532. set the loop-player's tablist name to "[Lv%{lev.%loop-player%}%]<red>%name of loop-player%"
  533. set the loop-player's display name to "[Lv%{lev.%loop-player%}%]%name of loop-player%"
  534.  
  535. if {team.%loop-player%} is 2:
  536. set the loop-player's display name to "[Lv%{lev.%loop-player%}%]%name of loop-player%"
  537. set the loop-player's tablist name to "[Lv%{lev.%loop-player%}%]<green>%name of loop-player%"
  538. on damage:
  539. attacker is a player
  540. victim is a player
  541. if {team.%attacker%} is 1:
  542. if {team.%victim%} is 1:
  543. cancel the event
  544.  
  545. if {team.%attacker%} is 2:
  546. if {team.%victim%} is 2:
  547. cancel the event
  548.  
  549. on crackshot damage:
  550. shooter is a player
  551. event-entity is a player
  552. if {team.%shooter%} is 1:
  553. if {team.%event-entity%} is 1:
  554. cancel the event
  555. if {team.%shooter%} is 2:
  556. if {team.%event-entity%} is 2:
  557. cancel the event
  558.  
  559. on death of player:
  560. if {team.%victim%} is 1:
  561. add 1 to {gteamsc}
  562. add 1 to {pksc.%attacker%}
  563. add 1 to {pdsc.%victim%}
  564. if {team.%victim%} is 2:
  565. add 1 to {rteamsc}
  566. add 1 to {pksc.%attacker%}
  567. add 1 to {pdsc.%victim%}
  568. add 1 to {levexp.%attacker%}
  569.  
  570.  
  571. on respawn:
  572. if {team.%player%} is 1:
  573. if {wm} is 1:
  574. teleport player to {rspawn1}
  575. if {wm} is 2:
  576. teleport player to {rspawn2}
  577. if {wm} is 3:
  578. teleport player to {rspawn3}
  579. if {wm} is 4:
  580. teleport player to {rspawn4}
  581. if {wm} is 5:
  582. teleport player to {rspawn5}
  583. if {wm} is 6:
  584. teleport player to {rspawn6}
  585. if {wm} is 7:
  586. teleport player to {rspawn7}
  587.  
  588. if {team.%player%} is 2:
  589. if {wm} is 1:
  590. teleport player to {gspawn1}
  591. if {wm} is 2:
  592. teleport player to {gspawn2}
  593. if {wm} is 3:
  594. teleport player to {gspawn3}
  595. if {wm} is 4:
  596. teleport player to {gspawn4}
  597. if {wm} is 5:
  598. teleport player to {rspawn5}
  599. if {wm} is 6:
  600. teleport player to {rspawn6}
  601. if {wm} is 7:
  602. teleport player to {rspawn7}
  603. on log out:
  604. set {team.%player%} to 0
  605.  
  606. on right click:
  607. if name of player's held item is "&6War Fireworks":
  608. if {wf} is 1:
  609. send "もうすでにWar Fireworksが上がっているので使えません!" to player
  610. cancel event
  611. stop
  612. remove 1 of player's held item from player
  613. command "wf %player%"
  614. if name of player's held item contain "&6War Fireworks ガチャ":
  615. remove 1 of player's held item from player
  616. set {_wfg} to random integer between 1 and 1000
  617. if {_wfg} is between 996 and 1000:
  618. execute console command "shot give %player% ANESTHESIA-BOW "
  619. broadcast "%player%が を当てました!! おめでとう!"
  620.  
  621. if {_wfg} is between 991 and 995:
  622. give 25 of blue dye named "&fEnchantStone" to player
  623. give 20 of iron ingot named "&fPartsBOX" to player
  624. give 20 of gold ingot named "&fGunParts" to player
  625. broadcast "%player%が改造セットを当てました!! おめでとう!"
  626.  
  627. if {_wfg} is between 1 and 330:
  628.  
  629. give 3 of blue dye named "&fEnchantStone" to player
  630. send "EnchantStone*3が当たりました" to player
  631.  
  632. if {_wfg} is between 331 and 660:
  633. give 3 of iron ingot named "&fPartsBOX" to player
  634. send "PartsBOX*3が当たりました" to player
  635. if {_wfg} is between 661 and 990:
  636. give 3 of gold ingot named "&fGunParts" to player
  637. send "GunParts*3が当たりました" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement