Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. on rightclick:
  2. block is a sign
  3. line 1 of clicked block is "=========="
  4. line 2 of clicked block is "&4checkpoint"
  5. line 3 of clicked block is "&e[rightclick]"
  6. line 4 of clicked block is "=========="
  7. player is on ground
  8. set {checkpoint.%player%.%world%} to location of player
  9. message "&6チェックポイントを設定しました!"
  10. play "NOTE_PLING" specifically to player with pitch 2 and volume 1
  11. log "%player% clicked checkpoint sign at %location of player% in %world%" to "ckeckpoint/checkpoint.log"
  12. if player has permission "skript.admin"
  13. message "&7Location of player not jump"
  14.  
  15. on rightclick:
  16. block is a sign
  17. line 1 of clicked block is "=========="
  18. line 2 of clicked block is "&4checkpoint"
  19. line 3 of clicked block is "&9[rightclick]"
  20. line 4 of clicked block is "=========="
  21. set {checkpoint.%player%.%world%} to location of clicked block
  22. message "&6チェックポイントを設定しました!"
  23. play "NOTE_PLING" specifically to player with pitch 2 and volume 1
  24. log "%player% clicked checkpoint sign at %location of clicked block% in %world%" to "ckeckpoint/checkpoint.log"
  25. if player has permission "skript.admin"
  26. message "&7Location of block"
  27.  
  28. on rightclick:
  29. block is a sign
  30. line 1 of clicked block is "=========="
  31. line 2 of clicked block is "&4checkpoint"
  32. line 3 of clicked block is "&a[rightclick]"
  33. line 4 of clicked block is "=========="
  34. set {checkpoint.%player%.%world%} to location of player
  35. message "&6チェックポイントを設定しました!"
  36. play "NOTE_PLING" specifically to player with pitch 2 and volume 1
  37. log "%player% clicked checkpoint sign at %location of player% in %world%" to "ckeckpoint/checkpoint.log"
  38. if player has permission "skript.admin"
  39. message "&7Location of player"
  40.  
  41. on rightclick with fire charge:
  42. cancel event
  43. if clicked block is sign:
  44. stop
  45. if {checkpoint.%player%.%world%} is set:
  46. teleport player to {checkpoint.%player%.%world%}
  47. else:
  48. message "&cチェックポイントが設定されていません!"
  49.  
  50. on sign change:
  51. line 1 is "-" or "ー"
  52. set line 2 to "&4checkpoint"
  53. set line 3 to "&e[rightclick]"
  54. set line 4 to "=========="
  55. set line 1 to "=========="
  56.  
  57. on sign change:
  58. line 1 is "--" or "ーー"
  59. set line 2 to "&4checkpoint"
  60. set line 3 to "&9[rightclick]"
  61. set line 4 to "=========="
  62. set line 1 to "=========="
  63.  
  64. on sign change:
  65. line 1 is "^" or "^"
  66. set line 2 to "&4checkpoint"
  67. set line 3 to "&a[rightclick]"
  68. set line 4 to "=========="
  69. set line 1 to "=========="
  70.  
  71. on walking on normal quartz block:
  72. player's gamemode is adventure or survival
  73. if {checkpoint.%player%.%world%} is not set:
  74. teleport player to block at world's spawn point
  75. message "&cチェックポイントが設定されていません!スポーンへTPされました!"
  76. else:
  77. teleport player to {checkpoint.%player%.%world%}
  78.  
  79. command /cpd:
  80. description: Delete <player>'s checkpoint
  81. executable by: players
  82. trigger:
  83. delete {checkpoint.%player%.%world%}
  84. message "&cチェックポイントが削除されました。"
  85.  
  86. on walking on block of coal:
  87. player's gamemode is adventure or survival
  88. delete {checkpoint.%player%.%world%}
  89. teleport player to block at world's spawn point
  90. message "&cチェックポイント削除。スポーンへTPされました。"
  91.  
  92. command /adcps:
  93. description: Set player's ckeckpoint
  94. executable by: players
  95. trigger:
  96. player has permission "skript.admin"
  97. set {checkpoint.%player%.%world%} to location of player
  98. message "&6チェックポイントを設定しました!"
  99. play raw sound "note.pling" at player with pitch 2 volume 1
  100.  
  101. command /item:
  102. trigger:
  103. if player do not have fire charge named "&r&6Go to checkpoint":
  104. give fire charge named "&r&6Go to checkpoint" to player
  105. if player do not have slimeball named "&r&6Go to spawn point":
  106. give slimeball named "&r&6Go to spawn point" to player
  107.  
  108. command /cp:
  109. aliases: checkpoint
  110. trigger:
  111. if {checkpoint.%player%.%world%} is not set:
  112. message "&cチェックポイントが設定されていません!"
  113. else:
  114. teleport player to {checkpoint.%player%.%world%}
  115.  
  116. on damage:
  117. y-coordinate of victim is less than 0
  118. cancel event
  119. if {checkpoint.%victim%.%world%} is not set:
  120. teleport victim to block at world's spawn point
  121. else:
  122. teleport victim to {checkpoint.%victim%.%world%}
  123.  
  124. command /cptp <text> [<world>]:
  125. permission: skript.admin
  126. trigger:
  127. if arg 2 is not set:
  128. if {checkpoint.%arg 1%.%world%} is not set:
  129. message "checkpoint is not set"
  130. else:
  131. teleport player to {checkpoint.%arg 1%.%world%}
  132. else:
  133. if {checkpoint.%arg 1%.%arg 2%} is not set:
  134. message "checkpoint is not set"
  135. else:
  136. teleport player to {checkpoint.%arg 1%.%arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement