Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick:
- if block is a sign:
- line 2 of clicked block is "&c&lCheckpoint"
- set {_checkName} to line 3 of clicked block
- if {checkPoint.%{_checkName}%.%player%} is not set:
- add 1 to {checkPointSetting.amount.%player%}
- set {checkPointList.%player%::%{checkPointSetting.amount.%player%}%} to {_checkName}
- set {checkPoint.%{_checkName}%.%player%} to location of player
- set {checkPointSetting.lastTime.%player%} to {_checkName}
- message "&e[CP]&bSetting CheckPoint: &a%_checkName%"
- execute console command "playsound block.note.pling master @p ~ ~ ~ 1.0 0.5"
- wait 2 ticks
- execute console command "playsound block.note.pling master @p ~ ~ ~ 1.0 1.0"
- else if player held item is nether star named "&6&lCheckPoint":
- if {checkPointSetting.lastTime.%player%} is not set:
- stop
- teleport player to location {checkPoint.%{checkPointSetting.lastTime.%player%}%.%player%}
- on leftclick:
- if {checkPointSetting.listLastTime.%player%} is not set:
- set {checkPointSetting.listLastTime.%player%} to 0
- if player held item is nether star named "&6&lCheckPoint":
- command /athlist <number>:
- trigger:
- set {checkPointSetting.listLastTime.%player%} to arg 1
- open chest with 2 rows named "&6&lCP選択"
- loop 9 times:
- set {_loc} to loop-value
- remove 4 from {_loc}
- if {checkPointSetting.listLastTime.%player%}+{_loc} > 0:
- if {checkPointSetting.listLastTime.%player%}+{_loc} < {checkPointSetting.amount.%player%}+1:
- format slot 0 of player with emerald named "%{checkPointList.%player%::%{checkPointSetting.listLastTime.%player%}+{_loc}%}%" to run "cptp %{checkPointSetting.listLastTime.%player%}+{_loc}%"
- format slot 9 of player with arrow named "&d&lPrev" to run "/athlist %{checkPointSetting.listLastTime.%player%}-1%"
- format slot 17 of player with arrow named "&e&lNext" to run "/athlist %{checkPointSetting.listLastTime.%player%}+1%"
- command /cptp <number>:
- trigger:
- teleport player to location {checkPoint.%{checkPointList.%player%::%arg 1%}%.%player%}
Add Comment
Please, Sign In to add comment