tsutitire2

Untitled

May 13th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. #================================================================================#
  2. # This is written by tsutitire,yeah #
  3. # And thank you for buy this skript. I should say it first... #
  4. # Please allow these rules and using, please! #
  5. # one. Don't give this skript for anyone! #
  6. # two. Don't use this skript for bad things! (I don't know that how to do it.) #
  7. # three. Enjoy! #
  8. # Oh, you are good cause you read all of this message. So I say it again, ENJOY! #
  9. #================================================================================#
  10. Variables:
  11. {fstpos} = 0
  12. {filposx} = 0
  13. {filposy} = 0
  14. {filposz} = 0
  15. {filposrx} = 0
  16. {filposrz} = 0
  17. {hnyrnd} = 0
  18. {matdng} = 0
  19. {radius} = 0
  20. {matstg} = 0
  21. {score} = 0
  22. {creep} = 0
  23. {times} = 0
  24. {playern} = 0
  25. {bestp} = "tsutitire"
  26. {bests} = 0
  27. {creepi} = 0
  28. #Setting commands
  29. command /setpos <int> <int> <int> <int>:
  30. permission: skript.admin
  31. trigger:
  32. if arg 1 is 1:
  33. set {fstpos} to player's location
  34. if arg 1 is 2:
  35. set {filposx} to arg 2
  36. set {filposy} to arg 3
  37. set {filposz} to arg 4
  38. command /setmat <int> <int>:
  39. permission: skript.admin
  40. trigger:
  41. if arg 1 is 1:
  42. set {radius} to arg 2
  43. if arg 1 is 2:
  44. set {creepi} to arg 2
  45. #starting!
  46. On right click on sponge:
  47. if {matdng} is 1:
  48. message "Now, a player is playing the shooting game now. pls wait!"
  49. if {matdng} is 0:
  50. set {matdng} to 1
  51. set {matstg} to 0
  52. set {score} to 0
  53. set {times} to 0
  54. set {creep} to 0
  55. set {playern} to player
  56. teleport the player to {fstpos}
  57. send title "5" to the player
  58. execute console command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  59. wait 1 seconds
  60. send title "4" to the player
  61. execute console command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  62. wait 1 seconds
  63. send title "3" to the player
  64. execute console command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  65. wait 1 seconds
  66. send title "2" to the player
  67. execute console command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  68. wait 1 seconds
  69. send title "1" to the player
  70. execute console command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  71. wait 1 seconds
  72. send title "GO!" to the player
  73. execute console command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  74. #wow, this is shooting game yeah!
  75. every seconds:
  76. if {matdng} is 1:
  77. if {matstg} is 0:
  78. wait 5 seconds
  79. loop {creepi} times:
  80. set {filposrx} to random integer between 1 to {radius}
  81. set {hnyrnd} to random integer between 1 to 2
  82. if {hnyrnd} is 1:
  83. set {filposrx} to {filposrx} * -1
  84. set {filposrz} to random integer between 1 to {radius}
  85. set {hnyrnd} to random integer between 1 to 2
  86. if {hnyrnd} is 1:
  87. set {filposrz} to {filposrz} * -1
  88. set {filposrx} to {filposrx} + {filposx}
  89. set {filposrz} to {filposrz} + {filposz}
  90. execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
  91. set {matstg} to 1
  92. if {matstg} is 1:
  93. loop {creep} times:
  94. set {filposrx} to random integer between 1 to {radius}
  95. set {hnyrnd} to random integer between 1 to 2
  96. if {hnyrnd} is 1:
  97. set {filposrx} to {filposrx} * -1
  98. set {filposrz} to random integer between 1 to {radius}
  99. set {hnyrnd} to random integer between 1 to 2
  100. if {hnyrnd} is 1:
  101. set {filposrz} to {filposrz} * -1
  102. set {filposrx} to {filposrx} + {filposx}
  103. set {filposrz} to {filposrz} + {filposz}
  104. execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
  105. set {creep} to 0
  106. set {times} to {times} + 1
  107. if {times} is more than 60:
  108. set {score} to {score}
  109. set {matstg} to 2
  110. broadcast "%{playern}% さんが的当てゲームを %{score}% ポイントで終了しました!お疲れさまでした!"
  111. set {matdng} to 0
  112. if {score} is more than {bests}:
  113. set {bests} to {score}
  114. set {bestp} to {playern}
  115. broadcast "%{playern}%さんが的当てゲームでハイスコアを更新したようです! なんと%{score}% ポイント!"
  116. execute console command "/kill @e[type=creeper]"
  117. On death:
  118. if victim is creeper:
  119. set {score} to {score} + 1
  120. set {creep} to {creep} + 1
  121. #do you want to see the best player? so you should use them:
  122. command /rank:
  123. trigger:
  124. message "The top player is %{bestp}% and his/her score is %{bests}%! wow!"
  125. command /rstrank:
  126. permission: skript.admin
  127. trigger:
  128. set {bestp} to "tsutitire"
  129. set {bests} to 0
Add Comment
Please, Sign In to add comment