Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /maxkillchange <integer>:
- trigger:
- set {goal} to arg
- message "目標KILL数を%arg%に設定しました。" to the player
- command /warstart:
- trigger:
- execute console command "/title @a title {""text"":""§a§l3""}"
- execute console command "/playsound minecraft:entity.experience_orb.pickup master @a ~ ~ ~ 1 0.1 1"
- wait for a second
- execute console command "/title @a title {""text"":""§e§l2""}"
- execute console command "/playsound minecraft:entity.experience_orb.pickup master @a ~ ~ ~ 1 0.1 1"
- wait for a second
- execute console command "/title @a title {""text"":""§c§l1""}"
- execute console command "/playsound minecraft:entity.experience_orb.pickup master @a ~ ~ ~ 1 0.1 1"
- wait for a second
- set {playing} to true
- set {Mushroom.kills} to 0
- set {Creeper.kills} to 0
- execute console command "/title @a title {""text"":""§d§lGAME START""}"
- on death of player:
- if {playing} is true:
- 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
- if {firework} is more than 0:
- subtract 1 from {firework}
- if {firework} is 0:
- broadcast "&6&lWinfireworksの効果が切れました。"
- else:
- broadcast "&6&lWinfireworksの効果はあと%{firework}%試合続きます。"
- 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
- if {firework} is more than 0:
- subtract 1 from {firework}
- if {firework} is 0:
- broadcast "&6&lWinfireworksの効果が切れました。"
- else:
- broadcast "&6&lWinfireworksの効果はあと%{firework}%試合続きます。"
- else:
- broadcast "あと%{goal} - {Creeper.kills}%KILLで&a&lCreeper&rチームの勝ちとなります。"
- command /warstop:
- trigger:
- set {playing} to false
- broadcast "&cWarを終わらせました。"
- on rightclick with firework:
- if player's tool's name is "§bWinfireworks":
- cancel event
- execute player command "/clear @s diamond 0 1 {display:{Name:""§bWinfireworks""}}"
- execute player command "/summon fireworks_rocket ~ ~ ~ {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 "&b&l%player%さんがWinfireworksを使用して報酬を2倍にしてくれました!効果はあと%{firework}%試合続きます。"
- command /fireworkreset:
- trigger:
- set {firework} to 0
- broadcast "&b&l効果持続試合数をリセットしました。"
- on rightclick:
- if player's tool is gray dye named "§7不参加":
- execute player command "/replaceitem entity @s slot.hotbar.3 dye 1 10 {display:{Name:""§a参加""}}"
- add player to {member::*}
- broadcast "&a&l%player%さんが参加しました!現在:%size of {member::*}%"
- stop
- if player's tool is lime dye named "§a参加":
- execute player command "/replaceitem entity @s slot.hotbar.3 dye 1 8 {display:{Name:""§7不参加""}}"
- remove player from {member::*}
- broadcast "&c&l%player%さんが退出しました!現在:%size of {member::*}%"
- every 8 minutes:
- execute console command "/kill @e[type=!player]"
- broadcast "&c&lMobを処理しました。"
- execute console command "/sk reload all"
- broadcast "&c&lSkriptをリロードしました。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement