maozou

隠れ玉

Dec 15th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. every ticks:
  2. loop all players:
  3. if loop-player's tool is slimeball:
  4. if {kakure.%loop-player%} is greater or equal to 1:
  5. hide the loop-player from all players
  6. execute console command "/title %loop-player% actionbar {""text"":""\u96a0\u308c\u7389\u4f7f\u7528\u4e2d \u2026 %{kakure.%loop-player%}%"",""bold"":true,""color"":""blue""}"
  7. set {kakureset.%loop-player%} to "true"
  8. else:
  9. if loop-player's tool is slimeball:
  10. if {kakure.%loop-player%} is 0:
  11. execute console command "/title %loop-player% actionbar {""text"":""\u96a0\u308c\u7389\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093"",""bold"":true,""color"":""blue""}"
  12. reveal the loop-player from all players
  13. execute console command "/effect %loop-player% 8 0"
  14. execute console command "/effect %loop-player% 2 0"
  15. set {kakureset.%loop-player%} to "false"
  16. if loop-player's tool is air:
  17. reveal the loop-player from all players
  18. execute console command "/effect %loop-player% 8 0"
  19. execute console command "/effect %loop-player% 2 0"
  20. set {kakureset.%loop-player%} to "false"
  21.  
  22. command /kakureset <player>:
  23. permission: skript.admin
  24. trigger:
  25. set {kakure.%arg-1%} to 15
  26.  
  27. every 1 second:
  28. loop all players:
  29. if {kakureset.%loop-player%} is "true":
  30. remove 1 from {kakure.%loop-player%}
  31. execute console command "effect %loop-player% 8 1 250 true"
  32. execute console command "effect %loop-player% 2 1 1 true"
  33.  
  34. command /show [<player>]:
  35. permission: skript.admin
  36. trigger:
  37. reveal the arg-1 from all players
Add Comment
Please, Sign In to add comment