Advertisement
AtsuSheee

Untitled

Dec 8th, 2019
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. command /team:
  2. permission: team.admin
  3. trigger:
  4. set {red::*} and {blue::*} to 0
  5. loop all players:
  6. set {game.%loop-player%} to loop-player
  7. if {red::*} >= {blue::*}:
  8. add 1 to {blue::%player%}
  9. set {game.%loop-player%} to "blue"
  10. else:
  11. add 1 to {red::%player%}
  12. set {game.%loop-player%} to "red"
  13. wait a tick
  14.  
  15. command /start:
  16. permission: start.admin
  17. trigger:
  18. execute console command "/team"
  19. loop all players:
  20. execute console command "execute @a ~ ~ ~ /playsound minecraft:block.note.harp master @a ~ ~ ~ 1 0.5"
  21. send loop-player title "&a-3-" with subtitle "&fスタートまで..." for 1 seconds
  22. wait 1 seconds
  23. execute console command "execute @a ~ ~ ~ /playsound minecraft:block.note.harp master @a ~ ~ ~ 1 0.6"
  24. send loop-player title "&c-2-" with subtitle "" for 1 seconds
  25. wait 1 seconds
  26. execute console command "execute @a ~ ~ ~ /playsound minecraft:block.note.harp master @a ~ ~ ~ 1 0.7"
  27. send loop-player title "&4-1-" for 1 seconds
  28. wait 1 seconds
  29. send loop-player title "&e--&b&lSTART&e--" for 3 seconds
  30. execute console command "execute @a ~ ~ ~ /playsound minecraft:block.anvil.place master @a ~ ~ ~ 1 1"
  31. teleport {red::*} to {spawn::red}
  32. teleport {blue::*} to {spawn::blue}
  33.  
  34. options:
  35. title: &b&kA &f&l雪合戦 &b&kA
  36. subtitle: &3Welcome to &e%player%
  37. on join:
  38. send player title "{@title}" with subtitle "{@subtitle}" for 5 seconds
  39. if {hp.%player%} is not set:
  40. set {hp.%player%} to 100
  41. if {atk.%player%} is not set:
  42. set {atk.%player%} to 5
  43. if {snowball.%player%} is not set:
  44. set {snowball.%player%} to 0
  45.  
  46. on damage:
  47. if projectile is snowball:
  48. remove {hp.%victim%} from {atk.%attacker%}
  49. send "&cHit!" to victim
  50. else:
  51. cancel event
  52.  
  53. command /setspawn [<text>] [<text>]:
  54. permission: setspawn.sk
  55. trigger:
  56. if arg-1 is not set:
  57. send "&c/setspawn add,remove,list [<name>]"
  58. if arg-1 is "add":
  59. if arg-2 is set:
  60. set {spawn::%arg-2%} to location of player
  61. if arg-1 is "remove":
  62. if arg-2 is set:
  63. remove {spawn::%arg-2%} from {spawn::*}
  64. if arg-1 is "list":
  65. loop {spawn::*}:
  66. set {_set.%loop-value%} to loop-value
  67. loop {_set.%loop-value%}:
  68. if {_set} is set:
  69. send "%{_set.loop-value%} %{spawn::*}%"
  70. remove loop-value from {spawn::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement