tsutitire2

Untitled

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