Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================
- #/createcheckpointコマンド
- #===============================================
- command /createcheckpoint <text> <text>:
- description: 運営用のコマンドです
- usage: &e/ccp <アスレ名> <チェック名>
- aliases: /ccp
- permission: skript.admin
- permission message: &c実行失敗:権限を持っていません
- trigger:
- execute player command "/hd create CP_%arg 1%_%arg 2%"
- execute player command "/hd setline CP_%arg 1%_%arg 2% 1 &d&l-Check&6&lPoint-"
- execute player command "/hd addline CP_%arg 1%_%arg 2% &7[%arg 1%]"
- execute player command "/setblock ~ ~-1 ~ redstone_lamp"
- add 1 to {CP-Amount}
- set {CP-Number.%{CP-Amount}%} to location of player
- set {CP-Name.%{CP-Amount}%} to arg 1
- #===============================================
- #/checkpointコマンド
- #===============================================
- command /checkpoint [<text>]:
- description: チェックポイントへTPします
- usage: &e/cp [アスレ名] (アスレ名を入力しなかった場合は最後に設定したCPへTPします)
- aliases: /cp
- trigger:
- teleport player to {PlayerCP.%{CP-Name.%arg 1%}%}
- #===============================================
- #/testコマンド
- #===============================================
- command /test:
- trigger:
- message "test:%{CP-Amount}%,%{CP-Number.2}%,%{CP-Name.2}%,%{PlayerLocation}%"
- #===============================================
- #チェックポイント設定
- #===============================================
- on rightclick on redstone_lamp:
- loop {CP-Amount} times:
- set {PlayerLocation} to location of player
- if {CP-Number.%loop-number%} is {PlayerLocation}:
- set {PlayerCP.%{CP-Name.%loop-number%}%} to {CP-Number.%loop-number%}
- message "&e&l[cp] &6&lチェックポイントを設定しました&7&o(%{CP-Name.%loop-number%}%)"
- else:
- message "&e&l[cp] &6&lチェックポイントの設定に失敗しました&7&o(%{CP-Name.%loop-number%}%)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement