Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {fstpos} = 0
- {filposx} = 0
- {filposy} = 0
- {filposz} = 0
- {filposrx} = 0
- {filposrz} = 0
- {hnyrnd} = 0
- {matdng} = 0
- {radius} = 0
- {matstg} = 0
- {score} = 0
- {creep} = 0
- {times} = 0
- {playern} = 0
- #Setting commands
- command /setpos <int> <int> <int> <int>:
- trigger:
- if arg 1 is 1:
- set {fstpos} to player's location
- if arg 1 is 2:
- set {filposx} to arg 2
- set {filposy} to arg 3
- set {filposz} to arg 4
- command /setmat <int> <int>:
- trigger:
- if arg 1 is 1:
- set {radius} to arg 2
- #starting!
- On right click on sponge:
- if {matdng} is 0:
- set {matdng} to 1
- set {matstg} to 0
- set {score} to 0
- set {times} to 0
- set {playern} to player
- teleport the player to {fstpos}
- #wow, this is shooting game yeah!
- every seconds:
- if {matdng} is 1:
- if {matstg} is 0:
- loop 10 times:
- set {filposrx} to random integer between 5 to 5 + {radius}
- set {hnyrnd} to random integer between 1 to 2
- if {hnyrnd} is 1:
- set {filposrx} to {filposrx} * -1
- set {filposrz} to random integer between 5 to 5 + {radius}
- set {hnyrnd} to random integer between 1 to 2
- if {hnyrnd} is 1:
- set {filposrz} to {filposrz} * -1
- set {filposrx} to {filposrx} + {filposx}
- set {filposrz} to {filposrz} + {filposz}
- execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
- set {matstg} to 1
- if {matstg} is 1:
- loop {creep} times:
- set {filposrx} to random integer between 5 to 5 + {radius}
- set {hnyrnd} to random integer between 1 to 2
- if {hnyrnd} is 1:
- set {filposrx} to {filposrx} * -1
- set {filposrz} to random integer between 5 to 5 + {radius}
- set {hnyrnd} to random integer between 1 to 2
- if {hnyrnd} is 1:
- set {filposrz} to {filposrz} * -1
- set {filposrx} to {filposrx} + {filposx}
- set {filposrz} to {filposrz} + {filposz}
- execute console command "/summon creeper %{filposrx}% %{filposy}% %{filposrz}% {NoAI:1,Silent:1}"
- set {creep} to 0
- set {times} to {times} + 1
- if {times} is more than 60:
- set {matstg} to 2
- broadcast "%{playern}% さんが的当てゲームを %{score}% ポイントで終了しました!お疲れさまでした!"
- set {matdng} to 0
- execute console command "/kill @e[type=creeper]"
- On death:
- if victim is creeper:
- set {score} to {score} + 1
- set {creep} to {creep} + 1
Add Comment
Please, Sign In to add comment