7mm

Untitled

7mm
Feb 23rd, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #===============================================
  2. #/createcheckpointコマンド
  3. #===============================================
  4. command /createcheckpoint <text> <text>:
  5. description: 運営用のコマンドです
  6. usage: &e/ccp <アスレ名> <チェック名>
  7. aliases: /ccp
  8. permission: skript.admin
  9. permission message: &c実行失敗:権限を持っていません
  10. trigger:
  11. execute player command "/hd create CP_%arg 1%_%arg 2%"
  12. execute player command "/hd setline CP_%arg 1%_%arg 2% 1 &d&l-Check&6&lPoint-"
  13. execute player command "/hd addline CP_%arg 1%_%arg 2% &7[%arg 1%]"
  14. execute player command "/setblock ~ ~-1 ~ redstone_lamp"
  15. add 1 to {CP-Amount}
  16. set {PlayerLocation} to location of player
  17. set {PlayerLocation} to ceil({PlayerLocation})
  18. message "%{PlayerLocation}%"
  19. teleport player to {PlayerLocation}
  20. set {CP-Number.%{CP-Amount}%} to {PlayerLocation}
  21. set {CP-Name.%{CP-Amount}%} to arg 1
  22.  
  23. #===============================================
  24. #/checkpointコマンド
  25. #===============================================
  26. command /checkpoint [<text>]:
  27. description: チェックポイントへTPします
  28. usage: &e/cp [アスレ名] (アスレ名を入力しなかった場合は最後に設定したCPへTPします)
  29. aliases: /cp
  30. trigger:
  31. teleport player to {PlayerCP.%{CP-Name.%arg 1%}%}
  32.  
  33. #===============================================
  34. #/testコマンド
  35. #===============================================
  36. command /test:
  37. trigger:
  38. message "test:%{CP-Amount}%,%{CP-Number.2}%,%{CP-Name.2}%,%{PlayerLocation}%"
  39.  
  40. #===============================================
  41. #チェックポイント設定
  42. #===============================================
  43. on rightclick on redstone_lamp:
  44. loop {CP-Amount} times:
  45. set {PlayerLocation} to location of player
  46. set {PlayerLocation} to ceil({PlayerLocation})
  47. teleport player to {PlayerLocation}
  48. if {CP-Number.%loop-number%} is {PlayerLocation}:
  49. set {PlayerCP.%{CP-Name.%loop-number%}%} to location of player
  50. message "&e&l[cp] &6&lチェックポイントを設定しました&7&o(%{CP-Name.%loop-number%}%)"
  51. else:
  52. message "&e&l[cp] &6&lチェックポイントの設定に失敗しました&7&o(%{CP-Name.%loop-number%}%)"
Advertisement
Add Comment
Please, Sign In to add comment