Advertisement
Melon100

tnt tag

Feb 29th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. Start-Permission: admin
  3.  
  4. on first join:
  5. execute console command "/item %player%"
  6.  
  7. command /item <player>:
  8. executable by: console
  9. trigger:
  10. set slot 1 of player's hotbar to tnt named "&c参加"
  11. set slot 3 of player's hotbar to chest named "&a"
  12.  
  13. command /start:
  14. permission: {@Start-Permission}
  15. trigger:
  16. command "/playsound entity.player.levelup ambient @a ~ ~ ~ 1 1 1"
  17. wait 3 second
  18. delete {oni::*}
  19. set {_players::*} to all players
  20. loop 3 times:
  21. {_players::*} is set
  22. set {_p} to random element out of {_players::*}
  23. command "/effect %{_p}% speed 100 2"
  24. add {_p} to {oni::*}
  25. remove {_p} from {_players::*}
  26. broadcast "&d今回の鬼は&c%{oni::*}% です!!"
  27. loop all players:
  28. if {oni::*} contains player:
  29. stop
  30. else:
  31. add loop-player to {nige::*}
  32. equip {oni::*} with tnt of curse-of-binding 1
  33. command "/tp @a %座標%"
  34. send "&a&l================================"
  35. send "&e&lTNT TAG"
  36. send "&6鬼はTNTを逃げに擦りつけましょう!!"
  37. send "&6逃げは鬼にやられないように、隠れたり逃げたりしましょう!!"
  38. send "&c&l敵陣営とのチーミングは禁止行為です。(&4BAN対象)"
  39. send "&6それでは、頑張ってください!!"
  40. send "&a&l================================"
  41. set {kaisi} to 1
  42. add 45 to {time}
  43. wait 45 second
  44. loop all players:
  45. if {oni::*} contains loop-player:
  46. command "/particle minecraft:explosion ~ ~ ~ 2 2 2 1 100 force %loop-player%"
  47. message "&e%loop-player%は爆発した!!" to all players
  48. command "/playsound entity.generic.explode ambient @a ~ ~ ~ 1 1 1"
  49. wait 5 second
  50. delete {oni::*}
  51. set {_players::*} to {nige::*}
  52. loop 2 times:
  53. {_players::*} is set
  54. set {_p} to random element out of {_players::*}
  55. add {_p} to {oni::*}
  56. remove {_p} from {_players::*}
  57. broadcast "&a======================="
  58. broadcast "&a"
  59. broadcast "&6&lRound 2"
  60. broadcast "&c今回の鬼は&e%{oni::*}%です"
  61. broadcast "&6"
  62. broadcast "&a======================="
  63.  
  64.  
  65. every tick:
  66. if {kaisi} is 1:
  67. loop all players:
  68. if {oni:*} contains loop-player:
  69. send action bar "&c残り%{time}%秒で爆発します!!あなたは今鬼です!!" to loop-player
  70. if {nige::*} contains loop-player:
  71. send action bar "&a残り%{time}%秒で爆発します!!あなたは今逃げです!!" to loop-player
  72.  
  73. on quit:
  74. if {oni::*} contains player:
  75. remove player from {oni::*}
  76. set the quit message "&c[鬼]%player%が抜けました。"
  77. if {nige::*} contains player:
  78. remove player from {nige::*}
  79.  
  80. on damage:
  81. if {kaisi} is 1
  82. if {oni::*} contains attacker:
  83. if {nige::*} contains victim:
  84. remove attacker from {oni::*}
  85. remove victim from {nige::*}
  86. add attacker to {nige::*}
  87. add victim to {oni::*}
  88. broadcast "&c&l[&e&lTNT-TAG-鬼&c&l]&1&l%attacker%&e&l>>>&c%victim%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement