Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================
- #/checkpointhelpコマンド
- #===============================================
- command /checkpointhelp:
- description: チェックポイント機能の説明です
- usage: &e/cph
- aliases: /cph
- trigger:
- message "&e&l=====[チェックポイント機能について]====="
- message "&d-Check&6Point-&bとホログラムが上にあるレッドストーンランプは"
- message "&a上に乗って右クリックすることによって&6チェックポイント&aを設定できます"
- message "&9&o/cp&9で前回設定したチェックポイントへTPできます"
- message "&d&o/cp アスレ名&dを打つと、指定したアスレチックで"
- message "&d最後に設定したチェックポイントへTPできます"
- #===============================================
- #/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 {CheckLocation-X} to ceil(player's x-coordinate)+0.5
- set {CheckLocation-Y} to ceil(player's y-coordinate)+0.5
- set {CheckLocation-Z} to ceil(player's z-coordinate)+0.5
- set {CheckLocation} to the location ({CheckLocation-X}, {CheckLocation-Y}, {CheckLocation-Z})
- set {CP-Number.%{CP-Amount}%} to {CheckLocation}
- set {CP-Name.%{CP-Amount}%} to arg 1
- #===============================================
- #/checkpointコマンド
- #===============================================
- command /checkpoint [<text>]:
- description: チェックポイントへTPします
- usage: &e/cp [アスレ名] (アスレ名を入力しなかった場合は最後に設定したCPへTPします)
- aliases: /cp
- trigger:
- set {CheckName} to arg 1
- if arg 1 is not set:
- set {CheckName} to {SaveCPName.%player%}
- loop {CP-Amount} times:
- if {CP-Name.%loop-number%} is {CheckName}:
- teleport player to {PlayerCP.%player%.%{CP-Name.%loop-number%}%}
- #===============================================
- #チェックポイント設定
- #===============================================
- on rightclick on redstone_lamp:
- loop {CP-Amount} times:
- set {CheckLocation-X} to ceil(player's x-coordinate)+0.5
- set {CheckLocation-Y} to ceil(player's y-coordinate)+0.5
- set {CheckLocation-Z} to ceil(player's z-coordinate)+0.5
- set {CheckLocation} to the location ({CheckLocation-X}, {CheckLocation-Y}, {CheckLocation-Z})
- if {CP-Number.%loop-number%} is {CheckLocation}:
- set {PlayerCP.%player%.%{CP-Name.%loop-number%}%} to location of player
- set {SaveCPName.%player%} to {CP-Name.%loop-number%}
- message "&e&l[cp] &6&lチェックポイントを設定しました&7&o(%{CP-Name.%loop-number%}%)"
- play sound "block.note.pling" with pitch 1.5 at player
- play sound "block.note.snare" with pitch 1 at player
- play sound "block.note.basedrum" with pitch 1 at player
- wait 1 minecraft ticks
- play sound "block.note.pling" with pitch 1.2 at player
- play sound "block.note.basedrum" with pitch 1 at player
- wait 1 minecraft ticks
- play sound "block.note.pling" with pitch 1.5 at player
- play sound "block.note.snare" with pitch 0.5 at player
- play sound "block.note.basedrum" with pitch 1 at player
Add Comment
Please, Sign In to add comment