7mm

ちぇっくぽいんとすくりぷと~~~~~~~~~~

7mm
Jun 2nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. on rightclick:
  2. if block is a sign:
  3. line 2 of clicked block is "&c&lCheckpoint"
  4. set {_checkName} to line 3 of clicked block
  5. if {checkPoint.%{_checkName}%.%player%} is not set:
  6. add 1 to {checkPointSetting.amount.%player%}
  7. set {checkPointList.%player%::%{checkPointSetting.amount.%player%}%} to {_checkName}
  8. set {checkPoint.%{_checkName}%.%player%} to location of player
  9. set {checkPointSetting.lastTime.%player%} to {_checkName}
  10. message "&e[CP]&bSetting CheckPoint: &a%_checkName%"
  11. execute console command "playsound block.note.pling master @p ~ ~ ~ 1.0 0.5"
  12. wait 2 ticks
  13. execute console command "playsound block.note.pling master @p ~ ~ ~ 1.0 1.0"
  14. else if player held item is nether star named "&6&lCheckPoint":
  15. if {checkPointSetting.lastTime.%player%} is not set:
  16. stop
  17. teleport player to location {checkPoint.%{checkPointSetting.lastTime.%player%}%.%player%}
  18.  
  19. on leftclick:
  20. if {checkPointSetting.listLastTime.%player%} is not set:
  21. set {checkPointSetting.listLastTime.%player%} to 0
  22. if player held item is nether star named "&6&lCheckPoint":
  23.  
  24. command /athlist <number>:
  25. trigger:
  26. set {checkPointSetting.listLastTime.%player%} to arg 1
  27. open chest with 2 rows named "&6&lCP選択"
  28. loop 9 times:
  29. set {_loc} to loop-value
  30. remove 4 from {_loc}
  31. if {checkPointSetting.listLastTime.%player%}+{_loc} > 0:
  32. if {checkPointSetting.listLastTime.%player%}+{_loc} < {checkPointSetting.amount.%player%}+1:
  33. format slot 0 of player with emerald named "%{checkPointList.%player%::%{checkPointSetting.listLastTime.%player%}+{_loc}%}%" to run "cptp %{checkPointSetting.listLastTime.%player%}+{_loc}%"
  34. format slot 9 of player with arrow named "&d&lPrev" to run "/athlist %{checkPointSetting.listLastTime.%player%}-1%"
  35. format slot 17 of player with arrow named "&e&lNext" to run "/athlist %{checkPointSetting.listLastTime.%player%}+1%"
  36.  
  37. command /cptp <number>:
  38. trigger:
  39. teleport player to location {checkPoint.%{checkPointList.%player%::%arg 1%}%.%player%}
Add Comment
Please, Sign In to add comment