Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /team:
- permission: team.admin
- trigger:
- set {red::*} and {blue::*} to 0
- loop all players:
- set {game.%loop-player%} to loop-player
- if {red::*} >= {blue::*}:
- add 1 to {blue::%player%}
- set {game.%loop-player%} to "blue"
- else:
- add 1 to {red::%player%}
- set {game.%loop-player%} to "red"
- wait a tick
- command /start:
- permission: start.admin
- trigger:
- execute console command "/team"
- loop all players:
- execute console command "execute @a ~ ~ ~ /playsound minecraft:block.note.harp master @a ~ ~ ~ 1 0.5"
- send loop-player title "&a-3-" with subtitle "&fスタートまで..." for 1 seconds
- wait 1 seconds
- execute console command "execute @a ~ ~ ~ /playsound minecraft:block.note.harp master @a ~ ~ ~ 1 0.6"
- send loop-player title "&c-2-" with subtitle "" for 1 seconds
- wait 1 seconds
- execute console command "execute @a ~ ~ ~ /playsound minecraft:block.note.harp master @a ~ ~ ~ 1 0.7"
- send loop-player title "&4-1-" for 1 seconds
- wait 1 seconds
- send loop-player title "&e--&b&lSTART&e--" for 3 seconds
- execute console command "execute @a ~ ~ ~ /playsound minecraft:block.anvil.place master @a ~ ~ ~ 1 1"
- teleport {red::*} to {spawn::red}
- teleport {blue::*} to {spawn::blue}
- options:
- title: &b&kA &f&l雪合戦 &b&kA
- subtitle: &3Welcome to &e%player%
- on join:
- send player title "{@title}" with subtitle "{@subtitle}" for 5 seconds
- if {hp.%player%} is not set:
- set {hp.%player%} to 100
- if {atk.%player%} is not set:
- set {atk.%player%} to 5
- if {snowball.%player%} is not set:
- set {snowball.%player%} to 0
- on damage:
- if projectile is snowball:
- remove {hp.%victim%} from {atk.%attacker%}
- send "&cHit!" to victim
- else:
- cancel event
- command /setspawn [<text>] [<text>]:
- permission: setspawn.sk
- trigger:
- if arg-1 is not set:
- send "&c/setspawn add,remove,list [<name>]"
- if arg-1 is "add":
- if arg-2 is set:
- set {spawn::%arg-2%} to location of player
- if arg-1 is "remove":
- if arg-2 is set:
- remove {spawn::%arg-2%} from {spawn::*}
- if arg-1 is "list":
- loop {spawn::*}:
- set {_set.%loop-value%} to loop-value
- loop {_set.%loop-value%}:
- if {_set} is set:
- send "%{_set.loop-value%} %{spawn::*}%"
- remove loop-value from {spawn::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement