Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /teamdivide:
- trigger:
- set {redcount} to 0
- set {bluecount} to 0
- loop all players:
- set {_random} to random integer between 1 and 2
- if {_random} is 1:
- add loop-player to {red::*}
- send "&aあなたは &c赤チーム &aです" to loop-player
- set loop-player's tablist name to "&c%loop-player%"
- set loop-player's display name to "&c%loop-player%"
- set {team::%loop-player%} to "red"
- set {redcount} to {redcount} + 1
- if {_random} is 2:
- add loop-player to {blue::*}
- send "&aあなたは &9青チーム &aです" to loop-player
- set loop-player's tablist name to "&9%loop-player%"
- set loop-player's display name to "&9%loop-player%"
- set {team::%loop-player%} to "blue"
- set {bluecount} to {bluecount} + 1
- command /teamexit:
- trigger:
- clear {red::*}
- clear {blue::*}
- clear {team::*}
- clear {redcount}
- clear {bluecount}
- send "&aすべてのチームが解散されました!" to all players
- loop all players:
- set loop-player's tablist name to "%loop-player%"
- command /teamteleport [<text>]:
- trigger:
- if arg-1 is not set:
- send "&c/teamteleport [redset|blueset|redtp|bluetp]"
- else if arg-1 is "bluetp":
- loop all players:
- if {team::%loop-player%} is "blue":
- teleport loop-player to {blue.tp}
- else if arg-1 is "redset":
- set {red.tp} to location of player
- send "&bset:redtp:%location of player%"
- else if arg-1 is "blueset":
- set {blue.tp} to location of player
- send "&bset:redtp:%location of player%"
- else if arg-1 is "redtp":
- loop all players:
- if {team::%loop-player%} is "red":
- teleport loop-player to {red.tp}
- else:
- send "&c/teamteleport [redset|blueset|redtp|bluetp]"
- on damage of player:
- if {red::*} contains attacker:
- if {red::*} contains victim:
- cancel event
- if {blue::*} contains attacker:
- if {blue::*} contains victim:
- cancel event
- on break:
- if event-block is in the region "block":
- set {blocks::%location of event-block%} to type of event-block
- on death of player:
- if {red::*} contains player:
- set {redcount} to {redcount} - 1
- broadcast "&c%player%&e が死んだ 残り &c%{redcount}% &e人!"
- else if {blue::*} contains attacker:
- set {bluecount} to {bluecount} - 1
- broadcast "&9%player% &eが死んだ 残り &c%{bluecount}% &e人!"
- if {redcount} is 0:
- broadcast "&9Blue Team &awon the game!"
- command "/setblock -580 4 686 redstone_block"
- loop all players:
- if {blue::*} contains loop-player:
- set {%loop-player%.win} to {%loop-player%.win} + 1
- command "/teamquit"
- else if {redcount} is 0:
- broadcast "&cRed Team &awon the game!"
- command "/setblock -1558 4 -2257 redstone_block"
- loop all players:
- if {red::*} contains loop-player:
- set {%loop-player%.win} to {%loop-player%.win} + 1
- command "/teamquit"
- every second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&e&lTHE &e&lWALLS"
- set score "&e" in sidebar of loop-player to 10
- set score "&fオンラインプレイヤー" in sidebar of loop-player to 9
- set score "&a%number of all players%" in sidebar of loop-player to 8
- set score "&e" in sidebar of loop-player to 7
- set score "&f勝利数:" in sidebar of loop-player to 6
- set score "&a&a%{%loop-player%.win}%" in sidebar of loop-player to 5
- set score "&e" in sidebar of loop-player to 4
- set score "&fサーバー名:" in sidebar of loop-player to 3
- set score "&aTHE WALLS" in sidebar of loop-player to 2
- set score "&e" in sidebar of loop-player to 1
- set score "&eplayerrealms.com" in sidebar of loop-player to 0
- options:
- kaboom: &c&l[KABOOM]&e
- lenh1: kaboom
- lenh2: launch
- permission1: kaboom.tatca
- permission2: kaboom.motnguoi
- tocdo: 5
- thoigian: 7
- doithoai1: &aKABOOM実行 %loop-player%&a!
- doithoai2: &alaunch実行 %arg-1%&a!
- command /{@lenh1}:
- permission: {@permission1}
- trigger:
- send "{@kaboom} &7"
- loop all players in world:
- send "{@kaboom} {@doithoai1}"
- strike lightning effect at loop-player
- strike lightning effect at loop-player
- strike lightning effect at loop-player
- push loop-player up at speed {@tocdo}
- set {nodamage.launch.%loop-player%} to {@thoigian}
- command /{@lenh2} <player>:
- permission: {@permission2}
- trigger:
- send "{@kaboom} "
- send "{@kaboom} {@doithoai2}"
- strike lightning effect at arg-1
- strike lightning effect at arg-1
- strike lightning effect at arg-1
- push arg-1 up at speed {@tocdo}
- set {nodamage.launch.%arg-1%} to {@thoigian}
- every second:
- loop all players:
- {nodamage.launch.%loop-player%} is set
- set {nodamage.launch.%loop-player%} to {nodamage.launch.%loop-player%} - 1
- if {nodamage.launch.%loop-player%} is less than 1:
- delete {nodamage.launch.%loop-player%}
- on quit:
- {nodamage.launch.%player%} is set
- delete {nodamage.launch.%player%}
- on damage:
- {nodamage.launch.%victim%} is set
- cancel event
- command /mapreset:
- permission: skript.admin
- trigger:
- loop {place::*}:
- set block at loop-value to air
- loop {blocks::*}:
- set {_loc::*} to substring of loop-index from 7 to length of loop-index split at ","
- set {_x} to {_loc::1} parsed as number
- set {_y} to {_loc::2} parsed as number
- set {_z} to {_loc::3} parsed as number
- set block at location ({_x}, {_y}, {_z}) to loop-value
- delete {blocks::*}
- delete {place::*}
- on place:
- set {place::%location of event-block%} to location of event-block
- on break:
- if {place::*} contain location of event-block:
- stop
- set {blocks::%location of event-block%} to type of event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement