⌚ 时间(Time)#
#bs.time:help
轻松获取系统时间信息。
启用命令方块
This module uses a command block to get the system time. For the time to be displayed as intended, be sure that both the command_blocks_work and send_command_feedback game rules are set to true.
🔧 函数#
你可以在下方找到此模块中的所有可用函数。
系统时间#
- #bs.time:get
获取对应于实际小时、分钟和秒的系统时间。
- 输出:
分数
$time.hours bs.out:系统时间小时。分数
$time.minutes bs.out:系统时间分钟。分数
$time.seconds bs.out:系统时间秒。
示例:每个人都畏惧的时刻:
function #bs.time:get
tellraw @a [{"text":"It is "},{"score":{"name":"$time.hours","objective":"bs.out"}},{"text":"h, "},{"score":{"name":"$time.minutes","objective":"bs.out"}},{"text":"m and "},{"score":{"name":"$time.seconds","objective":"bs.out"}},{"text":"s. Time to wake up!"}]
制作人员:Aksiome
💬 这对你有帮助吗?
欢迎在下方留下你的问题和反馈!