Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================
- #/joingameコマンド
- #===============================================
- command /joingame:
- description: ゲームに参加します
- usage: /joingame
- aliases: /jg
- trigger:
- if {status.joined.%player%} is 0:
- set {status.joined.%player%} to 1
- message "&e&l[system] &aゲームに参加しました"
- play sound "block.note.snare" with volume 10 and pitch 1 at player
- else:
- set {status.joined.%player%} to 0
- message "&e&l[system] &cゲームへの参加を取り消しました"
- play sound "block.note.basedrum" with volume 10 and pitch 1 at player
- #===============================================
- #/*ninetynineコマンド
- #===============================================
- command /*ninetynine <text> [<text>] [<text>]:
- description: 運営用のコマンドです
- usage: &e/*nn <start|settings> ...
- aliases: /*nn
- permission: skript.admin
- permission message: &c実行失敗:権限を持っていません
- trigger:
- if arg 1 is "settings" or "1":
- if arg 2 is "list" or "0":
- message "&e&l[system] &6&l=====&c&l設定名リスト&6&l====="
- message "&d&l・gamemaster-play&9&l&o( or 1)&d&l: &6&lゲームマスターが参加できるかの設定です"
- else if arg 2 is "gamemaster-play" or "1":
- if arg 3 is "false" or "0":
- set {settings.ninetynine.1} to 0
- message "&e&l[system] &d<NinetyNineゲーム設定> &7ゲームマスターの参加をオフにしました"
- else if arg 3 is "true" or "1":
- set {settings.ninetynine.1} to 1
- message "&e&l[system] &d<NinetyNineゲーム設定> &7ゲームマスターの参加をオンにしました"
- else:
- message "Correct usage: &e/*ninetynine settings gamemaster-play <true|false>"
- else:
- message "Correct usage: &e/*ninetynine settings <設定名|list> ..."
- if arg 1 is "stop" or "2":
- if {status.playing-game} is not 1:
- message "&e&l[system] &c現在NinetyNineの試合中ではありません"
- stop
- message "&c&l[NinetyNine] &dゲームが強制終了されました"
- set {status.playing-game} to 0
- if arg 1 is "start" or "0":
- if {status.playing-game} is not 0:
- message "&e&l[system] &c現在試合中です"
- stop
- set {status.joined-player} to 0
- loop all players:
- set {status.joined.%loop-player%} to 0
- if {status.setjoin.%loop-player%} is 1:
- set {status.joined.%loop-player%} to 1
- add 1 to {status.joined-player}
- if {settings.ninetynine.1} is 1:
- set {status.joined.%player%} to 1
- add 1 to {status.joined-player}
- else:
- set {status.joined.%player%} to 0
- if {status.joined.%player%} is less than 2:
- message "&e&l[system] &c人数が足りないため開始できませんでした"
- stop
- broadcast "&c&l[NinetyNine] &6ゲームが開始されました"
- set {status.game-scene} to 1
- set {status.playing-game} to 1
- if arg 1 is "testplay" or "3":
- if {status.playing-game} is not 0:
- message "&e&l[system] &c現在試合中です"
- stop
- set {status.joined-player} to 0
- loop all players:
- set {status.joined.%loop-player%} to 0
- if {status.setjoin.%loop-player%} is 1:
- set {status.joined.%loop-player%} to 1
- add 1 to {status.joined-player}
- if {settings.ninetynine.1} is 1:
- set {status.joined.%player%} to 1
- add 1 to {status.joined-player}
- else:
- set {status.joined.%player%} to 0
- broadcast "&c&l[NinetyNine] &6ゲームのテストプレイが開始されました"
- set {status.game-scene} to 1
- set {status.playing-game} to 1
- #===============================================
- #fourcard試合中進行コード
- #===============================================
- every minecraft tick:
- if {status.playing-game} is 1:
- if {status.game-scene} is 1:
- set {status.ninetynine.playerNumber} to 0
- loop all players:
- set {status.ninetynine.playerNumber.%loop-player%} to 0
- if {status.joined.%loop-player%} is 1:
- add 1 to {status.ninetynine.playerNumber}
- set {status.ninetynine.playerNumber.%loop-player%} to {status.ninetynine.playerNumber}
- set {status.game-scene} to 2
- set {status.game-turn} to 1
- else if {status.game-scene} is 2:
- loop all players:
- loop {status.ninetynine.playerNumber} times:
- if {status.game-turn} is {status.ninetynine.playerNumber.%loop-player%}:
- open chest with 3 rows named "&9&lYour Turn" to loop-player
- # format slot (SLOT) of loop-player with (ID) named "(NAME)" with lore "(LORE)" to run "(CMD)"
- format slot 0 of loop-player with redstone_block named "&e&l所持カード" with lore "" to run ""
- stop
Advertisement
Add Comment
Please, Sign In to add comment