截图
介绍
中文介绍正在准备中,下面暂时显示原文。
TickScheduler is a lightweight Tick library for mods:
- run code in the future
- repeat actions every N ticks
- execute logic when conditions become true
- persist tasks across world reloads
- offload heavy work to async threads
FULL INFO ON GITHUB:
- https://github.com/Vacuoss/TickScheduler-API
You can use it to:
- temporary effects
- cooldown timers
- delayed world events
- repeating logic loops
- async computations
- persistent timers
- condition-triggered routines
- modular systems requiring precise tick control
Commands:
- /scheduler debug
- /scheduler profiler on
- /scheduler profiler off
- /scheduler profiler stats
- /scheduler save
- /scheduler load
- /scheduler tasks
- /scheduler test <- for test lib
API classes:
SchedulerAPI - High-level scheduling interface
TickScheduler - Internal engine
Types - Task types, context, builder, priorities
PersistentStorage - Save & load persistent tasks
ConditionScheduler- Condition-based logic
TaskRegistry - Restore persistent task types
Example: Custom persistent task
SchedulerAPI.builder()
.delay(60)
.repeat(10)
.maxRuns(5)
.priority(Types.Priority.HIGH)
.persistent()
.type("regenerate")
.submit(ctx -> {
System.out.println("Regenerating at " + ctx.tick);
});
Persistent tasks survive world reloads.
Profiler measures real execution time of scheduled tasks.
Port on NeoForge and on 1.21.1 later maybe…
常见问题
TickScheduler API 支持哪些 Minecraft 版本?
TickScheduler API 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
TickScheduler API 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
avacuoss 的其他作品
查看全部 →
Route Relic
by avacuoss
Tracks your movement and lets you save and visualize routes on maps
4,626
6 个月前
Modrinth
DisableDimensions
by avacuoss
Plugin to disable or enable any dimension, from vanilla,mods and data-packs
1,459
6 个月前
Modrinth
NoLeaks
by avacuoss
Client-side privacy mod that hides coordinates, chunk/block data and other meta information
1,076
4 个月前
Modrinth
NoLeaks
by avacuoss
Client-side privacy mod that hides coordinates, chunk/block data and other meta information
1,076
4 个月前
Modrinth
评论
登录后评论和评分