Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function translateTimespan(timespan: timespan) :: text:
- set {_result} to "%{_timespan}%"
- replace all "seconds" and "second" with "秒" in {_result}
- replace all "minutes" and "minute" with "分" in {_result}
- replace all "hours" and "hour" with "時間" in {_result}
- replace all "days" and "day" with "日" in {_result}
- replace all "and" with "" in {_result}
- replace all " " with "" in {_result}
- return {_result}
- on walk on redstone block:
- set {%player%.playing} to true
- set {%player%.start} to now
- set {%player%.checkpoint} to player's location
- message "&c&lスタート!" to the player
- on walk on diamond block:
- if {%player%.playing} is true:
- set {%player%.checkpoint} to player's location
- message "&b&lチェックポイントを通過しました!" to the player
- message "&b&l通過タイム: %translateTimespan(difference between now and {%player%.start})%"
- on walk on gold block:
- if {%player%.playing} is true:
- set {%player%.playing} to false
- message "&6&lゴール!" to the player
- message "&6&lタイム: %translateTimespan(difference between now and {%player%.start})%"
- on right click with blaze powder:
- if {%player%.playing} is true:
- teleport player to {%player%.checkpoint}
- message "&4&lチェックポイントに戻しました!" to the player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement