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 の部分を増やす
- # 職業選択・職業購入の欄を増やす
- #やること
- #/pvp の設定 [PVPspawn]
- #定義づけ 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
- {%player%.15} = false
- {%player%.16} = false
- {%player%.17} = false
- {%player%.18} = false
- {%player%.19} = false
- {%player%.20} = false
- #初ログイン時のコマンド
- on join:
- command "/lobby %player%"
- command "/tp %player% 1195 46 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/broadcast <message> &a...お知らせをします"
- 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 "&e/ar <player> <number>"
- message "&a ... Playerのrankの操作"
- message "&d----------------------------"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- #お知らせ
- command /broadcast <text>:
- trigger:
- broadcast "&1-----------&b&lお知らせ&1-----------"
- broadcast "&a&l%arg 1%"
- broadcast "&1------------------------------"
- #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
- command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.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
- set {%arg 1%.15} to false
- set {%arg 1%.16} to false
- set {%arg 1%.17} to false
- set {%arg 1%.18} to false
- set {%arg 1%.19} to false
- set {%arg 1%.20} to false
- command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
- 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
- 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"
- 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になりました"
- #rank操作
- command /ar <player=%player%> <number>:
- trigger:
- player has permission "pvp.admin"
- set {%arg 1%.rank} to arg 2
- 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"
- broadcast "&b&l運営&e&l%player%&b&lによって &e&l%arg 1% の"
- broadcast "&b&lrankが &e&l%arg 2%&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
- #PvPフィールドspawnpoint
- command /pvp <player=%player%>:
- trigger:
- set {_dice} to a random integer between 0 and 6
- if {_dice} is 0:
- command "/tp %arg 1% 1225 5 201"
- if {_dice} is 1:
- command "/tp %arg 1% 1224 4 165"
- if {_dice} is 2:
- command "/tp %arg 1% 1238 12 175"
- if {_dice} is 3:
- command "/tp %arg 1% 1230 12 154"
- if {_dice} is 4:
- command "/tp %arg 1% 1191 4 154"
- if {_dice} is 5:
- command "/tp %arg 1% 1203 7 137"
- if {_dice} is 6:
- command "/tp %arg 1% 1273 25 156"
- message "&b&lPvPフィールドにteleportしました" to arg 1
- #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:
- wait 2 tick
- open chest with 4 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"
- format slot 10 of arg 1 with arrow named "&a&lノーマルkit &5&lpage 1" to run [execute console command "/pkitselect1 %arg 1%"]
- format slot 19 of arg 1 with 439 named "&e&lレアkit &5&lpage 1" to run [execute console command "/pkitselect1v %arg 1%"]
- command /pkitselect1 <player=%player%>:
- trigger:
- wait 2 tick
- open chest with 3 row named "&4&lKKP kit選択メニュー [&2&lノーマルkit&4&l] page 1" 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&lNo.1 初心のkit" to run [execute console command "/kit %arg 1% 1"]
- else:
- format slot 1 of arg 1 with 160:14 named "&e&lNo.1 初心のkit 未購入" to close
- if {%arg 1%.2} is "true":
- format slot 2 of arg 1 with 336 named "&e&lNo.2 ビギナーズkit" to run [execute console command "/kit %arg 1% 2"]
- else:
- format slot 2 of arg 1 with 160:14 named "&e&lNo.2 ビギナーズkit 未購入" to close
- if {%arg 1%.3} is "true":
- format slot 3 of arg 1 with wooden sword named "&e&lNo.3 修行人" to run [execute console command "/kit %arg 1% 3"]
- else:
- format slot 3 of arg 1 with 160:14 named "&e&lNo.3 修行人 未購入" to close
- if {%arg 1%.4} is "true":
- format slot 4 of arg 1 with arrow named "&e&lNo.4 弓好き" to run [execute console command "/kit %arg 1% 4"]
- else:
- format slot 4 of arg 1 with 160:14 named "&e&lNo.4 弓好き 未購入" to close
- if {%arg 1%.5} is "true":
- format slot 5 of arg 1 with 373 named "&e&lNo.5 薬師" to run [execute console command "/kit %arg 1% 5"]
- else:
- format slot 5 of arg 1 with 160:14 named "&e&lNo.5 薬師 未購入" to close
- if {%arg 1%.6} is "true":
- format slot 6 of arg 1 with stone sword named "&e&lNo.6 剣士" to run [execute console command "/kit %arg 1% 6"]
- else:
- format slot 6 of arg 1 with 160:14 named "&e&lNo.6 剣士 未購入" to close
- if {%arg 1%.8} is "true":
- format slot 7 of arg 1 with bow named "&e&lNo.8 アーチャー" to run [execute console command "/kit %arg 1% 8"]
- else:
- format slot 7 of arg 1 with 160:14 named "&e&lNo.8 アーチャー 未購入" to close
- if {%arg 1%.9} is "true":
- format slot 10 of arg 1 with 442 named "&e&lNo.9 タンク" to run [execute console command "/kit %arg 1% 9"]
- else:
- format slot 10 of arg 1 with 160:14 named "&e&lNo.9 タンク 未購入" to close
- if {%arg 1%.15} is "true":
- format slot 11 of arg 1 with 417 named "&e&lNo.15 銃マニア" to run [execute console command "/kit %arg 1% 15"]
- else:
- format slot 11 of arg 1 with 160:14 named "&e&lNo.15 銃マニア 未購入" to close
- if {%arg 1%.16} is "true":
- format slot 12 of arg 1 with 351:15 named "&e&lNo.16 睡魔" to run [execute console command "/kit %arg 1% 16"]
- else:
- format slot 12 of arg 1 with 160:14 named "&e&lNo.16 睡魔 未購入" to close
- if {%arg 1%.17} is "true":
- format slot 13 of arg 1 with 271 named "&e&lNo.17 木こり" to run [execute console command "/kit %arg 1% 17"]
- else:
- format slot 13 of arg 1 with 160:14 named "&e&lNo.17 ??? 未購入" to close
- if {%arg 1%.18} is "true":
- format slot 14 of arg 1 with 295 named "&e&lNo.18 農家" to run [execute console command "/kit %arg 1% 18"]
- else:
- format slot 14 of arg 1 with 160:14 named "&e&lNo.18 ??? 未購入" to close
- if {%arg 1%.19} is "true":
- format slot 15 of arg 1 with 397:2 named "&e&lNo.19 ゾンビくん" to run [execute console command "/kit %arg 1% 19"]
- else:
- format slot 15 of arg 1 with 160:14 named "&e&lNo.19 ??? 未購入" 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 then run [execute console command "/pkitselect %arg 1%"]
- stop
- command /pkitselect1v <player=%player%>:
- trigger:
- wait 2 tick
- open chest with 3 row named "&4&lKKP kit選択メニュー [&6&lレアkit&4&l] page 1" 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%.7} is "true":
- format slot 1 of arg 1 with 351:1 named "&e&lNo.7 ウォーリアー" to run [execute console command "/kit %arg 1% 7"]
- else:
- format slot 1 of arg 1 with 160:14 named "&e&lNo.7 ウォーリアー 未購入" to close
- if {%arg 1%.10} is "true":
- format slot 2 of arg 1 with 443 named "&e&lNo.10 飛行剣士" to run [execute console command "/kit %arg 1% 10"]
- else:
- format slot 2 of arg 1 with 160:14 named "&e&lNo.10 飛行剣士 未購入" to close
- if {%arg 1%.11} is "true":
- format slot 3 of arg 1 with 401 named "&e&lNo.11 花火師" to run [execute console command "/kit %arg 1% 11"]
- else:
- format slot 3 of arg 1 with 160:14 named "&e&lNo.11 花火師 未購入" to close
- if {%arg 1%.12} is "true":
- format slot 4 of arg 1 with 263:1 named "&e&lNo.12 妨害厨" to run [execute console command "/kit %arg 1% 12"]
- else:
- format slot 4 of arg 1 with 160:14 named "&e&lNo.12 妨害厨 未購入" to close
- if {%arg 1%.13} is "true":
- format slot 5 of arg 1 with feather named "&e&lNo.13 軽装戦士" to run [execute console command "/kit %arg 1% 13"]
- else:
- format slot 5 of arg 1 with 160:14 named "&e&lNo.13 軽装戦士 未購入" to close
- if {%arg 1%.14} is "true":
- format slot 6 of arg 1 with 351:2 named "&e&lNo.14 毒蛇" to run [execute console command "/kit %arg 1% 14"]
- else:
- format slot 6 of arg 1 with 160:14 named "&e&lNo.14 毒蛇 未購入" to close
- if {%arg 1%.20} is "true":
- format slot 7 of arg 1 with 377 named "&e&lNo.20 猛者" to run [execute console command "/kit %arg 1% 20"]
- else:
- format slot 7 of arg 1 with 160:14 named "&e&lNo.20 猛者 未購入" 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 then run [execute console command "/pkitselect %arg 1%"]
- stop
- #kitbuyコマンド
- command /pkitbuy <player=%player%>:
- trigger:
- wait 2 tick
- open chest with 4 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"
- format slot 10 of arg 1 with arrow named "&a&lノーマルkit &5&lpage 1" to close then run [execute console command "/pkitbuy1 %arg 1%"]
- format slot 19 of arg 1 with 439 named "&e&lレアkit &5&lpage 1" to close then run [execute console command "/pkitbuy1v %arg 1%"]
- command /pkitbuy1 <player=%player%>:
- trigger:
- wait 2 tick
- open chest with 3 row named "&4&lKKP kit購入メニュー [&2&lノーマルkit&4&l] page 1" 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&lNo.1 初心の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&lNo.1 初心のkit 購入済" to close
- if {%arg 1%.2} is not "true":
- format slot 2 of arg 1 with 336 named "&e&lNo.2 ビギナーズ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&lNo.2 ビギナーズkit 購入済" to close
- if {%arg 1%.3} is not "true":
- format slot 3 of arg 1 with wooden sword named "&e&lNo.3 修行人 [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&lNo.3 修行人 購入済" to close
- if {%arg 1%.4} is not "true":
- format slot 4 of arg 1 with arrow named "&e&lNo.4 弓好き [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&lNo.4 弓好き 購入済" to close
- if {%arg 1%.5} is not "true":
- format slot 5 of arg 1 with 373 named "&e&lNo.5 薬師 [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&lNo.5 薬師 購入済" to close
- if {%arg 1%.6} is not "true":
- format slot 6 of arg 1 with stone sword named "&e&lNo.6 剣士 [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&lNo.6 剣士 購入済" to close
- if {%arg 1%.8} is not "true":
- format slot 7 of arg 1 with bow named "&e&lNo.8 アーチャー [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 8"]
- else:
- format slot 7 of arg 1 with 160:5 named "&e&lNo.8 アーチャー 購入済" to close
- if {%arg 1%.9} is not "true":
- format slot 10 of arg 1 with 336 named "&e&lNo.9 タンク [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 9"]
- else:
- format slot 10 of arg 1 with 160:5 named "&e&lNo.9 タンク 購入済" to close
- if {%arg 1%.15} is not "true":
- format slot 11 of arg 1 with 417 named "&e&lNo.15 銃マニア [250]" to close then run [execute console command "/kitbuy %arg 1% 250 15"]
- else:
- format slot 11 of arg 1 with 160:5 named "&e&lNo.15 銃マニア 購入済" to close
- if {%arg 1%.16} is not "true":
- format slot 12 of arg 1 with 351:15 named "&e&lNo.16 睡魔 [250]" to close then run [execute console command "/kitbuy %arg 1% 250 16"]
- else:
- format slot 12 of arg 1 with 160:5 named "&e&lNo.16 睡魔 購入済" to close
- if {%arg 1%.17} is not "true":
- format slot 13 of arg 1 with 271 named "&e&lNo.17 ??? [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 17"]
- else:
- format slot 13 of arg 1 with 160:5 named "&e&lNo.17 木こり 購入済" to close
- if {%arg 1%.18} is not "true":
- format slot 14 of arg 1 with 295 named "&e&lNo.18 ??? [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 18"]
- else:
- format slot 14 of arg 1 with 160:5 named "&e&lNo.18 農家 購入済" to close
- if {%arg 1%.19} is not "true":
- format slot 15 of arg 1 with 397:2 named "&e&lNo.19 ??? [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 19"]
- else:
- format slot 15 of arg 1 with 160:5 named "&e&lNo.19 ゾンビくん 購入済" 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 then run [execute console command "/pkitbuy %arg 1%"]
- stop
- command /pkitbuy1v <player=%player%>:
- trigger:
- wait 2 tick
- open chest with 3 row named "&4&lKKP kit購入メニュー [&6&lレアkit&4&l] page 1" 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%.7} is not "true":
- format slot 1 of arg 1 with 160:4 named "&e&lNo.7 ウォーリアー [???]" to close
- else:
- format slot 1 of arg 1 with 160:6 named "&e&lNo.7 ウォーリアー 購入済" to close
- if {%arg 1%.10} is not "true":
- format slot 2 of arg 1 with 160:4 named "&e&lNo.10 飛行剣士 [???]" to close
- else:
- format slot 2 of arg 1 with 160:6 named "&e&lNo.10 飛行剣士 購入済" to close
- if {%arg 1%.11} is not "true":
- format slot 3 of arg 1 with 160:4 named "&e&lNo.11 花火師 [???]" to close
- else:
- format slot 3 of arg 1 with 160:6 named "&e&lNo.11 花火師 購入済" to close
- if {%arg 1%.12} is not "true":
- format slot 4 of arg 1 with 160:4 named "&e&lNo.12 妨害厨 [???]" to close
- else:
- format slot 4 of arg 1 with 160:6 named "&e&lNo.12 妨害厨 購入済" to close
- if {%arg 1%.13} is not "true":
- format slot 5 of arg 1 with 160:4 named "&e&lNo.13 軽装戦士 [???]" to close
- else:
- format slot 5 of arg 1 with 160:6 named "&e&lNo.13 軽装戦士 購入済" to close
- if {%arg 1%.14} is not "true":
- format slot 6 of arg 1 with 160:4 named "&e&lNo.14 毒蛇 [???]" to close
- else:
- format slot 6 of arg 1 with 160:6 named "&e&lNo.14 毒蛇 購入済" to close
- if {%arg 1%.20} is not "true":
- format slot 7 of arg 1 with 160:4 named "&e&lNo.20 猛者 [???]" to close
- else:
- format slot 7 of arg 1 with 160:6 named "&e&lNo.20 猛者 購入済" 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 then run [execute console command "/pkitbuy %arg 1%"]
- 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を選択しました"
- command "/effect %arg 1% clear"
- 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:
- if {%player%.point} is arg 1:
- 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}
- message "&a残りpoint &e&l%{%player%.point}%&apoint" to player
- 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"
- stop
- if {%player%.point} > arg 1:
- 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}
- message "&a残りpoint &e&l%{%player%.point}%&apoint" to player
- 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"
- stop
- else:
- message "<red>必要なpointを満たしていません!"
- message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 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 9 of arg 1 with book named "&e&l/ghelpでガチャの説明を受けられます" to close
- 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
- remove arg 3 from {%arg 1%.point}
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- 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
- remove arg 3 from {%arg 1%.point}
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- 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 9 of arg 1 with book named "&e&l/rhelpで説明を受けられます" to close
- format slot 12 of arg 1 with yellow glass named "&cXXX" to close
- format slot 14 of arg 1 with yellow glass named "&cXXX" to close
- format slot 3 of arg 1 with yellow glass named "&cXXX" to close
- format slot 5 of arg 1 with yellow glass named "&cXXX" to close
- format slot 21 of arg 1 with yellow glass named "&cXXX" to close
- format slot 23 of arg 1 with yellow glass named "&cXXX" to close
- format slot 4 of arg 1 with yellow glass named "&cXXX" to close
- format slot 22 of arg 1 with yellow glass 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"
- remove arg 3 from {%arg 1%.point}
- 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"
- remove arg 3 from {%arg 1%.point}
- 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 388:
- name of player's tool contains "&e&l/realmを開く"
- wait 1 tick
- make player execute command "/realm"
- on click with 86:
- name of player's tool contains "&e&l所持ポイント確認"
- wait 1 tick
- make player execute command "/pp"
- on click with gold nugget:
- name of player's tool contains "&e&lキット購入メニュー"
- wait 1 tick
- execute console command "/pkitbuy %player%"
- on click with firework_star:
- name of player's tool contains "&e&lガチャキー購入メニュー"
- wait 1 tick
- execute console command "/gmenu %player%"
- on click with blaze_rod:
- 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 "+100point"
- add 100 to {%player%.point}
- remove 1 of held item from player
- message "&e+100&apoint"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
- on click with paper:
- name of player's tool contains "&e&lウォーリアー"
- command "/kitbuy %player% 0 7"
- remove 1 of held item from player
- on click with paper:
- name of player's tool contains "&e&l飛行剣士 [rank 3]"
- if {%player%.rank} > 2:
- command "/kitbuy %player% 0 10"
- remove 1 of held item from player
- else:
- message "&crank 3 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l花火師 [rank 2]"
- if {%player%.rank} > 1:
- command "/kitbuy %player% 0 11"
- remove 1 of held item from player
- else:
- message "&crank 2 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l妨害厨 [rank 2]"
- if {%player%.rank} > 1:
- command "/kitbuy %player% 0 12"
- remove 1 of held item from player
- else:
- message "&crank 2 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l軽装戦士 [rank 2]"
- if {%player%.rank} > 1:
- command "/kitbuy %player% 0 13"
- remove 1 of held item from player
- else:
- message "&crank 2 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l毒蛇 [rank 3]"
- if {%player%.rank} > 2:
- command "/kitbuy %player% 0 14"
- remove 1 of held item from player
- else:
- message "&crank 3 以上でないと使えません!"
- on click with paper:
- name of player's tool contains "&e&l猛者"
- command "/kitbuy %player% 0 20"
- remove 1 of held item from player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement