Advertisement
Kyohei

Untitled

Jul 28th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. on sign change:
  2. line 1 is "cp"
  3. line 2 is "player"
  4. set line 1 to "&l&aCheckPoint"
  5. set line 2 to "&2RightClick"
  6. set line 4 to "&5On &5gGround
  7.  
  8. on rightclick:
  9. clicked block is sign
  10. if line 4 of clicked block is "&7Player":
  11. if player is on ground:
  12. delete {checkpoint.%world%.%UUID of player%}
  13. wait a tick
  14. set {checkpoint.%world%.%UUID of player%} to location of player
  15. message "&7[&aTM&6CheckPoint&7] &aチェックポイントを設定しました。&7(%{name}%)"
  16. command "/execute %player% ~ ~ ~ playsound minecraft:entity.player.levelup master %player%"
  17. stop
  18. else:
  19. message "&7[&aTM&6CheckPoint&7] &l&c空中でチェックポイントを設定することは出来ません。"
  20. stop
  21.  
  22. on rightclick with fire charge:
  23. cancel event
  24. if clicked block is sign:
  25. stop
  26. if {checkpoint.%world%.%UUID of player%} is set:
  27. teleport player to {checkpoint.%world%.%UUID of player%}
  28.  
  29. command /cpd:
  30. description: Delete <player>'s checkpoint
  31. executable by: players
  32. trigger:
  33. delete {checkpoint.%world%.%UUID of player%}
  34. message "&cチェックポイントが削除されました。"
  35.  
  36. on walking on block of coal:
  37. player's gamemode is adventure or survival
  38. delete {checkpoint.%world%.%UUID of player%}
  39. teleport player to block at world's spawn point
  40. message "&cチェックポイント削除。スポーンへTPされました。"
  41.  
  42. command /adcps:
  43. description: Set player's ckeckpoint
  44. executable by: players
  45. trigger:
  46. player has permission "skript.admin"
  47. set {checkpoint.%world%.%UUID of player%} to location of player
  48. message "&6チェックポイントを設定しました!"
  49. play raw sound "note.pling" at player with pitch 2 volume 1
  50.  
  51. command /item:
  52. trigger:
  53. if player do not have fire charge named "&r&6Go to checkpoint":
  54. give fire charge named "&r&6Go to checkpoint" to player
  55. if player do not have slimeball named "&r&6Go to spawn point":
  56. give slimeball named "&r&6Go to spawn point" to player
  57.  
  58. command /cp:
  59. aliases: checkpoint
  60. trigger:
  61. if {checkpoint.%world%.%UUID of player%} is not set:
  62. message "&cチェックポイントが設定されていません!"
  63.  
  64. on damage:
  65. y-coordinate of victim is less than 0
  66. cancel event
  67. if {checkpoint.%victim%.%world%} is not set:
  68. teleport victim to block at world's spawn point
  69. else:
  70. teleport victim to {checkpoint.%victim%.%world%}
  71.  
  72. command /cptp <text> [<world>]:
  73. permission: skript.admin
  74. trigger:
  75. if arg 2 is not set:
  76. if {checkpoint.%arg 1%.%world%} is not set:
  77. message "checkpoint is not set"
  78. else:
  79. teleport player to {checkpoint.%arg 1%.%world%}
  80. else:
  81. if {checkpoint.%arg 1%.%arg 2%} is not set:
  82. message "checkpoint is not set"
  83. else:
  84. teleport player to {checkpoint.%arg 1%.%arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement