Kyohei

Untitled

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