Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- victim is player
- if attacker is {Oni}:
- set attacker's helmet to air
- set victim's helmet to TNT
- remove speed from attacker
- remove speed from victim
- apply ambient speed 1 to victim for 1 day
- apply ambient speed 2 to attacker for 3 second
- wait a tick
- set {Oni} to victim
- broadcast "&f%{Oni}%がハンターになりました!"
- stop
- command /tousoutyuu [<text>]:
- permission:op
- permission message:&fUnknown commands. Type "/help" for help.
- trigger:
- if arg 1 is "setlobby":
- set {Lobby} to player's location
- send "&f逃走中>> &fロビーを設定しました"
- stop
- if arg 1 is "setonispawn":
- set {oniSpawn} to player's location
- send "&f逃走中>> &fゲームのスポーン地点を設定しました"
- stop
- if arg 1 is "setspawn":
- set {Spawn} to player's location
- send "&f逃走中>> &fゲームのスポーン地点を設定しました"
- stop
- if arg 1 is "start":
- clear {Oni}
- set {Count} to 240
- wait 1 tick
- set {Oni} to random player out of all players
- set {Oni}'s helmet to diamond_helmet
- broadcast "&d%{Oni}%&cがハンターになりました!"
- broadcast "&c逃走中&6開始!"
- loop all players:
- apply ambient speed 1 to {Oni} for 1 day
- apply ambient instant health 10 to loop-player for 1 day
- apply ambient strength 100 to loop-player for 1 day
- set {Count} to 360
- if loop-player is not {Oni}:
- teleport loop-player to {Spawn}
- if loop-player is {Oni}:
- wait 5 seconds
- teleport {Oni} to {oniSpawn}
- wait 120 seconds
- while {Count} is more than 0:
- wait 1 seconds
- remove 1 from {Count}
- set loop-player's helmet to air
- broadcast "&fタイムアップ"
- teleport loop-player to {Lobby}
- stop
- if arg 1 is "stop":
- set {Count} to 0
- send "&f逃走中>> &fゲームをストップしました"
- clear {Oni}
- stop
- else:
- send "/tousoutyuu setlobby"
- send "/tousoutyuu setspawn"
- send "/tousoutyuu start"
- send "/tousoutyuu stop"
- send "/tousoutyuu setonispawn"
- every 10 tick:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&f逃走中"
- set score "&fゲーム終了まで" in sidebar of loop-player to {Count}
- set score "&c現在のハンター %{Oni}%" in sidebar of loop-player to -1
- stop
- on disconnect:
- if player is {Oni}:
- execute console command "/onigokko stop"
- broadcast "&f逃走中>> &fハンターが&cログアウト&fしたため、ゲームが終了されました"
- broadcast "&cログアウト/log out - %player%"
- stop
- on join:
- teleport player to {Lobby}
- broadcast "&aLogin - %player%"
- stop
- on inventory click:
- if clicked slot type is armor:
- if player's helmet is tnt:
- cancel eventon death:
- on death
- if attacker is set:
- broadcast "%victim%は%attacker%に捕まった"
Add Comment
Please, Sign In to add comment