介绍
/schedule but with entity context.
So the scheduled function runs as (and at) the specified entity.
Beware of performance if used too much at once since it’s
executing all scheduled functions as at the specified entity
Example
# Vanilla
schedule function example:function 20t
The above vanilla function (with no entity context) becomes this
# scheduler
function scheduler:args/set_entity with entity @r
function scheduler:args/set {function: "example_function", ticks: 20}
function scheduler:schedule with storage scheduler:args
A entity scheduled function can also be cleared via an entity or the function name
# clears via an entity
function scheduler:clear_entity with entity @r
# clears via the function name
function scheduler:clear_function {function: "example_function"}
常见问题
Entity Scheduler 支持哪些 Minecraft 版本?
Entity Scheduler 支持 Minecraft Java 版 1.21.4。下载时注意选择和你游戏版本一致的文件。
Entity Scheduler 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
VilleOlof 的其他作品
查看全部 →Äventyret I Vintergatan
A modpack that takes you to an adventure through space with the help of Ad Astra and a ton of other mods!
Äventyret I Vintergatan
Ett modpack till Dunos & Olofs äventyr när dom ska till rymden!
Damage Tick
Increases the tick rate by 2 every time you take damage
评论
登录后评论和评分