【发布时间】:2021-12-13 05:42:08
【问题描述】:
有没有办法像在 python 中一样将 time.sleep 放入 Minecraft 基岩的 Minecraft 函数中? 例如:
/say this is a test!
time.sleep(5)
/say This is executed after the time.sleep
【问题讨论】:
标签: minecraft
有没有办法像在 python 中一样将 time.sleep 放入 Minecraft 基岩的 Minecraft 函数中? 例如:
/say this is a test!
time.sleep(5)
/say This is executed after the time.sleep
【问题讨论】:
标签: minecraft
请说明 minecraft 函数是什么。
我假设您使用的是 Minecraft:Java 版,要在 Java 中添加延迟,您可以使用 java.util.concurrent.TimeUnit
TimeUnit.SECONDS.sleep(1); 休眠一秒。
TimeUnit.MINUTE.sleep(1); 休眠一分钟。
【讨论】:
您可以制作睡眠功能,但不能制作您尝试的方式。我做了一个video 来解释我的意思。
给自己一个命令方块:
/give @s command_block
放置它并将您的命令放入窗口中。
在它旁边放置一个命令块并将第二个命令放在窗口中。
将预设更改为始终处于活动状态和有条件的重复。
将刻度值放在最后一个框中。 20 个滴答等于 1 秒。
【讨论】:
使用漏斗时钟计时,就像一个魅力
【讨论】: