UDON_JP

MOBRANT

Jun 5th, 2020 (edited)
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.04 KB | None | 0 0
  1. command /join:
  2. trigger:
  3. if {game} is not set:
  4. if {join::*} contains player:
  5. send "&c既に参加しています。" to player
  6. else:
  7. add player to {join::*}
  8. broadcast "&9%player%&bさんが参加。現在&e%number of {join::*}%&b人。"
  9. if {joingame} is not set:
  10. if number of {join::*} > 1:
  11. set {joingame} to true
  12. broadcast "&930秒後にゲームを開始します。"
  13. wait 20 second
  14. broadcast "&910秒後にゲームを開始します。"
  15. wait 5 second
  16. broadcast "&95秒後にゲームを開始します。"
  17. wait 1 second
  18. broadcast "&94秒後にゲームを開始します。"
  19. wait 1 second
  20. broadcast "&93秒後にゲームを開始します。"
  21. wait 1 second
  22. broadcast "&92秒後にゲームを開始します。"
  23. wait 1 second
  24. broadcast "&91秒後にゲームを開始します。"
  25. wait 1 second
  26. set {game} to true
  27. if number of {join::*} > 1:
  28. loop {join::*}:
  29. clear loop-value's inventory
  30. delete {joingame}
  31. gamestart()
  32. else:
  33. delete {game}
  34. delete {join::*}
  35. delete {joingame}
  36. broadcast "&c人数が減ったため停止しました。"
  37. else:
  38. send "&c現在ゲームが始まっています。"
  39.  
  40. command /reset:
  41. permission: admin
  42. trigger:
  43. delete {autojoin::*}
  44. gameend()
  45.  
  46. command /autojoin:
  47. trigger:
  48. if {autojoin::*} contains player:
  49. send "&cOFF"
  50. remove player from {autojoin::*}
  51. else:
  52. send "&aON"
  53. add player to {autojoin::*}
  54.  
  55. command /kit:
  56. trigger:
  57. open chest with 3 rows named "&8キット選択" to player
  58. set slot 10 of player's current inventory to rotten flesh named "&2ゾンビ" with lore "&7- パッシブ" and "&7常に再生1の効果が付く。" and "&7- アビリティ" and "&7自分から半径3m以内にいる自分を含める仲間を4♥回復させる。"
  59. set slot 11 of player's current inventory to bone named "&fスケルトン" with lore "&7- パッシブ" and "&7シフトをしている間の移動速度が上昇する。" and "&7- アビリティ" and "&74秒間透明状態になるが近接攻撃ができなくなる。"
  60. set slot 12 of player's current inventory to tnt named "&aクリーパー" with lore "&7- パッシブ" and "&7ダメージを受けると2秒間移動速度が上昇する" and "&7- アビリティ" and "&7グレネードを捨てることで発動。3秒後に爆発し、" and "&7付近にいる敵プレイヤーすべてに6ダメージ"
  61. set slot 13 of player's current inventory to ender pearl named "&5エンダーマン" with lore "&7- パッシブ" and "&7移動速度が上昇する。" and "&7- アビリティ" and "&7トーテムを設置し、そのトーテムにテレポートできるようになる。"
  62.  
  63. function gamestart():
  64. loop 20 times:
  65. execute console command "/execute @a ~ ~ ~ /playsound entity.experience_orb.pickup master @a ~ ~ ~ 1 1"
  66. loop all players:
  67. send title "&f&lゲームルールを決めています..." to loop-player for 1 second with fade in 0 tick
  68. wait 2 tick
  69. set {map} to random string of {map::*}
  70. set {type} to random string of {type::*}
  71. loop all players:
  72. send title "&a&lMap - %{map}%" with subtitle "&b&lType - %{type}%" to loop-player for 3 second with fade in 0 tick
  73. wait 3 second
  74. set {time} to 320
  75. set {_a} to number of {join::*} / 2
  76. loop {_a} times:
  77. add random player of {join::*} to {attacker::*}
  78. remove {attacker::*} from {join::*}
  79. set {defender::*} to {join::*}
  80. loop {attacker::*}:
  81. set loop-value's max health to 20
  82. command "/scoreboard players tag %loop-value% add attacker"
  83. set slot 8 of loop-value's inventory to 1 stone named "&7武器選択"
  84. set tablist name of loop-value to "&c%loop-value%"
  85. command "/scoreboard teams join HideNametag %loop-value%"
  86. teleport loop-value to {AttackerSpawn.%{map}%}
  87. send title "&f&l準備フェーズ" with subtitle "&cアタッカー" to loop-value for 5 second with fade in 0 tick
  88. send "&c爆弾を&6オレンジ羊毛&cの上に設置しよう!(右クリック)" to loop-value
  89. wait 1 tick
  90. open chest with 3 rows named "&8武器選択" to loop-value
  91. set slot 10 of loop-value's current inventory to iron horse armor named "&8アサルトライフル" with lore "&7- フルオート" and "&7- 発射速度 3発 / 秒" and "&7- マガジン容量 30" and "&7- ダメージ 1.5♥"
  92. set slot 11 of loop-value's current inventory to music disc stal named "&8スナイパーライフル" with lore "&7- セミオート" and "&7- 発射速度 0.3発 / 秒" and "&7- マガジン容量 4" and "&7- ダメージ 胴 7.5♥ 頭 15♥"
  93. set slot 12 of loop-value's current inventory to comparator named "&8ショットガン" with lore "&7- セミオート" and "&7- 発射速度 1発 / 秒" and "&7- マガジン容量 5" and "&7- 一度に出る球 8" and "&7- ダメージ 1♥"
  94. loop {defender::*}:
  95. set loop-value's max health to 20
  96. set slot 8 of loop-value's inventory to 1 stone named "&7武器選択"
  97. set tablist name of loop-value to "&9%loop-value%"
  98. command "/scoreboard teams join HideNametag %loop-value%"
  99. execute console command "/scoreboard teams join global %loop-value%"
  100. teleport loop-value to {DefenderSpawn.%{map}%}
  101. send title "&f&l準備フェーズ" with subtitle "&9ディフェンダー" to loop-value for 5 second with fade in 0 tick
  102. send "&b設置された&c爆弾&bの近くでシフトして爆弾を解除しよう!" to loop-value
  103. wait 1 tick
  104. open chest with 3 rows named "&8武器選択" to loop-value
  105. set slot 10 of loop-value's current inventory to iron horse armor named "&8アサルトライフル" with lore "&7- フルオート" and "&7- 発射速度 3発 / 秒" and "&7- マガジン容量 30" and "&7- ダメージ 1.5♥"
  106. set slot 11 of loop-value's current inventory to music disc stal named "&8スナイパーライフル" with lore "&7- セミオート" and "&7- 発射速度 0.3発 / 秒" and "&7- マガジン容量 4" and "&7- ダメージ 胴 7.5♥ 頭 15♥"
  107. set slot 12 of loop-value's current inventory to comparator named "&8ショットガン" with lore "&7- セミオート" and "&7- 発射速度 1発 / 秒" and "&7- マガジン容量 5" and "&7- 一度に出る球 8" and "&7- ダメージ 1♥"
  108. command "/effect @a minecraft:instant_health 1 255"
  109. wait 5 second
  110. set {_b} to 15
  111. loop 15 times:
  112. send title "&e&l%{_b}%" to all players for 1 second with fade in 0 tick
  113. execute console command "/execute @a ~ ~ ~ /playsound block.dispenser.fail master @a ~ ~ ~ 2 1"
  114. remove 1 from {_b}
  115. wait 1 second
  116. loop {attacker::*}:
  117. set helmet of the loop-value to a leather helmet
  118. dye loop-value's helmet red
  119. loop {defender::*}:
  120. set helmet of the loop-value to a leather helmet
  121. dye loop-value's helmet blue
  122. execute console command "/execute @a ~ ~ ~ /playsound block.anvil.use master @a ~ ~ ~ 2 1"
  123. execute console command "/fill %{wall.a.1.%{map}%}% %{wall.a.2.%{map}%}% %{wall.a.3.%{map}%}% %{wall.a.4.%{map}%}% %{wall.a.5.%{map}%}% %{wall.a.6.%{map}%}% minecraft:air 0 replace stained_glass"
  124. execute console command "/fill %{wall.d.1.%{map}%}% %{wall.d.2.%{map}%}% %{wall.d.3.%{map}%}% %{wall.d.4.%{map}%}% %{wall.d.5.%{map}%}% %{wall.d.6.%{map}%}% minecraft:air 0 replace stained_glass"
  125.  
  126. function gameend():
  127. command "/wall House"
  128. command "/wall Hijacked"
  129. command "/wall Coastline"
  130. command "/wall Kanal"
  131. command "/effect @a clear"
  132. command "/kill @e[type=armor_stand]"
  133. loop {bomb::*}:
  134. delete {bomb.power.%loop-value%}
  135. command "/execute @e[tag=bomb] ~ ~ ~ /setblock ~ ~ ~ air"
  136. command "/kill @e[tag=bomb]"
  137. delete {join::*}
  138. delete {stop::*}
  139. delete {attacker::*}
  140. delete {joingame}
  141. delete {defender::*}
  142. delete {bomb::*}
  143. delete {time}
  144. delete {map}
  145. delete {type}
  146. delete {bombtime}
  147. delete {invisible::*}
  148. delete {game}
  149. delete {spect::*}
  150. command "/scoreboard players tag @a remove attacker"
  151. command "/scoreboard teams empty HideNametag"
  152. loop all players:
  153. delete {ability.cooltime.%loop-player%}
  154. teleport loop-player to {lobby}
  155. clear loop-player's inventory
  156. command "/gamemode 2 %loop-player%"
  157. command "/heal %loop-player%"
  158. delete {bomb.sneak.%loop-player%}
  159. loop {autojoin::*}:
  160. execute loop-value command "/join"
  161.  
  162. function kaijo():
  163. loop all players:
  164. send title "&9&lディフェンダーの勝利" with subtitle "&7爆弾を解除した" to loop-player for 3 second with fade in 0 tick
  165.  
  166. on right click:
  167. name of player's tool is "&c爆弾"
  168. block 1 meter below player is orange wool
  169. add player to {stop::*}
  170. loop {attacker::*}:
  171. set slot 8 of loop-value's inventory to air
  172. send title "&a" with subtitle "&f仲間が爆弾を設置中です..." to loop-value for 3 second with fade in 0 tick
  173. set action bar of player to "&c&l║║║║║║║║║║"
  174. wait 1 second
  175. if {spect::*} contains player:
  176. command "/setblock -831 4 818 minecraft:redstone_block"
  177. remove player from {stop::*}
  178. stop
  179. set action bar of player to "&a&l║║&c&l║║║║║║║║"
  180. wait 1 second
  181. if {spect::*} contains player:
  182. command "/setblock -831 4 818 minecraft:redstone_block"
  183. remove player from {stop::*}
  184. stop
  185. set action bar of player to "&a&l║║║║&c&l║║║║║║"
  186. wait 1 second
  187. if {spect::*} contains player:
  188. command "/setblock -831 4 818 minecraft:redstone_block"
  189. remove player from {stop::*}
  190. stop
  191. set action bar of player to "&a&l║║║║║║&c&l║║║║"
  192. wait 1 second
  193. if {spect::*} contains player:
  194. command "/setblock -831 4 818 minecraft:redstone_block"
  195. remove player from {stop::*}
  196. stop
  197. set action bar of player to "&a&l║║║║║║║║&c&l║║"
  198. wait 1 second
  199. if {spect::*} contains player:
  200. command "/setblock -831 4 818 minecraft:redstone_block"
  201. remove player from {stop::*}
  202. stop
  203. set action bar of player to "&a&l║║║║║║║║║║"
  204. execute console command "/scoreboard players tag %player% add setbomb"
  205. execute console command "/setblock -831 4 820 minecraft:redstone_block"
  206. remove player from {stop::*}
  207. set {bomb::*} to player's location
  208. set {bombtime} to 60
  209. delete {time}
  210. loop all players:
  211. send title "&c&l爆弾が設置されました" with subtitle "&c60秒後に爆発します!" to loop-player for 2 second with fade in 0 tick
  212.  
  213. on any move:
  214. if {stop::*} contains player:
  215. cancel event
  216.  
  217. every tick:
  218. loop {bomb::*}:
  219. loop all players:
  220. if {bomb.sneak.%loop-player%} is true:
  221. distance between loop-value-1 and loop-player <= 1
  222. set {_bomb} to loop-value-1
  223. add 1 to {bomb.power.%{_bomb}%}
  224. send title "&a" with subtitle "&4>>&c%{bomb.power.%{_bomb}%}%&4/&c200&4<<" to loop-player for 1 second with fade in 0 tick
  225. if {bomb.power.%{_bomb}%} > 199:
  226. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  227. kaijo()
  228. gameend()
  229.  
  230. on death of player:
  231. if {game} is true:
  232. wait 1 tick
  233. clear victim's inventory
  234. teleport victim to random player of {attacker::*}
  235. force respawn victim
  236. if {attacker::*} contains victim:
  237. broadcast "&9%attacker%&8 → &c%victim%"
  238. remove player from {attacker::*}
  239. command "/gamemode 3 %victim%"
  240. add player to {spect::*}
  241. if number of {attacker::*} = 0:
  242. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  243. loop all players:
  244. send title "&9&lディフェンダーの勝利" with subtitle "&7アタッカーが全滅した" to loop-player for 3 second with fade in 0 tick
  245. gameend()
  246. if {defender::*} contains victim:
  247. broadcast "&c%attacker%&8 → &9%victim%"
  248. remove player from {defender::*}
  249. command "/gamemode 3 %victim%"
  250. add player to {spect::*}
  251. if number of {defender::*} = 0:
  252. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  253. loop all players:
  254. send title "&c&lアタッカーの勝利" with subtitle "&7ディフェンダーが全滅した" to loop-player for 3 second with fade in 0 tick
  255. gameend()
  256.  
  257. every second:
  258. loop all players:
  259. set the loop-player's food level to 3
  260. if {ability.cooltime.%loop-player%} is set:
  261. remove 1 gray dye named "&7クールタイム" from the loop-player
  262. remove 1 from {ability.cooltime.%loop-player%}
  263. if {ability.cooltime.%loop-player%} = 0:
  264. if {kit.%loop-player%} is "ゾンビ":
  265. set slot 1 of loop-player's inventory to golden apple named "&dヒール"
  266. if {kit.%loop-player%} is "スケルトン":
  267. set slot 1 of loop-player's inventory to bone named "&7インビジブル"
  268. if {kit.%loop-player%} is "クリーパー":
  269. set slot 1 of loop-player's inventory to tnt named "&8グレネード"
  270. if {kit.%loop-player%} is "エンダーマン":
  271. set slot 1 of loop-player's inventory to end portal frame named "&5トーテム"
  272. if {game} is true:
  273. if {bombtime} is not set:
  274. remove 1 from {time}
  275. if {time} = 0:
  276. if {type} is "デスマッチ":
  277. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  278. loop all players:
  279. send title "&f&l引き分け" with subtitle "&7時間内に決着がつかなかった。" to loop-player for 3 second with fade in 0 tick
  280. gameend()
  281. else:
  282. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  283. loop all players:
  284. send title "&9&lディフェンダーの勝利" with subtitle "&7一定時間守り抜いた" to loop-player for 3 second with fade in 0 tick
  285. gameend()
  286. else:
  287. remove 1 from {bombtime}
  288. if {bombtime} = 0:
  289. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  290. loop all players:
  291. send title "&c&lアタッカーの勝利" with subtitle "&7爆弾が爆発した" to loop-player for 3 second with fade in 0 tick
  292. gameend()
  293. loop all players:
  294. wipe loop-player's sidebar
  295. set name of sidebar of loop-player to "&e------&9&l5 on 5&e------"
  296. set score "&c&lアタッカー" in sidebar of loop-player to 15
  297. set score "&a&7%number of {attacker::*}%" in sidebar of loop-player to 14
  298. set score "&9&lディフェンダー" in sidebar of loop-player to 13
  299. set score "&7%number of {defender::*}%" in sidebar of loop-player to 12
  300. if {type} is "爆弾解除":
  301. if {bombtime} is not set:
  302. set score "&4&l爆弾" in sidebar of loop-player to 11
  303. set score "&c未設置" in sidebar of loop-player to 10
  304. set score "&2&l残り時間" in sidebar of loop-player to 9
  305. set score "&e&7%{time}%" in sidebar of loop-player to 8
  306. set score "&a&lマップ" in sidebar of loop-player to 7
  307. set score "&e&7%{map}%" in sidebar of loop-player to 6
  308. set score "&6&lタイプ" in sidebar of loop-player to 5
  309. set score "&e&7%{type}%" in sidebar of loop-player to 4
  310. else:
  311. set score "&4&l爆弾" in sidebar of loop-player to 11
  312. set score "&a設置済み" in sidebar of loop-player to 10
  313. set score "&2&l爆発まで" in sidebar of loop-player to 9
  314. set score "&e&7%{bombtime}%" in sidebar of loop-player to 8
  315. set score "&a&lマップ" in sidebar of loop-player to 7
  316. set score "&e&7%{map}%" in sidebar of loop-player to 6
  317. set score "&6&lタイプ" in sidebar of loop-player to 5
  318. set score "&e&7%{type}%" in sidebar of loop-player to 4
  319. else:
  320. if {type} is "デスマッチ":
  321. set score "&2&l残り時間" in sidebar of loop-player to 9
  322. set score "&e&7%{time}%" in sidebar of loop-player to 8
  323. set score "&a&lマップ" in sidebar of loop-player to 7
  324. set score "&e&7%{map}%" in sidebar of loop-player to 6
  325. set score "&6&lタイプ" in sidebar of loop-player to 5
  326. set score "&e&7%{type}%" in sidebar of loop-player to 4
  327. set score "&e-----------------------" in sidebar of loop-player to 3
  328.  
  329. on sneak toggle:
  330. if {defender::*} contains player:
  331. if {spect::*} contains player:
  332. stop
  333. else:
  334. if {bomb.sneak.%player%} is not set:
  335. set {bomb.sneak.%player%} to true
  336. else:
  337. delete {bomb.sneak.%player%}
  338.  
  339. on join:
  340. set the join message to "&8[&a+&8] &7%player%"
  341. execute console command "/heal %player%"
  342. delete {ability.cooltime.%player%}
  343. command "/effect %player% clear"
  344. clear player's inventory
  345. if {kit.%player%} is not set:
  346. set {kit.%player%} to "ゾンビ"
  347. if {game} is true:
  348. wait 1 tick
  349. add player to {spect::*}
  350. command "/gamemode 3 %player%"
  351. teleport player to random player of {attacker::*}
  352. else:
  353. wait 1 tick
  354. command "/gamemode 2 %player%"
  355. teleport player to {lobby}
  356.  
  357. on quit:
  358. set the quit message to "&8[&c-&8] &7%player%"
  359. remove player from {autojoin::*}
  360. remove player from {join::*}
  361. if {game} is true:
  362. if {attacker::*} contains player:
  363. remove player from {attacker::*}
  364. if number of {attacker::*} = 0:
  365. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  366. loop all players:
  367. send title "&9&lディフェンダーの勝利" with subtitle "&7アタッカーが全滅した" to loop-player for 3 second with fade in 0 tick
  368. gameend()
  369. if {defender::*} contains player:
  370. remove player from {defender::*}
  371. if number of {defender::*} = 0:
  372. execute console command "/execute @a ~ ~ ~ /playsound entity.player.levelup master @a ~ ~ ~ 2 1"
  373. loop all players:
  374. send title "&c&lアタッカーの勝利" with subtitle "&7ディフェンダーが全滅した" to loop-player for 3 second with fade in 0 tick
  375. gameend()
  376.  
  377. command /spawnA <text>:
  378. permission: admin
  379. trigger:
  380. if arg is set:
  381. if {map::*} contains arg:
  382. set {AttackerSpawn.%arg%} to player's location
  383. send "&aマップ「%arg%」のアタッカースポーン場所をセットしました。"
  384. else:
  385. send "&cその名前のマップはありません"
  386. else:
  387. send "&cマップ名を書いてください"
  388. command /spawnD <text>:
  389. permission: admin
  390. trigger:
  391. if arg is set:
  392. if {map::*} contains arg:
  393. set {DefenderSpawn.%arg%} to player's location
  394. send "&aマップ「%arg%」のディフェンダースポーン場所をセットしました。"
  395. else:
  396. send "&cその名前のマップはありません"
  397. else:
  398. send "&cマップ名を書いてください"
  399. command /spawnL:
  400. permission: admin
  401. trigger:
  402. set {lobby} to player's location
  403. command /addmap <text>:
  404. permission: admin
  405. trigger:
  406. if arg is set:
  407. if {map::*} contains arg:
  408. send "&cその名前のマップはすでに存在します。"
  409. else:
  410. add arg to {map::*}
  411. send "&aマップ「%arg%」を追加しました。"
  412. else:
  413. send "&c追加するマップ名を書いてください。"
  414. command /setwall <text> <text> <number> <number> <number> <number> <number> <number>:
  415. permission: admin
  416. trigger:
  417. if {map::*} contains arg-1:
  418. if arg-2 is "a":
  419. set {wall.a.1.%arg-1%} to arg-3
  420. set {wall.a.2.%arg-1%} to arg-4
  421. set {wall.a.3.%arg-1%} to arg-5
  422. set {wall.a.4.%arg-1%} to arg-6
  423. set {wall.a.5.%arg-1%} to arg-7
  424. set {wall.a.6.%arg-1%} to arg-8
  425. execute console command "/fill %{wall.a.1.%arg-1%}% %{wall.a.2.%arg-1%}% %{wall.a.3.%arg-1%}% %{wall.a.4.%arg-1%}% %{wall.a.5.%arg-1%}% %{wall.a.6.%arg-1%}% minecraft:stained_glass 0 replace air"
  426. send "&aセットしました"
  427. else:
  428. if arg-2 is "d":
  429. set {wall.d.1.%arg-1%} to arg-3
  430. set {wall.d.2.%arg-1%} to arg-4
  431. set {wall.d.3.%arg-1%} to arg-5
  432. set {wall.d.4.%arg-1%} to arg-6
  433. set {wall.d.5.%arg-1%} to arg-7
  434. set {wall.d.6.%arg-1%} to arg-8
  435. execute console command "/fill %{wall.d.1.%arg-1%}% %{wall.d.2.%arg-1%}% %{wall.d.3.%arg-1%}% %{wall.d.4.%arg-1%}% %{wall.d.5.%arg-1%}% %{wall.d.6.%arg-1%}% minecraft:stained_glass 0 replace air"
  436. send "&aセットしました"
  437. else:
  438. send "&ca または d と書いてください。"
  439. else:
  440. send "&cその名前のマップはありません"
  441.  
  442. on damage:
  443. if {attacker::*} contains attacker:
  444. if {attacker::*} contains victim:
  445. cancel event
  446. if {defender::*} contains attacker:
  447. if {defender::*} contains victim:
  448. cancel event
  449. if {kit.%victim%} is "クリーパー":
  450. command "/effect %victim% speed 2 1"
  451. if {invisible::*} contains attacker:
  452. cancel event
  453.  
  454. command /wall <text>:
  455. permission: admin
  456. trigger:
  457. if {map::*} contains arg-1:
  458. execute console command "/fill %{wall.a.1.%arg-1%}% %{wall.a.2.%arg-1%}% %{wall.a.3.%arg-1%}% %{wall.a.4.%arg-1%}% %{wall.a.5.%arg-1%}% %{wall.a.6.%arg-1%}% minecraft:stained_glass 0 replace air"
  459. execute console command "/fill %{wall.d.1.%arg-1%}% %{wall.d.2.%arg-1%}% %{wall.d.3.%arg-1%}% %{wall.d.4.%arg-1%}% %{wall.d.5.%arg-1%}% %{wall.d.6.%arg-1%}% minecraft:stained_glass 0 replace air"
  460. command /maplist:
  461. permission: admin
  462. trigger:
  463. send "&a%{map::*}%"
  464.  
  465. on inventory click:
  466. if {game} is true:
  467. cancel event
  468. if name of clicked item is "&8アサルトライフル":
  469. clear player's inventory
  470. command "/shot give %player% アサルトライフル"
  471. set slot 6 of player's inventory to 64 iron nugget named "&7弾薬"
  472. set slot 7 of player's inventory to 64 iron nugget named "&7弾薬"
  473. if {kit.%player%} is "ゾンビ":
  474. set slot 1 of player's inventory to golden apple named "&dヒール"
  475. command "/effect %player% minecraft:regeneration 32767 0 true"
  476. if {kit.%player%} is "スケルトン":
  477. set slot 1 of player's inventory to bone named "&7インビジブル"
  478. if {kit.%player%} is "クリーパー":
  479. set slot 1 of player's inventory to tnt named "&8グレネード"
  480. if {kit.%player%} is "エンダーマン":
  481. set slot 1 of player's inventory to end portal frame named "&5トーテム"
  482. set slot 2 of player's inventory to gray glazed terracotta named "&5テレポート"
  483. command "/effect %player% minecraft:speed 32767 0 true"
  484. if {type} is "爆弾解除":
  485. if {attacker::*} contains player:
  486. command "/scoreboard players tag %player% add givebomb"
  487. command "/setblock -831 4 816 minecraft:redstone_block"
  488. if name of clicked item is "&8スナイパーライフル":
  489. clear player's inventory
  490. command "/shot give %player% スナイパーライフル"
  491. set slot 7 of player's inventory to 32 iron nugget named "&7弾薬"
  492. if {kit.%player%} is "ゾンビ":
  493. set slot 1 of player's inventory to golden apple named "&dヒール"
  494. command "/effect %player% minecraft:regeneration 32767 0 true"
  495. if {kit.%player%} is "スケルトン":
  496. set slot 1 of player's inventory to bone named "&7インビジブル"
  497. if {kit.%player%} is "クリーパー":
  498. set slot 1 of player's inventory to tnt named "&8グレネード"
  499. if {kit.%player%} is "エンダーマン":
  500. set slot 1 of player's inventory to end portal frame named "&5トーテム"
  501. set slot 2 of player's inventory to gray glazed terracotta named "&5テレポート"
  502. command "/effect %player% minecraft:speed 32767 0 true"
  503. if {type} is "爆弾解除":
  504. if {attacker::*} contains player:
  505. command "/scoreboard players tag %player% add givebomb"
  506. command "/setblock -831 4 816 minecraft:redstone_block"
  507. if name of clicked item is "&8ショットガン":
  508. clear player's inventory
  509. command "/shot give %player% ショットガン"
  510. set slot 7 of player's inventory to 40 iron nugget named "&7弾薬"
  511. if {kit.%player%} is "ゾンビ":
  512. set slot 1 of player's inventory to golden apple named "&dヒール"
  513. command "/effect %player% minecraft:regeneration 32767 0 true"
  514. if {kit.%player%} is "スケルトン":
  515. set slot 1 of player's inventory to bone named "&7インビジブル"
  516. if {kit.%player%} is "クリーパー":
  517. set slot 1 of player's inventory to tnt named "&8グレネード"
  518. if {kit.%player%} is "エンダーマン":
  519. set slot 1 of player's inventory to end portal frame named "&5トーテム"
  520. set slot 2 of player's inventory to gray glazed terracotta named "&5テレポート"
  521. command "/effect %player% minecraft:speed 32767 0 true"
  522. if {type} is "爆弾解除":
  523. if {attacker::*} contains player:
  524. command "/scoreboard players tag %player% add givebomb"
  525. command "/setblock -831 4 816 minecraft:redstone_block"
  526. if name of player's current inventory contain "&8キット選択":
  527. cancel event
  528. if name of clicked item is "&2ゾンビ":
  529. set {kit.%player%} to "ゾンビ"
  530. send "&eキットを&f&l%{kit.%player%}%&eに変更しました!" to player
  531. if name of clicked item is "&fスケルトン":
  532. set {kit.%player%} to "スケルトン"
  533. send "&eキットを&f&l%{kit.%player%}%&eに変更しました!" to player
  534. if name of clicked item is "&aクリーパー":
  535. set {kit.%player%} to "クリーパー"
  536. send "&eキットを&f&l%{kit.%player%}%&eに変更しました!" to player
  537. if name of clicked item is "&5エンダーマン":
  538. set {kit.%player%} to "エンダーマン"
  539. send "&eキットを&f&l%{kit.%player%}%&eに変更しました!" to player
  540.  
  541. on right click:
  542. name of player's tool is "&7武器選択"
  543. wait 1 tick
  544. open chest with 3 rows named "&8武器選択" to player
  545. set slot 10 of player's current inventory to iron horse armor named "&8アサルトライフル" with lore "&7- フルオート" and "&7- 発射速度 3発 / 秒" and "&7- マガジン容量 30" and "&7- ダメージ 1.5♥"
  546. set slot 11 of player's current inventory to music disc stal named "&8スナイパーライフル" with lore "&7- セミオート" and "&7- 発射速度 0.3発 / 秒" and "&7- マガジン容量 4" and "&7- ダメージ 胴 7.5♥ 頭 15♥"
  547. set slot 12 of player's current inventory to comparator named "&8ショットガン" with lore "&7- セミオート" and "&7- 発射速度 1発 / 秒" and "&7- マガジン容量 5" and "&7- 一度に出る球 8" and "&7- ダメージ 1♥"
  548. on right click:
  549. name of player's tool is "&dヒール"
  550. set slot 1 of player's inventory to 20 gray dye named "&7クールタイム"
  551. set {ability.cooltime.%player%} to 20
  552. if {attacker::*} contains player:
  553. command "/effect %player% minecraft:instant_health 1 1"
  554. command "/execute %player% ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 2 2"
  555. loop all players in radius 3 around player:
  556. if {attacker::*} contains loop-player:
  557. command "/effect %loop-player% minecraft:instant_health 1 1"
  558. if {defender::*} contains player:
  559. command "/effect %player% minecraft:instant_health 1 1"
  560. command "/execute %player% ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 2 2"
  561. loop all players in radius 3 around player:
  562. if {defender::*} contains loop-player:
  563. command "/effect %loop-player% minecraft:instant_health 1 1"
  564. on right click:
  565. name of player's tool is "&7インビジブル"
  566. set slot 1 of player's inventory to 15 gray dye named "&7クールタイム"
  567. set {ability.cooltime.%player%} to 15
  568. add player to {invisible::*}
  569. delete helmet of the player
  570. command "/effect %player% weakness 32767 100 true"
  571. command "/effect %player% invisibility 32767 100 true"
  572. wait 4 second
  573. command "/effect %player% weakness 0 0"
  574. command "/effect %player% invisibility 0 0"
  575. remove player from {invisible::*}
  576. if {attacker::*} contains player:
  577. set helmet of the player to a leather helmet
  578. dye player's helmet red
  579. if {defender::*} contains player:
  580. set helmet of the player to a leather helmet
  581. dye player's helmet blue
  582. on right click:
  583. name of player's tool is "&5トーテム"
  584. set slot 1 of player's inventory to 40 gray dye named "&7クールタイム"
  585. set {ability.cooltime.%player%} to 40
  586. set {_a} to player
  587. command "/kill @e[tag=%{_a}%]"
  588. spawn armor stand at player
  589. add "%{_a}%" to the scoreboard tags of last spawned entity
  590. command "/effect @e[tag=%{_a}%] glowing 32767 1"
  591. on right click:
  592. name of player's tool is "&5テレポート"
  593. if {stop::*} contains player:
  594. send "&c今は設置中のため使えません!" to player
  595. else:
  596. set {_a} to player
  597. command "/tp %player% @e[tag=%{_a}%]"
  598. command "/execute %player% ~ ~ ~ /playsound entity.endermen.teleport master @a ~ ~ ~ 1 1"
  599.  
  600. command /addtype <text>:
  601. permission: admin
  602. trigger:
  603. if arg is set:
  604. add arg to {type::*}
  605. send "&aType「%arg%」を追加しました。"
  606. else:
  607. send "&cType名を書いてください。"
  608. command /typelist:
  609. permission: admin
  610. trigger:
  611. send "&a%{type::*}%"
  612.  
  613. on drop:
  614. if name of event-item contains "&8グレネード":
  615. set slot 1 of player's inventory to 10 gray dye named "&7クールタイム"
  616. set {ability.cooltime.%player%} to 10
  617. wait 3 second
  618. if {attacker::*} contains player:
  619. create a safe explosion of force 2 at event-entity
  620. loop all players in radius 4 around event-entity:
  621. if {defender::*} contains loop-player:
  622. damage loop-player by 6
  623. delete event-entity
  624. if {defender::*} contains player:
  625. create a safe explosion of force 2 at event-entity
  626. loop all players in radius 4 around event-entity:
  627. if {attacker::*} contains loop-player:
  628. damage loop-player by 6
  629. delete event-entity
  630. else:
  631. if {attacker::*} contains player:
  632. cancel event
  633. if {defender::*} contains player:
  634. cancel event
  635. on pick up:
  636. if {attacker::*} contains player:
  637. cancel event
  638. if {defender::*} contains player:
  639. cancel event
  640.  
  641. on sneak toggle:
  642. if {attacker::*} contains player:
  643. if {kit.%player%} is "スケルトン":
  644. if player is not sneaking:
  645. command "/effect %player% minecraft:speed 32767 5 true"
  646. if player is sneaking:
  647. command "/effect %player% minecraft:speed 0 0"
  648. if {defender::*} contains player:
  649. if {kit.%player%} is "スケルトン":
  650. if player is not sneaking:
  651. command "/effect %player% minecraft:speed 32767 5 true"
  652. if player is sneaking:
  653. command "/effect %player% minecraft:speed 0 0"
Add Comment
Please, Sign In to add comment