跳到正文

Tickrate API

作者:min01

A small library mod for tickrate manipulation.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Tickrate API is simple(?) library mod for manipulate in-game tickrate.
Inspired from Tickrate Changer by Guichaguri

Basic Usage:

Use TickrateUtil class to modify in-game tickrate.
Entities will have a tickrate with highest priority.
Default priority is 1000.
Most of method should be self-explanation.

\- TickrateUtil#setBaseTickrate
Permanently change tickrate of entity.
Only need to call once.

\- TickrateUtil#setTickrate
Temporarily change tickrate of entity.
Need to call every tick.
While you can call this in anywhere, using 0 tickrate inside LivingTickEvent won’t work since event is not fired.
in that case, use below event instead.

\- EntityTickEvent
Unlike LivingTickEvent, this event is fired for every entities, including player.
If tickrate of entity is 0, it will be fired with 20 tickrate.
Fired on both sides.

For create a new instance of TickrateTimer, use TickrateTimer#createDefault or TickrateTimer#createWithTickrate

Pressing F3 + B will show existing tickrate areas in dimension.

Also there is in-game command for none-developer.
For remove area, put -1 tickrate with same coordinate.

/tickrate entity \[\]
/tickrate dimension \[\]
/tickrate area \[\]

常见问题

Tickrate API 支持哪些 Minecraft 版本?

Tickrate API 支持 Minecraft Java 版 1.19.2–1.21.1,共 4 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Tickrate API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

min01 的其他作品

查看全部 →