SHOW:
|
|
- or go back to the newest paste.
| 1 | on join: | |
| 2 | teleport player to {tp.lobby}
| |
| 3 | remove all items from player's inventory | |
| 4 | set the join message to "<gold><bold>[栄光の架橋]%player%さんがサーバーに参加しました!" | |
| 5 | execute command "/tabsetting %player% 0" | |
| 6 | delete {shot.%player%}
| |
| 7 | ||
| 8 | on quit: | |
| 9 | set the quit message to "<gold><bold>[栄光の架橋]%player%さんがサーバーから退出しました" | |
| 10 | ||
| 11 | on first join: | |
| 12 | teleport player to {tp.tuto}
| |
| 13 | ||
| 14 | on rightclick with stick: | |
| 15 | name of player's tool contains "<red><bold>レーザーポインター": | |
| 16 | cancel event | |
| 17 | set {_num} to 0.5
| |
| 18 | set {_Particle} to location of the block {_num} meter in front of player's head
| |
| 19 | - | loop 500 times: |
| 19 | + | loop 50 times: |
| 20 | - | show 1 redstone particles at {_Particle} with color 200, 0, 0 offset by 0, 0, 0
|
| 20 | + | show 10 redstone particles at {_Particle} offset by 0, 0, 0
|
| 21 | - | set {_num} to {_num} + 0.3
|
| 21 | + | set {_num} to {_num} + 0.5
|
| 22 | set {_Particle} to location of the block {_num} meter infront of player's head
| |
| 23 | if the block {_num} meter infront of player's head is not air:
| |
| 24 | stop loop | |
| 25 | ||
| 26 | on break of red wool: | |
| 27 | if {shot.%player%} is "blue":
| |
| 28 | cancel event | |
| 29 | ||
| 30 | on break of blue wool: | |
| 31 | if {shot.%player%} is "red":
| |
| 32 | cancel event | |
| 33 | ||
| 34 | on shoot: | |
| 35 | - | set {plx} to floor(x-coordinate of location of shooter)
|
| 35 | + | # set {plx} to floor(x-coordinate of location of shooter)
|
| 36 | - | set {ply} to floor(y-coordinate of location of shooter)
|
| 36 | + | # set {ply} to floor(y-coordinate of location of shooter)
|
| 37 | - | set {plz} to floor(z-coordinate of location of shooter)
|
| 37 | + | # set {plz} to floor(z-coordinate of location of shooter)
|
| 38 | - | {plx} is more than -23
|
| 38 | + | # {plx} is more than -23
|
| 39 | - | {plx} is less than 35
|
| 39 | + | # {plx} is less than 35
|
| 40 | - | {ply} is more than 68
|
| 40 | + | # {ply} is more than 68
|
| 41 | - | {ply} is less than 92
|
| 41 | + | # {ply} is less than 92
|
| 42 | - | {plz} is more than -30
|
| 42 | + | # {plz} is more than -30
|
| 43 | - | {plz} is less than -24
|
| 43 | + | # {plz} is less than -24
|
| 44 | cancel event | |
| 45 | ||
| 46 | command /vip <player>: | |
| 47 | permission: op | |
| 48 | trigger: | |
| 49 | set {vip.%arg%} to 1
| |
| 50 | ||
| 51 | command /nonvip <player>: | |
| 52 | permission: op | |
| 53 | trigger: | |
| 54 | delete {vip.%arg%}
| |
| 55 | ||
| 56 | command /close: | |
| 57 | permission: op | |
| 58 | trigger: | |
| 59 | execute command "/fill 85 93 -27 85 91 -26 minecraft:glass" | |
| 60 | execute command "/fill 85 93 -23 85 91 -22 minecraft:glass" | |
| 61 | ||
| 62 | command /opend: | |
| 63 | permission: op | |
| 64 | trigger: | |
| 65 | execute command "/fill 85 93 -27 85 91 -26 minecraft:air" | |
| 66 | execute command "/fill 85 93 -23 85 91 -22 minecraft:air" | |
| 67 | ||
| 68 | command /settuto: | |
| 69 | permission: op | |
| 70 | trigger: | |
| 71 | set {tp.lobby} to location of player
| |
| 72 | message "チュートリアルの場所を%{tp.lobby}%に設定しました"
| |
| 73 | ||
| 74 | command /setlob: | |
| 75 | permission: op | |
| 76 | trigger: | |
| 77 | set {tp.lobby} to location of player
| |
| 78 | message "ロビーの場所を%{tp.lobby}%に設定しました"
| |
| 79 | ||
| 80 | command /setred: | |
| 81 | permission: op | |
| 82 | trigger: | |
| 83 | set {tp.red} to location of player
| |
| 84 | message "赤チームの場所を%{tp.red}%に設定しました"
| |
| 85 | ||
| 86 | command /setblue: | |
| 87 | permission: op | |
| 88 | trigger: | |
| 89 | set {tp.blue} to location of player
| |
| 90 | message "青チームの場所を%{tp.blue}%に設定しました"
| |
| 91 | ||
| 92 | command /setshot: | |
| 93 | permission: op | |
| 94 | trigger: | |
| 95 | set {tp.shot} to location of player
| |
| 96 | message "射撃主の場所を%{tp.shot}%に設定しました"
| |
| 97 | ||
| 98 | command /setarea1: | |
| 99 | permission: op | |
| 100 | trigger: | |
| 101 | set {area1} to location of player
| |
| 102 | message "エリア1の場所を%{area1}%に設定しました"
| |
| 103 | ||
| 104 | command /setarea2: | |
| 105 | permission: op | |
| 106 | trigger: | |
| 107 | set {area2} to location of player
| |
| 108 | message "エリア2の場所を%{area2}%に設定しました"
| |
| 109 | ||
| 110 | command /tabsetting <player> <int>: | |
| 111 | permission: owner.sk | |
| 112 | trigger: | |
| 113 | set {tab.%arg 1%} to arg 2
| |
| 114 | ||
| 115 | command /pteam <player> [<text>]: | |
| 116 | permission: op | |
| 117 | trigger: | |
| 118 | if arg 2 is "red": | |
| 119 | set {shot.%arg 1%} to arg 2
| |
| 120 | execute command "/tabsetting %arg 1% 1" | |
| 121 | else if arg 2 is "blue": | |
| 122 | set {shot.%arg 1%} to arg 2
| |
| 123 | execute command "/tabsetting %arg 1% 2" | |
| 124 | ||
| 125 | on walking on red wool: | |
| 126 | if {shot.%player%} is "blue":
| |
| 127 | if {tp.%player%} is set:
| |
| 128 | teleport player to {tp.%player%}
| |
| 129 | else: | |
| 130 | teleport player to {tp.blue}
| |
| 131 | ||
| 132 | on walking on blue wool: | |
| 133 | if {shot.%player%} is "red":
| |
| 134 | if {tp.%player%} is set:
| |
| 135 | teleport player to {tp.%player%}
| |
| 136 | else: | |
| 137 | teleport player to {tp.red}
| |
| 138 | ||
| 139 | on walking on magenta concrete: | |
| 140 | if {shot.%player%} is "red":
| |
| 141 | if {tp.%player%} is set:
| |
| 142 | teleport player to {tp.%player%}
| |
| 143 | else: | |
| 144 | teleport player to {tp.red}
| |
| 145 | else if {shot.%player%} is "blue":
| |
| 146 | if {tp.%player%} is set:
| |
| 147 | teleport player to {tp.%player%}
| |
| 148 | else: | |
| 149 | teleport player to {tp.blue}
| |
| 150 | ||
| 151 | on walking on red concrete: | |
| 152 | if {state} is 1:
| |
| 153 | if {shot.%player%} is "blue":
| |
| 154 | teleport player to {tp.blue}
| |
| 155 | set {point.blue} to {point.blue} + 1
| |
| 156 | broadcast "&b青&6チームの%player%さんがゴールしました!" | |
| 157 | execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 11" | |
| 158 | ||
| 159 | on walking on blue concrete: | |
| 160 | if {state} is 1:
| |
| 161 | if {shot.%player%} is "red":
| |
| 162 | teleport player to {tp.red}
| |
| 163 | set {point.red} to {point.red} + 1
| |
| 164 | broadcast "&c赤&6チームの%player%さんがゴールしました!" | |
| 165 | execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 14" | |
| 166 | ||
| 167 | on walking on light blue glass: | |
| 168 | if {game} is "eiko":
| |
| 169 | if {shot.%player%} is "red":
| |
| 170 | execute command "/tp %player% -19 85 -27" | |
| 171 | else if {game} is "paint":
| |
| 172 | execute command "/tp %player% -16 75 -13" | |
| 173 | ||
| 174 | on walking on blue stained glass: | |
| 175 | if {shot.%player%} is "red":
| |
| 176 | execute command "/tp %player% -16 86 -13" | |
| 177 | ||
| 178 | on walking on pink stained glass: | |
| 179 | if {game} is "eiko":
| |
| 180 | if {shot.%player%} is "blue":
| |
| 181 | execute command "/tp %player% 31 85 -27" | |
| 182 | else if {game} is "paint":
| |
| 183 | execute command "/tp %player% 28 75 -13" | |
| 184 | ||
| 185 | on walking on red glass block: | |
| 186 | if {shot.%player%} is "blue":
| |
| 187 | execute command "/tp %player% 28 86 -13" | |
| 188 | ||
| 189 | on walking on orange glass: | |
| 190 | if {shot.%player%} is "blue":
| |
| 191 | execute command "/tp %player% 28 75 -13" | |
| 192 | ||
| 193 | on walking on yellow glass: | |
| 194 | if {game} is "eiko":
| |
| 195 | if {shot.%player%} is "blue":
| |
| 196 | execute command "/tp %player% 30 75 -27" | |
| 197 | else if {game} is "paint":
| |
| 198 | execute command "/tp %player% 28 86 -13" | |
| 199 | ||
| 200 | on walking on dark green glass: | |
| 201 | if {shot.%player%} is "red":
| |
| 202 | execute command "/tp %player% -16 75 -13" | |
| 203 | ||
| 204 | on walking on light green stained glass block: | |
| 205 | if {game} is "eiko":
| |
| 206 | if {shot.%player%} is "red":
| |
| 207 | execute command "/tp %player% -19 75 -27" | |
| 208 | else if {game} is "paint":
| |
| 209 | execute command "/tp %player% -16 86 -13" | |
| 210 | ||
| 211 | on walking on light blue wool: | |
| 212 | if {state} is 0:
| |
| 213 | if {shot.%player%} is not "blue":
| |
| 214 | execute command "/pteam %player% blue" | |
| 215 | send "&6あなたは&b青&6チームです!" to player | |
| 216 | ||
| 217 | on walking on pink wool block: | |
| 218 | if {state} is 0:
| |
| 219 | if {shot.%player%} is not "red":
| |
| 220 | execute command "/pteam %player% red" | |
| 221 | send "&6あなたは&c赤&6チームです!" to player | |
| 222 | ||
| 223 | on walking on emerald block: | |
| 224 | if {shot.%player%} is "red":
| |
| 225 | set {tp.%player%} to location of player
| |
| 226 | message "&e&lスポーンポイントを設定しました" | |
| 227 | ||
| 228 | on walking on diamond block: | |
| 229 | if {shot.%player%} is "blue":
| |
| 230 | set {tp.%player%} to location of player
| |
| 231 | message "&e&lスポーンポイントを設定しました" | |
| 232 | ||
| 233 | command /cc: | |
| 234 | permission: op | |
| 235 | trigger: | |
| 236 | execute command "/fill 28 70 -26 -16 89 -28 air" | |
| 237 | ||
| 238 | command /cc2: | |
| 239 | permission: op | |
| 240 | trigger: | |
| 241 | execute command "/fill 82 100 -4 -71 94 -4 air" | |
| 242 | ||
| 243 | options: | |
| 244 | red: red wool | |
| 245 | blue: blue wool | |
| 246 | ||
| 247 | on projectile hit: | |
| 248 | wait 1 tick | |
| 249 | kill event-entity | |
| 250 | set {_hitx} to floor(x-coordinate of location of projectile)
| |
| 251 | set {_hity} to floor(y-coordinate of location of projectile)
| |
| 252 | set {_hitz} to floor(z-coordinate of location of projectile)
| |
| 253 | set {_hitpoint} to location of projectile
| |
| 254 | set {_block} to the block at location 1 in front of the projectile
| |
| 255 | set the block at {_block} to {@red}
| |
| 256 | - | {_hitx} is more than 71
|
| 256 | + | # if {state} is 0:
|
| 257 | - | {_hitx} is less than 82
|
| 257 | + | # {_hitx} is more than 71
|
| 258 | - | {_hity} is more than 90
|
| 258 | + | # {_hitx} is less than 82
|
| 259 | - | {_hity} is less than 100
|
| 259 | + | # {_hity} is more than 90
|
| 260 | - | {_hitz} is more than -7
|
| 260 | + | # {_hity} is less than 100
|
| 261 | - | {_hitz} is less than -3
|
| 261 | + | # {_hitz} is more than -7
|
| 262 | - | if {shot.%shooter%} is "red":
|
| 262 | + | # {_hitz} is less than -3
|
| 263 | - | loop blocks in radius 1 around projectile: |
| 263 | + | # if {shot.%shooter%} is "red":
|
| 264 | - | if loop-block is blue wool: |
| 264 | + | # loop blocks in radius 1 around projectile: |
| 265 | - | set loop-block to air |
| 265 | + | # if loop-block is blue wool: |
| 266 | - | stop |
| 266 | + | # set loop-block to air |
| 267 | - | else if {_block} is air:
|
| 267 | + | # stop |
| 268 | - | set the block at {_block} to {@red}
|
| 268 | + | # else if {_block} is air:
|
| 269 | - | else: |
| 269 | + | # set the block at {_block} to {@red}
|
| 270 | - | set block at {_hitpoint} to {@red}
|
| 270 | + | # else: |
| 271 | # set block at {_hitpoint} to {@red}
| |
| 272 | - | else if {shot.%shooter%} is "blue":
|
| 272 | + | |
| 273 | - | loop blocks in radius 1 around projectile: |
| 273 | + | # else if {shot.%shooter%} is "blue":
|
| 274 | # loop blocks in radius 1 around projectile: | |
| 275 | - | set loop-block to air |
| 275 | + | # if loop-block is red wool block: |
| 276 | - | stop |
| 276 | + | # set loop-block to air |
| 277 | - | else if {_block} is air:
|
| 277 | + | # stop |
| 278 | - | set the block at {_block} to {@blue}
|
| 278 | + | # else if {_block} is air:
|
| 279 | - | else: |
| 279 | + | # set the block at {_block} to {@blue}
|
| 280 | - | set block at {_hitpoint} to {@blue}
|
| 280 | + | # else: |
| 281 | # set block at {_hitpoint} to {@blue}
| |
| 282 | - | else if {state} is 1:
|
| 282 | + | |
| 283 | - | {_hitx} is more than -17
|
| 283 | + | #else if {state} is 1:
|
| 284 | - | {_hitx} is less than 29
|
| 284 | + | # {_hitx} is more than -17
|
| 285 | - | {_hity} is more than 69
|
| 285 | + | # {_hitx} is less than 29
|
| 286 | - | {_hity} is less than 90
|
| 286 | + | # {_hity} is more than 69
|
| 287 | - | {_hitz} is more than -29
|
| 287 | + | # {_hity} is less than 90
|
| 288 | - | {_hitz} is less than -25
|
| 288 | + | # {_hitz} is more than -29
|
| 289 | - | if {shot.%shooter%} is "red":
|
| 289 | + | # {_hitz} is less than -25
|
| 290 | - | loop blocks in radius 1 around projectile: |
| 290 | + | # if {shot.%shooter%} is "red":
|
| 291 | - | if loop-block is blue wool: |
| 291 | + | # loop blocks in radius 1 around projectile: |
| 292 | - | set loop-block to air |
| 292 | + | # if loop-block is blue wool: |
| 293 | - | stop |
| 293 | + | # set loop-block to air |
| 294 | - | if {_block} is air:
|
| 294 | + | # stop |
| 295 | - | set the block at {_block} to {@red}
|
| 295 | + | # if {_block} is air:
|
| 296 | # set the block at {_block} to {@red}
| |
| 297 | - | set block at {_hitpoint} to {@red}
|
| 297 | + | # else: |
| 298 | # set block at {_hitpoint} to {@red}
| |
| 299 | - | else if {shot.%shooter%} is "blue":
|
| 299 | + | |
| 300 | - | loop blocks in radius 1 around projectile: |
| 300 | + | #else if {shot.%shooter%} is "blue":
|
| 301 | # loop blocks in radius 1 around projectile: | |
| 302 | - | set loop-block to air |
| 302 | + | # if loop-block is red wool block: |
| 303 | - | stop |
| 303 | + | # set loop-block to air |
| 304 | - | if {_block} is air:
|
| 304 | + | # stop |
| 305 | - | set the block at {_block} to {@blue}
|
| 305 | + | # if {_block} is air:
|
| 306 | # set the block at {_block} to {@blue}
| |
| 307 | - | set block at {_hitpoint} to {@blue}
|
| 307 | + | # else: |
| 308 | # set block at {_hitpoint} to {@blue}
| |
| 309 | ||
| 310 | command /team: | |
| 311 | trigger: | |
| 312 | set {red} and {blue} to 0
| |
| 313 | loop all players: | |
| 314 | if {red} is more than {blue}:
| |
| 315 | add 1 to {blue}
| |
| 316 | set {shot.%loop-player%} to "blue"
| |
| 317 | send "&6あなたは&b青&6チームです!" to loop-player | |
| 318 | execute command "/tabsetting %loop-player% 2" | |
| 319 | else: | |
| 320 | add 1 to {red}
| |
| 321 | set {shot.%loop-player%} to "red"
| |
| 322 | send "&6あなたは&c赤&6チームです!" to loop-player | |
| 323 | execute command "/tabsetting %loop-player% 1" | |
| 324 | wait a tick | |
| 325 | ||
| 326 | every 2 seconds: | |
| 327 | loop all players: | |
| 328 | set loop-player's food level to 10 | |
| 329 | ||
| 330 | if {tab.%loop-player%} is 0:
| |
| 331 | if {vip.%loop-player%} is 1:
| |
| 332 | set loop-player's tab list name to "<light green>[VIP]<white>%loop-player%" | |
| 333 | else: | |
| 334 | set loop-player's tab list name to "<white>%loop-player%" | |
| 335 | ||
| 336 | else if {tab.%loop-player%} is 1:
| |
| 337 | if {vip.%loop-player%} is 1:
| |
| 338 | set loop-player's tab list name to "<light green>[VIP]<red>%loop-player%" | |
| 339 | else: | |
| 340 | set loop-player's tab list name to "<red>%loop-player%" | |
| 341 | ||
| 342 | else if {tab.%loop-player%} is 2:
| |
| 343 | if {vip.%loop-player%} is 1:
| |
| 344 | set loop-player's tab list name to "<light green>[VIP]<blue>%loop-player%" | |
| 345 | else: | |
| 346 | set loop-player's tab list name to "<blue>%loop-player%" | |
| 347 | ||
| 348 | if {state} is 1:
| |
| 349 | if {game} is "eiko":
| |
| 350 | if {shot.%loop-player%} is "red" or "blue":
| |
| 351 | if {vip.%loop-player%} is 1:
| |
| 352 | execute command "/give %loop-player% minecraft:snowball 1 0" | |
| 353 | ||
| 354 | every 180 seconds: | |
| 355 | broadcast "<gold><bold>[定期]<light green><bold>VIP<gold><bold>になると、試合中に雪玉が支給されます。" | |
| 356 | wait 90 seconds | |
| 357 | broadcast "<gold><bold>[定期]要望はDISCORDの要望チャンネルで言ってください。" | |
| 358 | wait 90 seconds | |
| 359 | ||
| 360 | on death: | |
| 361 | set player's health to player's max health | |
| 362 | ||
| 363 | command /eikostop: | |
| 364 | permission: op | |
| 365 | trigger: | |
| 366 | broadcast "&6&lゲームを終了します" | |
| 367 | set {state} to 0
| |
| 368 | loop all players: | |
| 369 | teleport loop-player to {tp.lobby}
| |
| 370 | execute command "/gamemode 2 %loop-player%" | |
| 371 | remove all items from loop-player's inventory | |
| 372 | delete {shot.%loop-player%}
| |
| 373 | delete {tp.%loop-player%}
| |
| 374 | execute command "/tabsetting %loop-player% 0" | |
| 375 | execute command "/opend" | |
| 376 | if {game} is "eiko":
| |
| 377 | broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
| |
| 378 | broadcast "&b青&6チームの得点は、&b%{point.blue}%点です!"
| |
| 379 | if {point.red} is more than {point.blue}:
| |
| 380 | broadcast "&c赤&6チームの方が得点が多かったため、&c赤&6チームの勝利!" | |
| 381 | else if {point.red} is less than {point.blue}:
| |
| 382 | broadcast "&b青&6チームの方が得点が多かったため、&b青&6チームの勝利!" | |
| 383 | else: | |
| 384 | broadcast "&6両チームとも同じ点数だったため、引き分け!" | |
| 385 | else if {game} is "paint":
| |
| 386 | loop blocks within {area1} to {area2}:
| |
| 387 | if loop-block is red wool block: | |
| 388 | set {point.red} to {point.red} + 1
| |
| 389 | else if loop-block is blue wool: | |
| 390 | set {point.blue} to {point.blue} + 1
| |
| 391 | broadcast "&c赤&6チームのブロック数は、&c%{point.red}%個です!"
| |
| 392 | broadcast "&b青&6チームのブロック数は、&b%{point.blue}%個です!"
| |
| 393 | if {point.red} is more than {point.blue}:
| |
| 394 | broadcast "&c赤&6チームの方がブロック数が多かったため、&c赤&6チームの勝利!" | |
| 395 | else if {point.red} is less than {point.blue}:
| |
| 396 | broadcast "&b青&6チームの方がブロック数が多かったため、&b青&6チームの勝利!" | |
| 397 | else: | |
| 398 | broadcast "&6両チームとも同じブロック数だったため、引き分け!" | |
| 399 | delete {point.red}
| |
| 400 | delete {point.blue}
| |
| 401 | delete {game}
| |
| 402 | ||
| 403 | ||
| 404 | ||
| 405 | command /eiko [<text>] [<int>]: | |
| 406 | permission: op | |
| 407 | trigger: | |
| 408 | broadcast "&6&lゲームを始めます!" | |
| 409 | broadcast "&6&l制限時間: %arg 2%秒" | |
| 410 | delete {point.red}
| |
| 411 | delete {point.blue}
| |
| 412 | set {point.red} to 0
| |
| 413 | set {point.blue} to 0
| |
| 414 | set {state} to 1
| |
| 415 | execute command "/count %arg 2%" | |
| 416 | if arg 1 is "eiko": | |
| 417 | broadcast "&6&lゲームモード: &c&l栄&b&l光&c&lの&b&l架&c&l橋" | |
| 418 | set {game} to "eiko"
| |
| 419 | loop all players: | |
| 420 | remove all items from loop-player's inventory | |
| 421 | if {shot.%loop-player%} is "red":
| |
| 422 | teleport loop-player to {tp.red}
| |
| 423 | execute command "/gamemode 2 %loop-player%" | |
| 424 | execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
| |
| 425 | execute command "/give %loop-player% minecraft:arrow 1 0" | |
| 426 | execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
| |
| 427 | execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
| |
| 428 | if {vip.%player%} is 1:
| |
| 429 | execute command "/give %loop-player% minecraft:snowball 16 0" | |
| 430 | else if {shot.%loop-player%} is "blue":
| |
| 431 | teleport loop-player to {tp.blue}
| |
| 432 | execute command "/gamemode 2 %loop-player%" | |
| 433 | execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
| |
| 434 | execute command "/give %loop-player% minecraft:arrow 1 0" | |
| 435 | execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
| |
| 436 | execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
| |
| 437 | if {vip.%player%} is 1:
| |
| 438 | execute command "/give %loop-player% minecraft:snowball 16 0" | |
| 439 | else if arg 1 is "paint": | |
| 440 | broadcast "&6&lゲームモード: &c&lP&b&lA&c&lI&b&lN&c&lT&b&lI&c&lA" | |
| 441 | set {game} to "paint"
| |
| 442 | loop all players: | |
| 443 | if {shot.%loop-player%} is "red" or "blue":
| |
| 444 | teleport loop-player to {tp.shot}
| |
| 445 | remove all items from loop-player's inventory | |
| 446 | if {shot.%loop-player%} is "red":
| |
| 447 | execute command "/gamemode 2 %loop-player%" | |
| 448 | execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
| |
| 449 | execute command "/give %loop-player% minecraft:arrow 1 0" | |
| 450 | else if {shot.%loop-player%} is "blue":
| |
| 451 | execute command "/gamemode 2 %loop-player%" | |
| 452 | execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
| |
| 453 | execute command "/give %loop-player% minecraft:arrow 1 0" | |
| 454 | ||
| 455 | on chat: | |
| 456 | if {state} is 1:
| |
| 457 | if message contains "$": | |
| 458 | if {shot.%player%} is "red":
| |
| 459 | cancel event | |
| 460 | broadcast "&c%player%: %message%" | |
| 461 | else if {shot.%player%} is "blue":
| |
| 462 | cancel event | |
| 463 | broadcast "&b%player%: %message%" | |
| 464 | else: | |
| 465 | loop all players: | |
| 466 | if {shot.%player%} is "red":
| |
| 467 | if {shot.%loop-player%} is "red":
| |
| 468 | cancel event | |
| 469 | send "&c%player%: %message%" to loop-player | |
| 470 | else if {shot.%player%} is "blue":
| |
| 471 | if {shot.%loop-player%} is "blue":
| |
| 472 | cancel event | |
| 473 | send "&b%player%: %message%" to loop-player | |
| 474 | ||
| 475 | command /tt <player>: | |
| 476 | permission: op | |
| 477 | trigger: | |
| 478 | send "%arg%の値は%{shot.%arg%}%です"
| |
| 479 | ||
| 480 | command /count <int>: | |
| 481 | permission: op | |
| 482 | trigger: | |
| 483 | set {_countdown} to arg
| |
| 484 | loop arg times: | |
| 485 | wait 1 seconds | |
| 486 | set {_countdown} to {_countdown} - 1
| |
| 487 | set {time} to {_countdown}
| |
| 488 | if {game} is "eiko":
| |
| 489 | execute command "/title @a actionbar {""text"":""&e&lゲームモード: 栄光の架橋 残り時間:%{time}% &c&l%{point.red}% &7&l- &b&l%{point.blue}%""}"
| |
| 490 | else if {game} is "paint":
| |
| 491 | execute command "/title @a actionbar {""text"":""&e&lゲームモード: PAINTIA 残り時間:%{time}%""}"
| |
| 492 | execute command "/title @a actionbar {""text"":""&6&l終了!""}"
| |
| 493 | execute command "/eikostop" |