Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /random:
- trigger:
- set {_pnum} to 0
- set {_lnum} to 0
- delete {red::*}
- delete {blue::*}
- delete {teamwhite::*}
- loop all players:
- add loop-player to {teamwhite::*}
- add 1 to {_pnum}
- loop {_pnum} times:
- add 1 to {_lnum}
- set {_random} to a random player out of {teamwhite::*}
- remove {_random} from {teamwhite::*}
- if {_lnum} is 1:
- add {_random} to {red::*}
- set {red.%{_random}%} to true
- else if {_lnum} is 2:
- add {_random} to {blue::*}
- set {blue.%{_random}%} to true
- remove 2 from {_lnum}
- message "&6あなたは&c赤チーム&6です!" to {red::*}
- message "&6あなたは&9青チーム&6です!" to {blue::*}
- command /teamspawn [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 is set:
- if arg 1 is "red":
- if arg 2 is set:
- set {redspawn} to location of player
- message "&cRedTeam respawn point %location%"
- if arg 1 is "blue":
- if arg 2 is set:
- set {bluespawn} to location of player
- message "&9blueTeam respawn point %location%"
- if arg 1 is set:
- if arg 2 is not set:
- set {lobby} to location of player
- message "&6ロビーの位置を%location%にしました"
- command /players:
- permission: skript.admin
- trigger:
- broadcast "&c赤は%{red::*}%です"
- broadcast "&9青は%{blue::*}%です"
- send "Red HP &c%{hp.red}%"
- send "Blue HP &9%{hp.blue}%"
- command /stopgame:
- permission: skript.admin
- trigger:
- disable PvP in all worlds
- heal all players
- command "/clear @a"
- command "/effect @a clear"
- delete {red::*}
- delete {blue::*}
- set {hp.red} to 5
- set {hp.blue} to 5
- set {game} to false
- loop all players:
- set {god.%loop-player%} to false
- set {nowkills.%loop-player%} to 0
- teleport all players to {lobby}
- if {re} is true:
- broadcast "&630秒後に開始します"
- wait 30 seconds
- execute console command "/start"
- on rightclick holding stick:
- if event-block is end stone:
- set {nexus.blue} to location of targeted block
- message "&9青&6のネクサスを設定しました"
- else:
- message "&6エンドストーン以外は指定できません"
- stop
- on leftclick holding stick:
- if event-block is end stone:
- cancel event
- set {nexus.red} to location of targeted block
- message "&c赤&6のネクサスを設定しました"
- else if event-block is not end stone:
- message "&6エンドストーン以外は指定できません"
- cancel event
- stop
- on drop of stick:
- cancel event
- message "&6ネクサスの場所を削除しました"
- delete {nexus.red}
- delete {nexus.blue}
- on mine:
- if location of event-block is {nexus.red}:
- if player is {red::*}:
- message "&6自軍のネクサスには攻撃できません"
- cancel event
- stop
- cancel event
- broadcast "&9%player%&6が&c赤&6のネクサスを削りました!"
- remove 1 from {hp.red}
- if {hp.red} is 1:
- broadcast "&c赤チームのHPが1になりました!!"
- execute console command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 2 1 1"
- teleport {blue::*} to {bluespawn}
- if {hp.red} is 0:
- execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
- wait 5 seconds
- execute console command "/stopgame"
- stop
- #↑ Red ↓Blue
- if location of event-block is {nexus.blue}:
- if player is {blue::*}:
- message "&6自軍のネクサスには攻撃できません"
- cancel event
- stop
- cancel event
- broadcast "&c%player%&6が&9青&6のネクサスを削りました!"
- remove 1 from {hp.blue}
- if {hp.blue} is 1:
- broadcast "&9青チームのHPが1になりました!!"
- execute console command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 2 1 1"
- teleport {red::*} to {redspawn}
- if {hp.blue} is 0:
- execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
- broadcast "&c赤チーム&6の勝利!!"
- wait 5 seconds
- execute console command "/stopgame"
- on mine of end stone:
- set {_chance} to random integer between 1 and 4
- if {_chance} is 1:
- command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 1 1"
- if {_chance} is 2:
- command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.9 1"
- if {_chance} is 3:
- command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.6 1"
- if {_chance} is 4:
- command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.3 1"
- on break:
- if player is not op:
- cancel event
- if {game} is true:
- cancel event
- on place:
- if player is not op:
- cancel event
- if {game} is true:
- cancel event
- on drop:
- if player is not op:
- cancel event
- if {game} is true:
- cancel event
- on join:
- broadcast "&e%player% &9Has Joined"
- teleport player to {lobby}
- command "/gamemode 2 %player%"
- on quit:
- if player is {red::*}:
- remove player from {red::*}
- stop
- if player is {blue::*}:
- remove player from {blue::*}
- stop
- on death of player:
- if {game} is true:
- add 1 to {nowkills.%attacker%}
- if {nowkills.%attacker%} is 10:
- give diamond sword named "&5&n&lGhostFinalSword" to attacker
- stop
- if {nowkills.%attacker%} is 6:
- give iron sword to attacker
- stop
- if {nowkills.%attacker%} is 5:
- equip attacker with chainmail chestplate
- stop
- if {nowkills.%attacker%} is 4:
- equip attacker with chainmail leggings
- stop
- if {nowkills.%attacker%} is 3:
- equip attacker with chainmail boots
- stop
- if {nowkills.%attacker%} is 2:
- equip attacker with chainmail helmet
- stop
- if {nowkills.%attacker%} is 1:
- set slot 0 of attacker to stone sword
- stop
- on death of player:
- if {game} is true:
- force victim to respawn
- if victim is {red::*}:
- teleport victim to {redspawn}
- if victim is {blue::*}:
- teleport victim to {bluespawn}
- set {nowkills.%victim%} to 0
- else:
- send "&cError &6Victim is &c%victim%" to ops
- force victim to respawn
- teleport victim to {lobby}
- stop
- on death of player:
- if {game} is true:
- give player skull to attacker
- wait 1 tick
- execute console command "/clear %victim%"
- equip victim with leather helmet
- equip victim with leather chestplate
- equip victim with leather leggings
- equip victim with leather boots
- give wooden sword to victim
- give stone pickaxe to victim
- on rightclick holding player head:
- apply regeneration 3 to the player for 5 seconds
- apply speed 2 to the player for 5 seconds
- remove 1 player skull from the player
- stop
- command /start:
- trigger:
- set {game} to true
- execute console command "/gamemode 0 @a"
- broadcast "&6攻防戦を開始します"
- execute console command "/random"
- wait 3 seconds
- loop all players:
- if loop-player is {red::*}:
- teleport loop-player to {redspawn}
- if loop-player is {blue::*}:
- teleport loop-player to {bluespawn}
- execute console command "/clear %loop-player%"
- equip loop-player with leather helmet
- equip loop-player with leather chestplate
- equip loop-player with leather leggings
- equip loop-player with leather boots
- give wooden sword to loop-player
- give stone pickaxe to loop-player
- enable PvP in all worlds
- stop
- on damage of player:
- set maximum damage delay of victim to 16 ticks
- if attacker is not {red::*} or {blue::*}:
- cancel event
- command /ea [<text>]:
- trigger:
- if arg 1 is not set:
- send "&cerror"
- stop
- evaluate "%arg%"
Add Comment
Please, Sign In to add comment