作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1
平台: datapack
标签: game-mechanics utility
Animated Timer (AT) data pack adds an in-game timer via the actionbar field of Minecraft’s HUD. A wide range of functions ensures a simple yet versatile configuration, allowing you to customize your timer according to your likings and needs.
In its original and unmodified state, features include:
AT can be controlled the following way:
| Description | Cheats enabled | Without cheats |
|---|---|---|
| Start / resume the timer | /function at:continue | /trigger continue |
|
| Pause the timer | /function at:pause | /trigger pause |
|
| Set timer to its initial value and start it | /function at:reset | /trigger reset |
|
| Set timer to zero and stay paused | /function at:reboot | /trigger reboot |

In some situations, you may want to alter the current time manually. This can be done either with a function in the at-time namespace or with /trigger:
| Description | Cheats enabled | Without cheats |
|---|---|---|
| Add one second | /function at-time:add/second |
|
| Remove one second | /function at-time:remove/second |
|
| Set seconds | /function at-time:set/seconds/10 | /trigger seconds set 10 |
|
| Add one minute | /function at-time:add/minute |
|
| Remove one minute | /function at-time:remove/minute |
|
| Set minutes | /function at-time:set/minutes/15 | /trigger minutes set 15 |
|
| Add one hour | /function at-time:add/hour |
|
| Remove one hour | /function at-time:remove/hour |
|
| Set hours | /function at-time:set/hours/3 | /trigger hours set 3 |
|
| Add one day | /function at-time:add/day |
|
| Remove one day | /function at-time:remove/day |
|
| Set days | /function at-time:set/days/7 | /trigger days set 7 |
Note: The above functions that include at-time:set are just examples. In fact, a multitude of set functions are available for use.

AT is counting up by default but count-down is also available. You can toggle between both count modes with a single command:
| Description | Cheats enabled | Without cheats |
|---|---|---|
| Switch between timer modes | /function at-conf:mode | /trigger mode |

/reload or through re-joining your worldIf you would like to find out more about configuration or how to integrate this timer into your projects, please check out the AT Docs site.
This project was inspired by German content creator BastiGHG who often uses a similar version of this timer in his videos and streams.
请登录后举报
暂无评论,抢个沙发吧~