Dnthy

Untitled

Aug 12th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. options:
  2. tnttag: &c&l[TNT TAG]
  3.  
  4. on first join:
  5. set {gamecoin.%player%} to 0
  6.  
  7. on join:
  8. wait 3 ticks
  9. while player is online:
  10. player is online
  11. wipe player's sidebar
  12. set name of sidebar of player to "&c&lTNT TAG"
  13. set score " " in sidebar of player to 11
  14. set score "&aプレイヤー " in sidebar of player to 10
  15. set score "&d%player%" in sidebar of player to 9
  16. set score " " in sidebar of player to 8
  17. set score "&9プレイヤー数" in sidebar of player to 7
  18. set score "&f%number of all players%" in sidebar of player to 6
  19. set score " " in sidebar of player to 5
  20. set score "&6コイン" in sidebar of player to 4
  21. set score "&e%{gamecoin}%" in sidebar of player to 3
  22. set score " " in sidebar of player to 2
  23. set score "&atest.playerrealms.com" in sidebar of player to 1
  24. wait a second
  25.  
  26. command /start:
  27. trigger:
  28. wait a tick
  29. set {}
  30. set {_countdown} to 30
  31. set {countdown.on} to true
  32. loop {_countdown} times:
  33. if {_countdown} is 30:
  34. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  35. play sound "block.note.hat" with volume 1 at player
  36. if {_countdown} is 10:
  37. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  38. play sound "block.note.hat" with volume 1 at player
  39. if {_countdown} is 5:
  40. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  41. play sound "block.note.hat" with volume 1 at player
  42. if {_countdown} is 4:
  43. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  44. play sound "block.note.hat" with volume 1 at player
  45. if {_countdown} is 3:
  46. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  47. play sound "block.note.hat" with volume 1 at player
  48. if {_countdown} is 2:
  49. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  50. play sound "block.note.hat" with volume 1 at player
  51. if {_countdown} is 1:
  52. broadcast "{@tnttag} &eゲームスタートまで..&c%{_countdown}%"
  53. play sound "block.note.hat" with volume 1 at player
  54. wait 1 seconds
  55. set {_countdown} to {_countdown} - 1
  56. set {_countdown} to {_countdown} - 1
  57. send "{@tnttag} &eゲームスタート!" to player
  58. play sound "block.note.hat" with volume 1 at player
  59. wait a tick
  60. set {tnttag.game} to true
  61. tntfirstoni(player)
  62.  
  63.  
  64. function tntfirstoni(p: player):
  65. delete {tnt::*}
  66. delete {alive::*}
  67. add {joinplayer::*} to {alive::*}
  68. if size of {alive::*} > size of {tnt::*}:
  69. chance of 70%:
  70. add {_p} to {alive::*}
  71. else:
  72. add {_p} to {tnt:*}
  73.  
  74. command /summercoin:
  75. trigger:
  76. if {summercoin.%player%::*} is not set:
  77. execute console command "/addcoin 100"
  78. send "&6100コインを入手しました"
  79. wait a tick
  80. add player to {summercoin.%player%::*}
  81. stop
  82. if {summercoin.%player%} is set:
  83. send "&c既にコインを入手しています"
  84. stop
  85.  
  86. command /summercoinreset:
  87. permission: skript.summercoinreset
  88. trigger:
  89. if {summercoin.%player%} is set:
  90. remove player from {summercoin.%player%::*}
  91.  
  92. command /addcoin [<number>]:
  93. trigger:
  94. add arg 1 to {gamecoin}
  95.  
  96. command /setcoin [<number>]:
  97. trigger:
  98. set {gamecoin} to arg 1
Advertisement
Add Comment
Please, Sign In to add comment