tsutitire2

Untitled

May 13th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 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. #Setting commands
  28. command /setpos <int> <int> <int> <int>:
  29. permission: skript.admin
  30. trigger:
  31. if arg 1 is 1:
  32. set {fstpos} to player's location
  33. if arg 1 is 2:
  34. set {filposx} to arg 2
  35. set {filposy} to arg 3
  36. set {filposz} to arg 4
  37. command /setmat <int> <int>:
  38. permission: skript.admin
  39. trigger:
  40. if arg 1 is 1:
  41. set {radius} to arg 2
  42.  
  43. #starting!
  44. On right click on sponge:
  45. if {matdng} is 1:
  46. message "Now, a player is playing the shooting game now. pls wait!"
  47. if {matdng} is 0:
  48. set {matdng} to 1
  49. set {matstg} to 0
  50. set {score} to 0
  51. set {times} to 0
  52. set {creep} to 0
  53. set {playern} to player
  54. teleport the player to {fstpos}
  55. send title "5" to the player
  56. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  57. wait 1 seconds
  58. send title "4" to the player
  59. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  60. wait 1 seconds
  61. send title "3" to the player
  62. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  63. wait 1 seconds
  64. send title "2" to the player
  65. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  66. wait 1 seconds
  67. send title "1" to the player
  68. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  69. wait 1 seconds
  70. send title "GO!" to the player
  71. execute player command "/playsound minecraft:entity.experience_orb.pickup ambient %player%"
  72. #wow, this is shooting game yeah!
  73. every seconds:
  74. if {matdng} is 1:
  75. if {matstg} is 0:
  76. wait 5 seconds
  77. loop 3 times:
  78. set {filposrx} to random integer between 1 to {radius}
  79. set {hnyrnd} to random integer between 1 to 2
  80. if {hnyrnd} is 1:
  81. set {filposrx} to {filposrx} * -1
  82. set {filposrz} to random integer between 1 to {radius}
  83. set {hnyrnd} to random integer between 1 to 2
  84. if {hnyrnd} is 1:
  85. set {filposrz} to {filposrz} * -1
  86. set {filposrx} to {filposrx} + {filposx}
  87. set {filposrz} to {filposrz} + {filposz}
  88. execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
  89. set {matstg} to 1
  90. if {matstg} is 1:
  91. loop {creep} times:
  92. set {filposrx} to random integer between 1 to {radius}
  93. set {hnyrnd} to random integer between 1 to 2
  94. if {hnyrnd} is 1:
  95. set {filposrx} to {filposrx} * -1
  96. set {filposrz} to random integer between 1 to {radius}
  97. set {hnyrnd} to random integer between 1 to 2
  98. if {hnyrnd} is 1:
  99. set {filposrz} to {filposrz} * -1
  100. set {filposrx} to {filposrx} + {filposx}
  101. set {filposrz} to {filposrz} + {filposz}
  102. execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
  103. set {creep} to 0
  104. set {times} to {times} + 1
  105. if {times} is more than 60:
  106. set {matstg} to 2
  107. broadcast "%{playern}% さんが的当てゲームを %{score}% ポイントで終了しました!お疲れさまでした!"
  108. set {matdng} to 0
  109. execute console command "/kill @e[type=creeper]"
  110. if {score} is more than {bests}:
  111. set {bests} to {score} - 18
  112. set {bestp} to {playern}
  113. On death:
  114. if victim is creeper:
  115. set {score} to {score} + 1
  116. set {creep} to {creep} + 1
  117. #do you want to see the best player? so you should use them:
  118. command /rank:
  119. trigger:
  120. message "The top player is %{bestp}% and his/her score is %{bests}%! wow!"
  121. command /rstrank:
  122. permission: skript.admin
  123. trigger:
  124. set {bestp} to "tsutitire"
  125. set {bests} to 0
Add Comment
Please, Sign In to add comment