Entity Scheduler 图标

Entity Scheduler

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/entity-scheduler
资源信息

Minecraft 版本: 1.21.4

平台: datapack

标签: library

资源介绍

/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"}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
The lost files

价格:0 墨喵币
下载量:0

查看详情
Advanced Chat

价格:0 墨喵币
下载量:0

查看详情
Evolved Mekanism

价格:0 墨喵币
下载量:0

查看详情
SwetEconomy

价格:0 墨喵币
下载量:0

查看详情