Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /teamset <text>:
- trigger:
- if arg is "Mushroom":
- set {%player%.team} to "Mushroom"
- message "&c&lMushroom&rチームに入ったよ!" to the player
- else if arg is "Creeper":
- set {%player%.team} to "Creeper"
- message "&a&lCreeper&rチームに入ったよ!" to the player
- else:
- message "MushroomかCreeperで入力して下さい。" to the player
- command /maxkillchange <integer>:
- trigger:
- set {goal} to arg
- message "目標KILL数を%arg%に設定しました。" to the player
- command /start:
- trigger:
- set {playing} to true
- set {Mushroom.kills} to 0
- set {Creeper.kills} to 0
- on death of player:
- if {%attacker%.team} is "Mushroom":
- add 1 to {Mushroom.kills}
- if {Mushroom.kills} is {goal}:
- set {playing} to false
- execute console command "/title @a title {""text"":""§c§lMushroomチームの勝ち!""}"
- loop all players:
- if {%loop-player%.team} is "Mushroom":
- give a sunflower named "&6&lWinner medal" to loop-player
- if {firework} is more than 0:
- give 2 sunflowers named "&c&lMushroom medal" to loop-player
- else:
- give a sunflower named "&c&lMushroom medal" to loop-player
- subtract 1 from {firework}
- broadcast "&6&lWinfireworksの効果はあと%{firework}%試合続きます。"
- else:
- broadcast "あと%{goal} - {Mushroom.kills}%KILLで&c&lMushroom&rチームの勝ちとなります。"
- else:
- add 1 to {Creeper.kills}
- if {Creeper.kills} is {goal}:
- set {playing} to false
- execute console command "/title @a title {""text"":""§a§lCreeperチームの勝ち!""}"
- loop all players:
- if {%loop-player%.team} is "Creeper":
- give a sunflower named "&6&lWinner medal" to loop-player
- if {firework} is more than 0:
- give 2 sunflowers named "&a&lCreeper medal" to loop-player
- else:
- give a sunflower named "&a&lCreeper medal" to loop-player
- subtract 1 from {firework}
- broadcast "&6&lWinfireworksの効果はあと%{firework}%試合続きます。"
- else:
- broadcast "あと%{goal} - {Creeper.kills}%KILLで&a&lCreeper&rチームの勝ちとなります。"
- on rightclick with firework:
- if player's tool's name is "§6§lWinfireworks":
- cancel event
- if clicked block isn't air:
- set {_x} to clicked block's x-coord
- set {_y} to clicked block's y-coord
- set {_z} to clicked block's z-coord
- execute console command "/clear %player% fireworks 0 1 {display:{Name:""§6§lWinfireworks""}}"
- execute console command "/summon fireworks_rocket %{_x}% %{_y}% %{_z}% {Motion:[0.0,0.75,0.0],LifeTime:15,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:2,Colors:[I;16768310,8716070,16777215],FadeColors:[I;8339711,16729927,2389247]}]}}}}"
- add 10 to {firework}
- broadcast "&6&l%player%さんがWinfireworksを使用して報酬を2倍にしてくれました!効果はあと%{firework}%試合続きます。"
- command /fireworkreset:
- trigger:
- set {firework} to 0
- broadcast "&6&l効果持続試合数をリセットしました。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement