Advertisement
CREAMPAN0408

Untitled

Feb 26th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. on right click on a sign:
  2. line 1 of the clicked block is "&f============"
  3. line 2 of the clicked block is "&e<<CheckPoint>>"
  4. line 3 of the clicked block is "&b<<Rightclick>>"
  5. line 4 of the clicked block is "&f============":
  6. player is on ground
  7. set {%region at player%.%player%.cp} to location of player
  8. message "&e<<チェックポイントを設定しました!!>>"
  9. play sound "BLOCK_NOTE_CHIME" to player with volume 3 and pitch 10
  10. if {blockcp.%player%} is equal to 2:
  11. set {blockcp.%player%} to 1
  12. stop
  13.  
  14. on right click on a sign:
  15. line 1 of the clicked block is "&f============"
  16. line 2 of the clicked block is "&b<<CheckPoint>>"
  17. line 3 of the clicked block is "&e<<Rightclick>>"
  18. line 4 of the clicked block is "&f============":
  19. set {%region at player%.%player%.blockcp} to location of clicked block
  20. message "&e<<チェックポイントを設定しました!!>>"
  21. play sound "BLOCK_NOTE_CHIME" to player with volume 3 and pitch 10
  22. if {blockcp.%player%} is not set:
  23. set {blockcp.%player%} to 2
  24. stop
  25.  
  26. on sign change:
  27. line 1 is "cp"
  28. set line 4 to "&f============"
  29. set line 1 to "&f============"
  30. set line 3 to "&b<<Rightclick>>"
  31. set line 2 to "&e<<CheckPoint>>"
  32.  
  33. on rightclick with clock:
  34. if {blockcp.%player%} is equal to 1:
  35. teleport player to {%region at player%.%player%.blockcp}
  36. if {blockcp.%player%} is equal to 2:
  37. teleport player to {%region at player%.%player%.blockcp}
  38. if {blockcp.%player%} is not set:
  39. teleport player to {%region at player%.%player%.blockcp}
  40.  
  41. command /cp:
  42. trigger:
  43. if player do not have clock named "Checkpoint":
  44. give clock named "&l&e<<Checkpoint>>" to player
  45.  
  46. on sign change:
  47. line 1 is "air"
  48. set line 4 to "&f============"
  49. set line 1 to "&f============"
  50. set line 3 to "&e<<Rightclick>>"
  51. set line 2 to "&b<<CheckPoint>>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement