modochan

checkpoint

Apr 22nd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 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 /item:
  80. trigger:
  81. if player do not have fire charge named "&r&6Go to checkpoint":
  82. give fire charge named "&r&6Go to checkpoint" to player
  83. if player do not have slimeball named "&r&6Go to spawn point":
  84. give slimeball named "&r&6Go to spawn point" to player
Advertisement
Add Comment
Please, Sign In to add comment