Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- victim is player
- if attacker is {hanta-}:
- set attacker's helmet to air
- set victim's helmet to diamond_helmet
- 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 {hanta-} to victim
- broadcast "&f%{hanta-}%が鬼になりました!"
- stop
- command /tousoutyuu [<text>]:
- permission:op
- permission message:&fUnknown commands. Type "/help" for help.
- trigger:
- if arg 1 is "setspawn":
- set {Spawn} to player's location
- send "&fシステム>> &fゲームのスポーン地点を設定しました"
- stop
- if arg 1 is "onispawn":
- set {hanta-spawn} to player's location
- send "&fシステム>> &fハンターのスポーン地点を設定しました"
- stop
- if arg 1 is "start":
- clear {hanta-}
- set {Count} to 240
- wait 1 tick
- set {hanta-} to random player out of all players
- set {hanta-}'s helmet to diamond_helmet
- broadcast "&6%{hanta-}%がハンターになりました!"
- broadcast "&6逃走中開始!"
- loop all players:
- apply ambient strength 1 to {hanta-} for 1 day
- apply ambient instant health 10 to loop-player for 1 day
- set {Count} to 300
- if loop-player is not {hanta-}:
- teleport loop-player to {Spawn}
- if loop-player is {hanta-}:
- wait 5 seconds
- teleport {hanta-} to {hanta-spawn}
- remove 1 from {Count}
- wait 50 seconds
- execute console command "/setblock 4 63 94 redstone_block"
- wait 150 seconds
- broadcast "&6150秒が経ったな、まぁクリアしたかは俺の知ったことじゃないが頑張ってくれ"
- wait 1 seconds
- 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 {hanta-}
- stop
- else:
- send "/tousoutyuu setspawn"
- send "/tousoutyuu onispawn"
- send "/tousoutyuu start"
- send "/tousoutyuu stop"
- 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 "&e-------------------------" in sidebar of loop-player to -100
- set score "&c現在のハンター %{hanta-}%" in sidebar of loop-player to -300
- set score "&e-------------------------" in sidebar of loop-player to -500
- stop
- on disconnect:
- if player is {hanta-}:
- execute console command "/tousoutyuu stop"
- broadcast "&fシステム>> &fハンターが&cログアウト&fしたため、ゲームが終了されました"
- broadcast "&cLogout - %player%"
- stop
- on inventory click:
- if clicked slot type is armor:
- if player's helmet is diamond_helmet:
- cancel event
Add Comment
Please, Sign In to add comment