Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every minecraft tick:
- {murder.system.gamestat} is "wait"
- clear {murder.system.waitamount}
- loop all players:
- {murder.stat::%loop-player%} is "wait"
- add 1 to {murder.system.waitamount}
- if {murder.system.waitamount} > 3:
- command "/execute @a ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 1.33"
- command "/murder start"
- command /murder [<text>] [<text>] [<text>]:
- permission: murder.admin
- trigger:
- if arg 1 is "start":
- if arg 2 is not set:
- set {_sec} to 30
- else:
- set {_sec} to arg 2 parsed as integer
- set {_count} to {_sec}
- set {murder.system.gamestat} to "ready"
- loop {_sec} times:
- remove 1 from {_count}
- set {murder.system.waitamount} to 0
- loop all players:
- {murder.stat::%loop-player%} is "wait"
- add 1 to {murder.system.waitamount}
- if {murder.system.waitamount} < 4:
- arg 3 is not "false"
- message ""
- command "/execute @a ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 0.67"
- loop all players:
- set action bar of loop-player to coloured "&cキャンセルされました"
- wait 2 second
- stop
- if {_count} > 9:
- loop all players:
- if {murder.stat::%loop-player%} is "wait":
- set action bar of loop-player to coloured "&6開始の準備が整いました"
- else:
- set action bar of loop-player to coloured "&7開始の準備が整いました"
- else:
- command "/execute @a ~ ~ ~ playsound ui.button.click master @s ~ ~ ~ 1 1.2"
- loop all players:
- if {murder.stat::%loop-player%} is "wait":
- set action bar of loop-player to coloured "&6残り%{_count}%秒で開始します"
- else:
- set action bar of loop-player to coloured "&7残り%{_count}%秒で開始します"
- wait a second
- set {murder.system.gamestat} to "game"
- set {murder.system.plamount} to 0
- loop all players:
- {murder.stat::%loop-player%} is "wait"
- add 1 to {murder.system.plamount}
- if {murder.system.plamount} < 4:
- arg 3 is not "false"
- message ""
- command "/execute @a ~ ~ ~ playsound block.note.pling master @s ~ ~ ~ 1 0.67"
- loop all players:
- set action bar of loop-player to coloured "&cキャンセルされました"
- wait 2 second
- stop
- while true:
- set {_murder} to random integer between 1 to {murder.system.plamount}
- set {_detective} to random integer between 1 to {murder.system.plamount}
- if {_murder} = {_detective}:
- wait a tick
- else:
- exit loop
- loop all players:
- if {_murder} is loop-number:
- set {murder.role.%player%} to "murder"
- send player title "&7You are &c&lMurder" with subtitle "&9Win: Destroy Innocent" for 1 seconds
- else if {_detective} is loop-number:
- set {murder.role.%player%} to "detective"
- send player title "&7You are &e&lDetective" with subtitle "&9Win: Find Murder" for 1 seconds
- else:
- set {murder.role.%player%} to "innocent"
- send player title "&7You are &e&lDetective" with subtitle "&9Win: Find Murder" for 1 seconds
- set {murder.system.gamestat} to "wait"
- else:
- message "&c*引数が不正です" to player
- message "&6/murder &estart [sec] [cancel]&7>> &bゲーム開始 [sec]は待機秒数(デフォルトで30秒) [cancel]をfalseにするとキャンセルなし" to player
Add Comment
Please, Sign In to add comment