tsutitire2

Untitled

May 13th, 2020
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 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. #Setting commands
  26. command /setpos <int> <int> <int> <int>:
  27. trigger:
  28. if arg 1 is 1:
  29. set {fstpos} to player's location
  30. if arg 1 is 2:
  31. set {filposx} to arg 2
  32. set {filposy} to arg 3
  33. set {filposz} to arg 4
  34. command /setmat <int> <int>:
  35. trigger:
  36. if arg 1 is 1:
  37. set {radius} to arg 2
  38.  
  39. #starting!
  40. On right click on sponge:
  41. if {matdng} is 0:
  42. set {matdng} to 1
  43. set {matstg} to 0
  44. set {score} to 0
  45. set {times} to 0
  46. set {playern} to player
  47. teleport the player to {fstpos}
  48. #wow, this is shooting game yeah!
  49. every seconds:
  50. if {matdng} is 1:
  51. if {matstg} is 0:
  52. loop 4 times:
  53. set {filposrx} to random integer between 1 to {radius}
  54. set {hnyrnd} to random integer between 1 to 2
  55. if {hnyrnd} is 1:
  56. set {filposrx} to {filposrx} * -1
  57. set {filposrz} to random integer between 1 to {radius}
  58. set {hnyrnd} to random integer between 1 to 2
  59. if {hnyrnd} is 1:
  60. set {filposrz} to {filposrz} * -1
  61. set {filposrx} to {filposrx} + {filposx}
  62. set {filposrz} to {filposrz} + {filposz}
  63. execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
  64. set {matstg} to 1
  65. if {matstg} is 1:
  66. loop {creep} times:
  67. set {filposrx} to random integer between 1 to {radius}
  68. set {hnyrnd} to random integer between 1 to 2
  69. if {hnyrnd} is 1:
  70. set {filposrx} to {filposrx} * -1
  71. set {filposrz} to random integer between 1 to {radius}
  72. set {hnyrnd} to random integer between 1 to 2
  73. if {hnyrnd} is 1:
  74. set {filposrz} to {filposrz} * -1
  75. set {filposrx} to {filposrx} + {filposx}
  76. set {filposrz} to {filposrz} + {filposz}
  77. execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
  78. set {creep} to 0
  79. set {times} to {times} + 1
  80. if {times} is more than 60:
  81. set {matstg} to 2
  82. broadcast "%{playern}% さんが的当てゲームを %{score}% ポイントで終了しました!お疲れさまでした!"
  83. set {matdng} to 0
  84. execute console command "/kill @e[type=creeper]"
  85. On death:
  86. if victim is creeper:
  87. set {score} to {score} + 1
  88. set {creep} to {creep} + 1
Add Comment
Please, Sign In to add comment