Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- teleport player to {tp.lobby}
- remove all items from player's inventory
- set the join message to "<gold><bold>[栄光の架橋]%player%さんがサーバーに参加しました!"
- execute command "/tabsetting %player% 0"
- delete {shot.%player%}
- on quit:
- set the quit message to "<gold><bold>[栄光の架橋]%player%さんがサーバーから退出しました"
- on first join:
- teleport player to {tp.tuto}
- on rightclick with stick:
- name of player's tool contains "<red><bold>レーザーポインター":
- cancel event
- set {_num} to 0.5
- set {_Particle} to location of the block {_num} meter in front of player's head
- loop 500 times:
- show 1 redstone particles at {_Particle} with color 200, 0, 0 offset by 0, 0, 0
- set {_num} to {_num} + 0.3
- set {_Particle} to location of the block {_num} meter infront of player's head
- if the block {_num} meter infront of player's head is not air:
- stop loop
- on break of red wool:
- if {shot.%player%} is "blue":
- cancel event
- on break of blue wool:
- if {shot.%player%} is "red":
- cancel event
- on shoot:
- set {plx} to floor(x-coordinate of location of shooter)
- set {ply} to floor(y-coordinate of location of shooter)
- set {plz} to floor(z-coordinate of location of shooter)
- {plx} is more than -23
- {plx} is less than 35
- {ply} is more than 68
- {ply} is less than 92
- {plz} is more than -30
- {plz} is less than -24
- cancel event
- command /vip <player>:
- permission: op
- trigger:
- set {vip.%arg%} to 1
- command /nonvip <player>:
- permission: op
- trigger:
- delete {vip.%arg%}
- command /close:
- permission: op
- trigger:
- execute command "/fill 85 93 -27 85 91 -26 minecraft:glass"
- execute command "/fill 85 93 -23 85 91 -22 minecraft:glass"
- command /opend:
- permission: op
- trigger:
- execute command "/fill 85 93 -27 85 91 -26 minecraft:air"
- execute command "/fill 85 93 -23 85 91 -22 minecraft:air"
- command /settuto:
- permission: op
- trigger:
- set {tp.lobby} to location of player
- message "チュートリアルの場所を%{tp.lobby}%に設定しました"
- command /setlob:
- permission: op
- trigger:
- set {tp.lobby} to location of player
- message "ロビーの場所を%{tp.lobby}%に設定しました"
- command /setred:
- permission: op
- trigger:
- set {tp.red} to location of player
- message "赤チームの場所を%{tp.red}%に設定しました"
- command /setblue:
- permission: op
- trigger:
- set {tp.blue} to location of player
- message "青チームの場所を%{tp.blue}%に設定しました"
- command /setshot:
- permission: op
- trigger:
- set {tp.shot} to location of player
- message "射撃主の場所を%{tp.shot}%に設定しました"
- command /setarea1:
- permission: op
- trigger:
- set {area1} to location of player
- message "エリア1の場所を%{area1}%に設定しました"
- command /setarea2:
- permission: op
- trigger:
- set {area2} to location of player
- message "エリア2の場所を%{area2}%に設定しました"
- command /tabsetting <player> <int>:
- permission: owner.sk
- trigger:
- set {tab.%arg 1%} to arg 2
- command /pteam <player> [<text>]:
- permission: op
- trigger:
- if arg 2 is "red":
- set {shot.%arg 1%} to arg 2
- execute command "/tabsetting %arg 1% 1"
- else if arg 2 is "blue":
- set {shot.%arg 1%} to arg 2
- execute command "/tabsetting %arg 1% 2"
- on walking on red wool:
- if {shot.%player%} is "blue":
- if {tp.%player%} is set:
- teleport player to {tp.%player%}
- else:
- teleport player to {tp.blue}
- on walking on blue wool:
- if {shot.%player%} is "red":
- if {tp.%player%} is set:
- teleport player to {tp.%player%}
- else:
- teleport player to {tp.red}
- on walking on magenta concrete:
- if {shot.%player%} is "red":
- if {tp.%player%} is set:
- teleport player to {tp.%player%}
- else:
- teleport player to {tp.red}
- else if {shot.%player%} is "blue":
- if {tp.%player%} is set:
- teleport player to {tp.%player%}
- else:
- teleport player to {tp.blue}
- on walking on red concrete:
- if {state} is 1:
- if {shot.%player%} is "blue":
- teleport player to {tp.blue}
- set {point.blue} to {point.blue} + 1
- broadcast "&b青&6チームの%player%さんがゴールしました!"
- execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 11"
- on walking on blue concrete:
- if {state} is 1:
- if {shot.%player%} is "red":
- teleport player to {tp.red}
- set {point.red} to {point.red} + 1
- broadcast "&c赤&6チームの%player%さんがゴールしました!"
- execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 14"
- on walking on light blue glass:
- if {game} is "eiko":
- if {shot.%player%} is "red":
- execute command "/tp %player% -19 85 -27"
- else if {game} is "paint":
- execute command "/tp %player% -16 75 -13"
- on walking on blue stained glass:
- if {shot.%player%} is "red":
- execute command "/tp %player% -16 86 -13"
- on walking on pink stained glass:
- if {game} is "eiko":
- if {shot.%player%} is "blue":
- execute command "/tp %player% 31 85 -27"
- else if {game} is "paint":
- execute command "/tp %player% 28 75 -13"
- on walking on red glass block:
- if {shot.%player%} is "blue":
- execute command "/tp %player% 28 86 -13"
- on walking on orange glass:
- if {shot.%player%} is "blue":
- execute command "/tp %player% 28 75 -13"
- on walking on yellow glass:
- if {game} is "eiko":
- if {shot.%player%} is "blue":
- execute command "/tp %player% 30 75 -27"
- else if {game} is "paint":
- execute command "/tp %player% 28 86 -13"
- on walking on dark green glass:
- if {shot.%player%} is "red":
- execute command "/tp %player% -16 75 -13"
- on walking on light green stained glass block:
- if {game} is "eiko":
- if {shot.%player%} is "red":
- execute command "/tp %player% -19 75 -27"
- else if {game} is "paint":
- execute command "/tp %player% -16 86 -13"
- on walking on light blue wool:
- if {state} is 0:
- if {shot.%player%} is not "blue":
- execute command "/pteam %player% blue"
- send "&6あなたは&b青&6チームです!" to player
- on walking on pink wool block:
- if {state} is 0:
- if {shot.%player%} is not "red":
- execute command "/pteam %player% red"
- send "&6あなたは&c赤&6チームです!" to player
- on walking on emerald block:
- if {shot.%player%} is "red":
- set {tp.%player%} to location of player
- message "&e&lスポーンポイントを設定しました"
- on walking on diamond block:
- if {shot.%player%} is "blue":
- set {tp.%player%} to location of player
- message "&e&lスポーンポイントを設定しました"
- command /cc:
- permission: op
- trigger:
- execute command "/fill 28 70 -26 -16 89 -28 air"
- command /cc2:
- permission: op
- trigger:
- execute command "/fill 82 100 -4 -71 94 -4 air"
- options:
- red: red wool
- blue: blue wool
- on projectile hit:
- wait 1 tick
- kill event-entity
- set {_hitx} to floor(x-coordinate of location of projectile)
- set {_hity} to floor(y-coordinate of location of projectile)
- set {_hitz} to floor(z-coordinate of location of projectile)
- set {_hitpoint} to location of projectile
- set {_block} to the block at location 1 in front of the projectile
- if {state} is 0:
- {_hitx} is more than 71
- {_hitx} is less than 82
- {_hity} is more than 90
- {_hity} is less than 100
- {_hitz} is more than -7
- {_hitz} is less than -3
- if {shot.%shooter%} is "red":
- loop blocks in radius 1 around projectile:
- if loop-block is blue wool:
- set loop-block to air
- stop
- else if {_block} is air:
- set the block at {_block} to {@red}
- else:
- set block at {_hitpoint} to {@red}
- else if {shot.%shooter%} is "blue":
- loop blocks in radius 1 around projectile:
- if loop-block is red wool block:
- set loop-block to air
- stop
- else if {_block} is air:
- set the block at {_block} to {@blue}
- else:
- set block at {_hitpoint} to {@blue}
- else if {state} is 1:
- {_hitx} is more than -17
- {_hitx} is less than 29
- {_hity} is more than 69
- {_hity} is less than 90
- {_hitz} is more than -29
- {_hitz} is less than -25
- if {shot.%shooter%} is "red":
- loop blocks in radius 1 around projectile:
- if loop-block is blue wool:
- set loop-block to air
- stop
- if {_block} is air:
- set the block at {_block} to {@red}
- else:
- set block at {_hitpoint} to {@red}
- else if {shot.%shooter%} is "blue":
- loop blocks in radius 1 around projectile:
- if loop-block is red wool block:
- set loop-block to air
- stop
- if {_block} is air:
- set the block at {_block} to {@blue}
- else:
- set block at {_hitpoint} to {@blue}
- command /team:
- trigger:
- set {red} and {blue} to 0
- loop all players:
- if {red} is more than {blue}:
- add 1 to {blue}
- set {shot.%loop-player%} to "blue"
- send "&6あなたは&b青&6チームです!" to loop-player
- execute command "/tabsetting %loop-player% 2"
- else:
- add 1 to {red}
- set {shot.%loop-player%} to "red"
- send "&6あなたは&c赤&6チームです!" to loop-player
- execute command "/tabsetting %loop-player% 1"
- wait a tick
- every 2 seconds:
- loop all players:
- set loop-player's food level to 10
- if {tab.%loop-player%} is 0:
- if {vip.%loop-player%} is 1:
- set loop-player's tab list name to "<light green>[VIP]<white>%loop-player%"
- else:
- set loop-player's tab list name to "<white>%loop-player%"
- else if {tab.%loop-player%} is 1:
- if {vip.%loop-player%} is 1:
- set loop-player's tab list name to "<light green>[VIP]<red>%loop-player%"
- else:
- set loop-player's tab list name to "<red>%loop-player%"
- else if {tab.%loop-player%} is 2:
- if {vip.%loop-player%} is 1:
- set loop-player's tab list name to "<light green>[VIP]<blue>%loop-player%"
- else:
- set loop-player's tab list name to "<blue>%loop-player%"
- if {state} is 1:
- if {game} is "eiko":
- if {shot.%loop-player%} is "red" or "blue":
- if {vip.%loop-player%} is 1:
- execute command "/give %loop-player% minecraft:snowball 1 0"
- every 180 seconds:
- broadcast "<gold><bold>[定期]<light green><bold>VIP<gold><bold>になると、試合中に雪玉が支給されます。"
- on death:
- set player's health to player's max health
- command /eikostop:
- permission: op
- trigger:
- broadcast "&6&lゲームを終了します"
- set {state} to 0
- loop all players:
- teleport loop-player to {tp.lobby}
- execute command "/gamemode 2 %loop-player%"
- remove all items from loop-player's inventory
- delete {shot.%loop-player%}
- delete {tp.%loop-player%}
- execute command "/tabsetting %loop-player% 0"
- execute command "/opend"
- if {game} is "eiko":
- broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
- broadcast "&b青&6チームの得点は、&b%{point.blue}%点です!"
- if {point.red} is more than {point.blue}:
- broadcast "&c赤&6チームの方が得点が多かったため、&c赤&6チームの勝利!"
- else if {point.red} is less than {point.blue}:
- broadcast "&b青&6チームの方が得点が多かったため、&b青&6チームの勝利!"
- else:
- broadcast "&6両チームとも同じ点数だったため、引き分け!"
- else if {game} is "paint":
- loop blocks within {area1} to {area2}:
- if loop-block is red wool block:
- set {point.red} to {point.red} + 1
- else if loop-block is blue wool:
- set {point.blue} to {point.blue} + 1
- broadcast "&c赤&6チームのブロック数は、&c%{point.red}%個です!"
- broadcast "&b青&6チームのブロック数は、&b%{point.blue}%個です!"
- if {point.red} is more than {point.blue}:
- broadcast "&c赤&6チームの方がブロック数が多かったため、&c赤&6チームの勝利!"
- else if {point.red} is less than {point.blue}:
- broadcast "&b青&6チームの方がブロック数が多かったため、&b青&6チームの勝利!"
- else:
- broadcast "&6両チームとも同じブロック数だったため、引き分け!"
- delete {point.red}
- delete {point.blue}
- delete {game}
- command /eiko [<text>] [<int>]:
- permission: op
- trigger:
- broadcast "&6&lゲームを始めます!"
- broadcast "&6&l制限時間: %arg 2%秒"
- delete {point.red}
- delete {point.blue}
- set {point.red} to 0
- set {point.blue} to 0
- set {state} to 1
- execute command "/count %arg 2%"
- if arg 1 is "eiko":
- broadcast "&6&lゲームモード: &c&l栄&b&l光&c&lの&b&l架&c&l橋"
- set {game} to "eiko"
- loop all players:
- remove all items from loop-player's inventory
- if {shot.%loop-player%} is "red":
- teleport loop-player to {tp.red}
- execute command "/gamemode 2 %loop-player%"
- execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
- execute command "/give %loop-player% minecraft:arrow 1 0"
- execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
- execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
- if {vip.%player%} is 1:
- execute command "/give %loop-player% minecraft:snowball 16 0"
- else if {shot.%loop-player%} is "blue":
- teleport loop-player to {tp.blue}
- execute command "/gamemode 2 %loop-player%"
- execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
- execute command "/give %loop-player% minecraft:arrow 1 0"
- execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
- execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
- if {vip.%player%} is 1:
- execute command "/give %loop-player% minecraft:snowball 16 0"
- else if arg 1 is "paint":
- broadcast "&6&lゲームモード: &c&lP&b&lA&c&lI&b&lN&c&lT&b&lI&c&lA"
- set {game} to "paint"
- loop all players:
- if {shot.%loop-player%} is "red" or "blue":
- teleport loop-player to {tp.shot}
- remove all items from loop-player's inventory
- if {shot.%loop-player%} is "red":
- execute command "/gamemode 2 %loop-player%"
- execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
- execute command "/give %loop-player% minecraft:arrow 1 0"
- else if {shot.%loop-player%} is "blue":
- execute command "/gamemode 2 %loop-player%"
- execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
- execute command "/give %loop-player% minecraft:arrow 1 0"
- on chat:
- if {state} is 1:
- if message contains "$":
- if {shot.%player%} is "red":
- cancel event
- broadcast "&c%player%: %message%"
- else if {shot.%player%} is "blue":
- cancel event
- broadcast "&b%player%: %message%"
- else:
- loop all players:
- if {shot.%player%} is "red":
- if {shot.%loop-player%} is "red":
- cancel event
- send "&c%player%: %message%" to loop-player
- else if {shot.%player%} is "blue":
- if {shot.%loop-player%} is "blue":
- cancel event
- send "&b%player%: %message%" to loop-player
- command /tt <player>:
- permission: op
- trigger:
- send "%arg%の値は%{shot.%arg%}%です"
- command /count <int>:
- permission: op
- trigger:
- set {_countdown} to arg
- loop arg times:
- wait 1 seconds
- set {_countdown} to {_countdown} - 1
- set {time} to {_countdown}
- if {game} is "eiko":
- execute command "/title @a actionbar {""text"":""&e&lゲームモード: 栄光の架橋 残り時間:%{time}% &c&l%{point.red}% &7&l- &b&l%{point.blue}%""}"
- else if {game} is "paint":
- execute command "/title @a actionbar {""text"":""&e&lゲームモード: PAINTIA 残り時間:%{time}%""}"
- execute command "/title @a actionbar {""text"":""&6&l終了!""}"
- execute command "/eikostop"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement