Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #KurumiKitPVPserver 専用Skript 作 Kurumi1011
- #kit追加時にすること
- # menuの設定 kit番号をidにする
- # 処罰コマンド /aplostのkitの設定
- # set {%arg 1%.1} to false の部分を増やす
- # 職業選択・職業購入の欄を増やす
- #定義づけ point
- variables:
- {%player%.point} = 0
- {%player%.rank} = 1
- {%player%.1} = false
- {%player%.2} = false
- {%player%.3} = false
- {%player%.4} = false
- {%player%.5} = false
- {%player%.6} = false
- {%player%.7} = false
- {%player%.8} = false
- {%player%.9} = false
- {%player%.10} = false
- {%player%.11} = false
- {%player%.12} = false
- {%player%.13} = false
- {%player%.14} = false
- #初ログイン時のコマンド
- on join:
- command "/lobby %player%"
- command "/tp %player% 1195 4 208"
- #killした時の処理
- on death of player:
- if attacker is a player:
- message "&a&l+&e&l%{killpoint}%&a&lpoint" to attacker
- add {killpoint} to {%attacker%.point}
- #---運営用コマンド---
- #運営用のhelp
- command /aphelp:
- trigger:
- player has permission "pvp.admin"
- message "&d----------------------------"
- message "&b&lKurumiKitPvPserver 運営用help"
- message "&b&l必要permission → pvp.admin"
- message "&d----------------------------"
- message "&e/aphelp &a...このhelpが出ます"
- message "&e/apkillpoint <数値>"
- message "&a ... killごとの入手pointの変更"
- message "&e/appa <player> <数値>"
- message "&a ... pointを増加させる"
- message "&e/apps <player> <数値>"
- message "&a ... pointを設定する"
- message "&e/appaall <数値>"
- message "&a ... 全員のpointを増加させる"
- message "&e/apkit <player> <数値> <true/false>"
- message "&a... playerのkitの購入状況を操作"
- message "&e/appar <数値>"
- message "&a ... 抽選で一名のpointの増加"
- message "&e/aplost <player> <kit/point>"
- message "&a ... Playerのkitまたはpointの消滅"
- message "&d----------------------------"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- #killごとの入手pointの変更コマンド
- command /apkillpoint <number>:
- trigger:
- player has permission "pvp.admin"
- set {killpoint} to arg 1
- broadcast "&b---&d&lお知らせ&b-----------------"
- broadcast "&e運営の&b&l%player%&eによって"
- broadcast "&ekillごとの入手pointが"
- broadcast "&e通常の&b&l%{killpoint}/100%倍&eである"
- broadcast "&b&l%arg 1%&eになりました!"
- broadcast "&b----------------------------"
- command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
- #point変動コマンド
- command /appa <player> <number>:
- trigger:
- player has permission "pvp.admin"
- add arg 2 to {%arg 1%.point}
- broadcast "--------------------------"
- broadcast "&a運営の&e%player%&aによって"
- broadcast "&e%arg 1%&aさんのpointが"
- broadcast "&e%arg 2% &a増加しました"
- broadcast "--------------------------"
- message "&e&l%arg 2%point&b&l入手しました" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
- command /apps <player> <number>:
- trigger:
- player has permission "pvp.admin"
- set {%arg 1%.point} to arg 2
- broadcast "--------------------------"
- broadcast "&a運営の&e%player%&aによって"
- broadcast "&e%arg 1%&aさんのpointが"
- broadcast "&e%arg 2% &aになりました"
- broadcast "--------------------------"
- message "&e&l%arg 2%point&b&lになりました" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- command /appaall <number>:
- trigger:
- player has permission "pvp.admin"
- loop all players:
- add arg 1 to {%loop-player%.point}
- broadcast "&b---&d&lお知らせ&b-----------------"
- broadcast "&e運営の&b&l%player%&eによって"
- broadcast "&b&lOnlinePlayer全員&eのpointが"
- broadcast "&b&l%arg 1% &e増加しました!!"
- broadcast "&b----------------------------"
- broadcast "&e&l%arg 1%point&b&l入手しました"
- command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53 1.0"
- #抽選point
- command /appar <number>:
- trigger:
- player has permission "pvp.admin"
- command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
- broadcast "&b---&d&lお知らせ&b-----------------"
- broadcast "&e運営の&b&l%player%&eによって"
- broadcast "&e抽選が始まります!"
- broadcast "&e報酬は&b&l%arg 1% point&eです!"
- broadcast "&e抽選を開始します!"
- broadcast "&b----------------------------"
- wait 2 seconds
- broadcast "&a."
- wait 2 seconds
- broadcast "&b.."
- wait 2 seconds
- broadcast "&e...!"
- wait 3 seconds
- set {tag} to random player out of all players
- add arg 1 to {%{tag}%.point}
- broadcast "&b---&d&l抽選結果&b-----------------"
- broadcast "&b&l%player%&e主催の抽選で"
- broadcast "&b&l%{tag}%&eのpointが"
- broadcast "&b&l%arg 1% &e増加しました!!"
- broadcast "&b----------------------------"
- message "&e&l%arg 1%point&b&l入手しました" to {tag}
- command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
- #処罰
- command /aplost <player> <text>:
- trigger:
- player has permission "pvp.admin"
- if arg 2 is "point":
- set {%arg 1%.point} to 0
- broadcast "&4---&c&l処罰情報&4-------------"
- broadcast "&a運営の&e&l%player%&aによって"
- broadcast "&c&l%arg 1%&aのpointが"
- broadcast "&c0&aになりました"
- broadcast "&4--------------------------"
- if arg 2 is "kit":
- set {%arg 1%.1} to false
- set {%arg 1%.2} to false
- set {%arg 1%.3} to false
- set {%arg 1%.4} to false
- set {%arg 1%.5} to false
- set {%arg 1%.6} to false
- set {%arg 1%.7} to false
- set {%arg 1%.8} to false
- set {%arg 1%.9} to false
- set {%arg 1%.10} to false
- set {%arg 1%.11} to false
- set {%arg 1%.12} to false
- set {%arg 1%.13} to false
- set {%arg 1%.14} to false
- broadcast "&4---&c&l処罰情報&4-------------"
- broadcast "&a運営の&e&l%player%&aによって"
- broadcast "&c&l%arg 1%&aのkitが"
- broadcast "&cなくなりました"
- broadcast "&4--------------------------"
- #kit操作
- command /apkit <player=%player%> <number> <text=true>:
- trigger:
- player has permission "pvp.admin"
- set {%arg 1%.%arg 2%} to arg 3
- broadcast "&b&l運営&e&l%player%&b&lによって &e&l%arg 1% の"
- broadcast "&b&lkit番号 &e&l%arg 2% &b&lが &e&l%arg 3%&a&lになりました"
- #---一般用コマンド---
- #一般用のhelp
- command /phelp <player=%player%>:
- trigger:
- message "&b----------------------------" to arg 1
- message "&dKurumiKitPvPserver 一般用help" to arg 1
- message "&b----------------------------" to arg 1
- message "&e/phelp &a...このhelpが出ます" to arg 1
- message "&e/lobby &a...lobbyモードに戻ります" to arg 1
- message "&e/pp <player> &a... そのプレイヤーのpointを観覧します" to arg 1
- message "&e/psend <player> <数値> &a...ポイント譲渡"
- message "&e/ppar <number> &a...ポイント抽選開催"
- message "&e/rhelp &a...rankについてのhelp" to arg 1
- message "&e/ghelp &a...ガチャについてのhelp" to arg 1
- message "&b----------------------------" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- #menuコマンド
- command /pmenu <player=%player%>:
- trigger:
- open chest with 2 row named "&4&lKKPメニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- format slot 1 of arg 1 with 368 named "&aロビーにteleportする" to close then run [execute console command "/tp %arg 1% 1195 46 208"]
- format slot 2 of arg 1 with 368 named "&aガチャゾーンにteleportする 現在使えません" to close then run [execute console command "/tp %arg 1% 1195 73 208"]
- format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #rankコマンド
- command /rhelp:
- trigger:
- message "&b---rankとは----------------------------------"
- message "&arankとはプレイヤーの中の格付けです"
- message "&a始めはrank 1 から始まります。"
- message "&arankは購入できるkitに影響を与え、"
- message "&aガチャで得られたチケットの使用にも"
- message "&a関わります。 ガチャ→ /ghelp"
- message "&arankはランクメニューから順番に購入することができます"
- message "&b----------------------------------------------"
- #ガチャコマンド
- command /ghelp:
- trigger:
- message "&b---ガチャ-------------------------------------"
- message "&aガチャはガチャキー購入メニューから入手できます"
- message "&aガチャゾーンは、サーバーメニューから"
- message "&a移動できます。 サーバーメニュー → /pmenu"
- message "&a中には、ガチャ限定のkitもあるらしい..."
- message "&b----------------------------------------------"
- #kitselectコマンド
- command /pkitselect <player=%player%>:
- trigger:
- open chest with 3 row named "&4&lKKP kit選択メニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- if {%arg 1%.1} is "true":
- format slot 1 of arg 1 with stick named "&e&l初心のkit" to run [execute console command "/kit %arg 1% 1"]
- else:
- format slot 1 of arg 1 with 160:14 named "&e&l初心のkit 未購入" to close
- if {%arg 1%.2} is "true":
- format slot 2 of arg 1 with 336 named "&e&lビギナーズkit" to run [execute console command "/kit %arg 1% 2"]
- else:
- format slot 2 of arg 1 with 160:14 named "&e&lビギナーズkit 未購入" to close
- if {%arg 1%.3} is "true":
- format slot 3 of arg 1 with wooden sword named "&e&l修行人" to run [execute console command "/kit %arg 1% 3"]
- else:
- format slot 3 of arg 1 with 160:14 named "&e&l修行人 未購入" to close
- if {%arg 1%.4} is "true":
- format slot 4 of arg 1 with arrow named "&e&l弓好き" to run [execute console command "/kit %arg 1% 4"]
- else:
- format slot 4 of arg 1 with 160:14 named "&e&l弓好き 未購入" to close
- if {%arg 1%.5} is "true":
- format slot 5 of arg 1 with 373 named "&e&l薬師" to run [execute console command "/kit %arg 1% 5"]
- else:
- format slot 5 of arg 1 with 160:14 named "&e&l薬師 未購入" to close
- if {%arg 1%.6} is "true":
- format slot 6 of arg 1 with stone sword named "&e&l剣士" to run [execute console command "/kit %arg 1% 6"]
- else:
- format slot 6 of arg 1 with 160:14 named "&e&l剣士 未購入" to close
- if {%arg 1%.7} is "true":
- format slot 7 of arg 1 with 351:1 named "&e&lウォーリアー" to run [execute console command "/kit %arg 1% 7"]
- else:
- format slot 7 of arg 1 with 160:14 named "&e&lウォーリアー 未購入" to close
- if {%arg 1%.8} is "true":
- format slot 10 of arg 1 with bow named "&e&lアーチャー" to run [execute console command "/kit %arg 1% 8"]
- else:
- format slot 10 of arg 1 with 160:14 named "&e&lアーチャー 未購入" to close
- if {%arg 1%.9} is "true":
- format slot 11 of arg 1 with 442 named "&e&lタンク" to run [execute console command "/kit %arg 1% 9"]
- else:
- format slot 11 of arg 1 with 160:14 named "&e&lタンク 未購入" to close
- if {%arg 1%.10} is "true":
- format slot 12 of arg 1 with 443 named "&e&l飛行剣士" to run [execute console command "/kit %arg 1% 10"]
- else:
- format slot 12 of arg 1 with 160:14 named "&e&l飛行剣士 未購入" to close
- if {%arg 1%.11} is "true":
- format slot 13 of arg 1 with 401 named "&e&l花火師" to run [execute console command "/kit %arg 1% 11"]
- else:
- format slot 13 of arg 1 with 160:14 named "&e&l花火師 未購入" to close
- if {%arg 1%.12} is "true":
- format slot 14 of arg 1 with 263:1 named "&e&l妨害厨" to run [execute console command "/kit %arg 1% 12"]
- else:
- format slot 14 of arg 1 with 160:14 named "&e&l妨害厨 未購入" to close
- if {%arg 1%.13} is "true":
- format slot 15 of arg 1 with 351:2 named "&e&l軽装戦士" to run [execute console command "/kit %arg 1% 13"]
- else:
- format slot 15 of arg 1 with 160:14 named "&e&l軽装戦士 未購入" to close
- if {%arg 1%.14} is "true":
- format slot 16 of arg 1 with 351:1 named "&e&l毒蛇" to run [execute console command "/kit %arg 1% 14"]
- else:
- format slot 16 of arg 1 with 160:14 named "&e&l毒蛇 未購入" to close
- format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #kitbuyコマンド
- command /pkitbuy <player=%player%>:
- trigger:
- open chest with 3 row named "&4&lKKP kit購入メニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- if {%arg 1%.1} is not "true":
- format slot 1 of arg 1 with stick named "&e&l初心のkit [0]" to close then run [execute console command "/kitbuy %arg 1% 0 1"]
- else:
- format slot 1 of arg 1 with 160:5 named "&e&l初心のkit 購入済" to close
- if {%arg 1%.2} is not "true":
- format slot 2 of arg 1 with 336 named "&e&lビギナーズkit [0]" to close then run [execute console command "/kitbuy %arg 1% 0 2"]
- else:
- format slot 2 of arg 1 with 160:5 named "&e&lビギナーズkit 購入済" to close
- if {%arg 1%.3} is not "true":
- format slot 3 of arg 1 with wooden sword named "&e&l修行人 [500]" to close then run [execute console command "/kitbuy %arg 1% 500 3"]
- else:
- format slot 3 of arg 1 with 160:5 named "&e&l修行人 購入済" to close
- if {%arg 1%.4} is not "true":
- format slot 4 of arg 1 with arrow named "&e&l弓好き [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 4"]
- else:
- format slot 4 of arg 1 with 160:5 named "&e&l弓好き 購入済" to close
- if {%arg 1%.5} is not "true":
- format slot 5 of arg 1 with 373 named "&e&l薬師 [2500]" to close then run [execute console command "/kitbuy %arg 1% 2500 5"]
- else:
- format slot 5 of arg 1 with 160:5 named "&e&l薬師 購入済" to close
- if {%arg 1%.6} is not "true":
- format slot 6 of arg 1 with stone sword named "&e&l剣士 [3500]" to close then run [execute console command "/kitbuy %arg 1% 3500 6"]
- else:
- format slot 6 of arg 1 with 160:5 named "&e&l剣士 購入済" to close
- if {%arg 1%.7} is not "true":
- format slot 7 of arg 1 with 160:4 named "&e&lウォーリアー [???]" to close
- else:
- format slot 7 of arg 1 with 160:6 named "&e&lウォーリアー 購入済" to close
- if {%arg 1%.8}
- format slot 10 of arg 1 with bow named "&e&lアーチャー [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 8"]
- else:
- format slot 10 of arg 1 with 160:5 named "&e&lアーチャー 購入済" to close
- if {%arg 1%.9} is not "true":
- format slot 11 of arg 1 with 336 named "&e&lタンク [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 9"]
- else:
- format slot 11 of arg 1 with 160:5 named "&e&lタンク 購入済" to close
- if {%arg 1%.10} is not "true":
- format slot 12 of arg 1 with 160:4 named "&e&l飛行剣士 [???]" to close
- else:
- format slot 12 of arg 1 with 160:6 named "&e&l飛行剣士 購入済" to close
- if {%arg 1%.11} is not "true":
- format slot 13 of arg 1 with 160:4 named "&e&l花火師 [???]" to close
- else:
- format slot 13 of arg 1 with 160:6 named "&e&l花火師 購入済" to close
- if {%arg 1%.12} is not "true":
- format slot 14 of arg 1 with 160:4 named "&e&l妨害厨 [???]" to close
- else:
- format slot 14 of arg 1 with 160:6 named "&e&l妨害厨 購入済" to close
- if {%arg 1%.13} is not "true":
- format slot 15 of arg 1 with 160:4 named "&e&l軽装戦士 [???]" to close
- else:
- format slot 15 of arg 1 with 160:6 named "&e&l軽装戦士 購入済" to close
- if {%arg 1%.14} is not "true":
- format slot 16 of arg 1 with 160:4 named "&e&l毒蛇 [???]" to close
- else:
- format slot 16 of arg 1 with 160:5 named "&e&l毒蛇 購入済" to close
- format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #kit購入コマンド
- command /kitbuy <player=%player%> <number> <number>:
- trigger:
- if {%arg 1%.point} is arg 2:
- remove arg 2 from {%arg 1%.point}
- set {%arg 1%.%arg 3%} to "true"
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
- message "&e&l購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- stop
- if {%arg 1%.point} > arg 2:
- remove arg 2 from {%arg 1%.point}
- set {%arg 1%.%arg 3%} to "true"
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
- message "&e&l購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- stop
- else:
- message "<red>購入条件を満たしていません!" to arg 1
- message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- #kit選択コマンド
- command /kit <player=%player%> <number>:
- trigger:
- command "/clear %arg 1%"
- set {%arg 1%.kit} to arg 2
- command "/menu grab %arg 1% %arg 2%"
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- message "&b&lkitを選択しました"
- message "&b&llobbyモードに戻るをクリックで戻せます"
- #kit番号確認
- command /kitnumber <player=%player%>:
- trigger:
- message "&b&l現在の&e&l%arg 1%&b&lのkit番号は &e&l{%arg 1%.kit} &b&lです"
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- #point確認コマンド ブロック用
- command /ppp <player=%player%>:
- trigger:
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- message "&aあなたが所持しているpointは&e&l%{%arg 1%.point}%&apoint" to arg 1
- #point確認コマンド
- command /pp <player=%player%>:
- trigger:
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- message "&a%arg 1%が所持しているpointは&e&l%{%arg 1%.point}%&apoint" to player
- #point譲渡コマンド
- command /psend <player> <number>:
- trigger:
- remove arg 2 from {%player%.point}
- add arg 2 to {%arg 1%.point}
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- message "&e&l%arg 1%&b&lに&e&l%arg 2%&b&lpointを渡しました" to player
- message "&e&l%player%&b&lから&e&l%arg 2%&b&lpointを受け取りました" to arg 1
- #一般抽選
- command /ppar <number>:
- trigger:
- command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
- broadcast "---&d抽選&f-----------------"
- broadcast "一般Playerの&b%player%&fによって"
- broadcast "&f抽選が始まります!"
- broadcast "&f報酬は&b%arg 1% point&fです!"
- broadcast "&f抽選を開始します!"
- broadcast "----------------------------"
- remove arg 1 from {%player%.point}
- wait 2 seconds
- broadcast "&1."
- wait 2 seconds
- broadcast "&1.."
- wait 2 seconds
- broadcast "&b...!"
- wait 3 seconds
- set {tag} to random player out of all players
- add arg 1 to {%{tag}%.point}
- broadcast "---&d抽選結果&f-----------------"
- broadcast "&b%player%&f主催の抽選で"
- broadcast "&b%{tag}%&fのpointが"
- broadcast "&b%arg 1% &f増加しました!!"
- broadcast "&b----------------------------"
- message "&e&l%arg 1%point&b&l入手しました" to {tag}
- command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
- #lobbyモードにするコマンド
- command /lobby <player=%player%>:
- trigger:
- command "/clear %arg 1%"
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- message "&b&llobbyモードに戻りました" to arg 1
- command "/menu grab %arg 1% 0"
- #ガチャメニュー
- command /gmenu <player=%player%>:
- trigger:
- open chest with 3 row named "&4&lKKP ガチャキー購入メニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- format slot 1 of arg 1 with 131 named "&e&lpointガチャキー [500]" to run [execute console command "/gbuy %arg 1% 1 500"]
- format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- command /gbuy <player> <number> <number>:
- trigger:
- if {%arg 1%.point} is arg 3:
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
- message "&e&l購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- remove arg 3 from {%arg 1%.point}
- if arg 2 is 1:
- command "/crate key %arg 1% pointガチャ 1"
- if arg 2 is 2:
- command "/crate key %arg 1% イベントガチャ 1"
- stop
- if {%arg 1%.point} > arg 3:
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
- message "&e&l購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- remove arg 3 from {%arg 1%.point}
- if arg 2 is 1:
- command "/crate key %arg 1% pointガチャ 1"
- if arg 2 is 2:
- command "/crate key %arg 1% イベントガチャ 1"
- stop
- else:
- message "<red>購入条件を満たしていません!" to arg 1
- message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- command /rmenu <player=%player%>:
- trigger:
- open chest with 3 row named "&4&lKKP ランク購入メニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
- format slot 12 of arg 1 with 160:4 named "&cXXX" to close
- format slot 14 of arg 1 with 160:4 named "&cXXX" to close
- format slot 3 of arg 1 with 160:4 named "&cXXX" to close
- format slot 5 of arg 1 with 160:4 named "&cXXX" to close
- format slot 21 of arg 1 with 160:4 named "&cXXX" to close
- format slot 23 of arg 1 with 160:4 named "&cXXX" to close
- format slot 4 of arg 1 with 160:4 named "&cXXX" to close
- format slot 22 of arg 1 with 160:4 named "&cXXX" to close
- if {%arg 1%.rank} is 0:
- format slot 13 of arg 1 with book named "&e&lrank1 になる [0]" to close then run [execute console command "/rbuy %arg 1% 1 0"]
- if {%arg 1%.rank} is 1:
- format slot 13 of arg 1 with book named "&e&lrank2 になる [300]" to close then run [execute console command "/rbuy %arg 1% 2 300"]
- if {%arg 1%.rank} is 2:
- format slot 13 of arg 1 with book named "&e&lrank3 になる [1000]" to close then run [execute console command "/rbuy %arg 1% 3 1000"]
- if {%arg 1%.rank} > 2:
- format slot 13 of arg 1 with book named "未実装" to close
- format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- command /rbuy <player> <number> <number>:
- trigger:
- if {%arg 1%.point} is arg 3:
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
- message "&e&l購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- set {%arg 1%.rank} to arg 2
- stop
- if {%arg 1%.point} > arg 3:
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
- message "&e&l購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- set {%arg 1%.rank} to arg 2
- stop
- else:
- message "<red>購入条件を満たしていません!" to arg 1
- message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- #動作
- on click with book:
- name of player's tool contains "&e&lキット選択メニュー"
- wait 1 tick
- execute console command "/pkitselect %player%"
- on click with nether star:
- name of player's tool contains "&e&lサーバーメニュー"
- wait 1 tick
- execute console command "/pmenu %player%"
- on click with emerald:
- name of player's tool contains "&e&l所持ポイント確認"
- wait 1 tick
- execute console command "/pp %player%"
- on click with gold nugget:
- name of player's tool contains "&e&lキット購入メニュー"
- wait 1 tick
- execute console command "/pkitbuy %player%"
- on click with 402:
- name of player's tool contains "&e&lガチャキー購入メニュー"
- wait 1 tick
- execute console command "/gmenu %player%"
- on click with 369:
- name of player's tool contains "&e&lランク購入メニュー"
- wait 1 tick
- execute console command "/rmenu %player%"
- on click with bone:
- name of player's tool contains "&e&llobbyモードに戻る"
- wait 1 tick
- execute console command "/lobby %player%"
- #----------------------------
- #職業入手チケット
- on click with paper:
- name of player's tool contains "&e&l飛行剣士 [rank 3]"
- if {%player%.rank} > 2:
- command "/pbuy %player% 0 10"
- else:
- message "&crank 3 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l花火師 [rank 2]"
- if {%player%.rank} > 1:
- command "/pbuy %player% 0 11"
- else:
- message "&crank 2 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l妨害厨 [rank 2]"
- if {%player%.rank} > 1:
- command "/pbuy %player% 0 12"
- else:
- message "&crank 2 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l軽装戦士 [rank 2]"
- if {%player%.rank} > 1:
- command "/pbuy %player% 0 13"
- else:
- message "&crank 2 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l毒蛇 [rank 3]"
- if {%player%.rank} > 2:
- command "/pbuy %player% 0 14"
- else:
- message "&crank 3 以上でないと使えません!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement