maozou

Murder

Jun 22nd, 2019
1,911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | None | 0 0
  1. options:
  2. logo: &6[&4Murder&6]
  3. command /murder <text> [<number>]:
  4. permission: sk.admin
  5. aliases: mr
  6. trigger:
  7. if arg-1 is "start":
  8. loop all players:
  9. add loop-player to {ino::*}
  10. set {yk.%{_p}%} to "ino"
  11. loop 2 times:
  12. set {_p} to random player of {ino::*}
  13. add {_p} to {mur::*}
  14. set {yk.%{_p}%} to "mur"
  15. remove {_p} from {ino::*}
  16. set {_p} to random player of {ino::*}
  17. add {_p} to {det::*}
  18. set {yk.%{_p}%} to "det"
  19. remove {_p} from {ino::*}
  20. broadcast "{@logo} ゲームを始めます..."
  21. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  22. wait 3 seconds
  23. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  24. broadcast "{@logo} ゲーム開始まで &a5"
  25. wait 1 second
  26. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  27. broadcast "{@logo} ゲーム開始まで &a4"
  28. wait 1 second
  29. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  30. broadcast "{@logo} ゲーム開始まで &a3"
  31. wait 1 second
  32. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  33. broadcast "{@logo} ゲーム開始まで &a2"
  34. wait 1 second
  35. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  36. broadcast "{@logo} ゲーム開始まで &a1"
  37. wait 1 second
  38. loop all players:
  39. teleport the loop-player to {tp-1}
  40. send title "&bDetective" to {det::*}
  41. send title "&4&lMurder" to {mur::*}
  42. send title "&a&lInnocent" to {ino::*}
  43. send "{@logo} &aあなたは&bDetective&aです!" to {det::*}
  44. send "{@logo} &aあなたは&4&lMurder&aです!" to {mur::*}
  45. send "{@logo} &aあなたは&a&lInnocent&aです!" to {ino::*}
  46. wait 5 seconds
  47. broadcast "{@logo} &eMurderが剣を入手するまで &c5秒&e!"
  48. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  49. wait 1 second
  50. broadcast "{@logo} &eMurderが剣を入手するまで &c4秒&e!"
  51. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  52. wait 1 second
  53. broadcast "{@logo} &eMurderが剣を入手するまで &c3秒&e!"
  54. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  55. wait 1 second
  56. broadcast "{@logo} &eMurderが剣を入手するまで &c2秒&e!"
  57. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  58. wait 1 second
  59. broadcast "{@logo} &eMurderが剣を入手するまで &c1秒&e!"
  60. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  61. wait 1 second
  62. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient @a ~ ~ ~ 2 0.9"
  63. broadcast "&eMurderが剣を入手した!"
  64. loop all players:
  65. if {mur::*} contains loop-player:
  66. if {buki.%loop-player%} is not set:
  67. give loop-player iron sword
  68. if {buki.%loop-player%} is 2:
  69. give loop-player tnt
  70. if {det::*} contains loop-player:
  71. if {bow.%loop-player%} is not set:
  72. give loop-player bow named "&rBow"
  73. if {bow.%loop-player%} is 1:
  74. give loop-player bow named "&bBow"
  75. if arg-1 is "stop":
  76. broadcast "{@logo} &aゲームを終了しました。"
  77. delete {mur::*}
  78. delete {det::*}
  79. delete {ino::*}
  80. loop all players:
  81. set {yk.%loop-player%} to ""
  82. set {death.%loop-player%} to ""
  83. if arg-1 is "tp":
  84. if arg-2 is 1:
  85. set {tp-1} to location of player
  86. send "{@logo} TP-1の初期復活地点を設定しました。"
  87. command /check:
  88. permission: sk.admin
  89. trigger:
  90. broadcast "Murder : %{mur::*}%"
  91. broadcast "Detective : %{det::*}%"
  92. broadcast "Innocent : %{ino::*}%"
  93. set {player.%player%} to "ok"
  94. on damage:
  95. if {yk.%victim%} is "mur":
  96. if {yk.%attacker%} is "mur":
  97. cancel event
  98. send "&cMurder同士で攻撃することはできません。" to attacker
  99. if {player.%victim%} is "ok":
  100. if projectile is an arrow:
  101. send title "&c&lYou died" to victim
  102. send "&cMurder&eに倒された!" to victim
  103. set victim's gamemode to spectator
  104. set {daeth.%victim%} to "y"
  105. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.hurt master @a ~ ~ ~ 2 1"
  106. execute console command "/execute %victim% ~ ~ ~ /effect %victim% blindness 3 0 true"
  107. on join:
  108. set {player.%player%} to "ok"
Advertisement
Add Comment
Please, Sign In to add comment