tsutitire2

Untitled

Jun 7th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. command /pvpcount <int>:
  2. trigger:
  3. if {counted401} is 0:
  4. set {counted401} to 1
  5. broadcast "PVP開始までのカウントダウンが開始されます!"
  6. disable pvp
  7. loop all players:
  8. set loop-player's walk speed to 0
  9. set {counting402} to 0
  10. while {counting402} is less than arg 1:
  11. set {counting403} to arg 1 - {counting402}
  12. loop all players:
  13. send title "%{counting403}%" to loop-player
  14. wait 1 second
  15. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  16. set {counting402} to {counting402} + 1
  17. enable pvp
  18. loop all players:
  19. set loop-player's walk speed to 0.5
  20. send title "0" to loop-player
  21. set {counting402} to 0
  22. set {counting403} to 0
  23. permission: skript.admin
  24. description: "/pvpcount <waitseconds>"
  25. On jump:
  26. if {counting402} is more than 0:
  27. cancel event
  28. command /resetpvp:
  29. trigger:
  30. set {counted401} to 0
  31. set {counting402} to 10000000
  32. set {counting403} to 0
Add Comment
Please, Sign In to add comment