TickRate
TickRate 是一个模组,允许你通过扩展原版 /tick 命令的功能来操控不同实体和区块的刻率。
功能
/tick entity <entity> <rate|query|freeze|unfreeze|step|sprint>
/tick chunk <chunk> <rate|query|freeze|unfreeze|step|sprint>
/tick_indicator(客户端命令,用于显示实体/区块 TPS 的叠加层)
详细命令语法说明
适用于 TickRate v0.2+
<entity> 遵循原版的 实体选择器。
<chunk> 有 3 种形式:
<x> <z>
指定单个区块
<x1> <z1> <x2> <z2>
指定一个矩形区域的区块
<x> <z> radius <radius>
指定一个圆形区域的区块,以 <x> <z> 为中心,其中 <radius> 是区块数量
<x> <z> 是 X 和 Z 方块坐标(而非区块坐标)。
适用于 TickRate v0.1.x
/tick entity <rate|query|freeze|unfreeze|step|sprint> <entity> ...
/tick chunk <rate|query|freeze|unfreeze|step|sprint> <chunk> ...
此处的 <chunk> 仅指 XYZ 方块坐标。
前两个命令接受的参数类似于原版 tick 命令。没有特定刻率的实体将遵循其所在区块的刻率。没有特定刻率的区块将遵循服务器的刻率。
/tick rate 会更改服务器的整体刻率,而 /tick freeze|step|sprint 默认情况下会临时覆盖 /tick chunk|entity,除非 <override> 设置为 false。
服务端与客户端
此模组在服务端是必需的,在客户端是可选的。然而,强烈建议在客户端也安装此模组,以获得以下好处:
- 当实体/区块的刻率低于 20 TPS 时,提供流畅的客户端动画
- 允许不同实体以不同的 TPS 进行动画播放
- 通常更良好且更少错误的体验
API (v0.3+)
TickRate 提供了一个 API,供其他模组使用,主要用于编程方式调用 /tick 命令。请查看 此处。
其他内容
- 查看一些基于此模组的精彩 数据包。
- 由于本模组广泛使用了 Mixin,可能存在一些我未考虑到的错误和边缘情况。如果您发现任何问题,可以在 Github 上报告,或者在没有 Github 账户的情况下在 这里 报告。
- 欢迎使用本模组来创建其他有趣的数据包/模组 :)
TickRate
TickRate is a mod that allows you to manipulate the tick rate of different entities and chunks by extending the functionality of the vanilla /tick command.
Features
/tick entity <entity> <rate|query|freeze|unfreeze|step|sprint>
/tick chunk <chunk> <rate|query|freeze|unfreeze|step|sprint>
/tick_indicator (Client-side command to show an overlay of entity/chunk TPS)
Detailed command syntax explanation
For TickRate v0.2+
<entity> simply follows vanilla's entity selector.
<chunk> has 3 forms:
<x> <z>
To specify one single chunk
<x1> <z1> <x2> <z2>
To specify a rectangular area of chunks
<x> <z> radius <radius>
To specify a circular area of chunks, centered at <x> <z> where <radius> is the number of blocks
<x> <z> are X and Z block coordinates (NOT chunk coordinates).
For TickRate v0.1.x
/tick entity <rate|query|freeze|unfreeze|step|sprint> <entity> ...
/tick chunk <rate|query|freeze|unfreeze|step|sprint> <chunk> ...
<chunk> here is just XYZ block coordinates.
The first two commands accept arguments similar to the vanilla tick command. Entities with no specific tick rate will follow the tick rate of the chunk they are currently in. Chunks with no specific tick rate will follow the server's tick rate.
/tick rate will alter the overall tick rate of the server while /tick freeze|step|sprint will temporarily override /tick chunk|entity by default, unless <override> is set to false.
Both server and client side
This mod is required server-side but optional client-side. However, it is strongly encouraged to install the mod on the client-side as well for the following benefits:
- Smooth client animations for entities/chunks ticking below 20 TPS
- Ability for entities to animate at different TPS from one another
- Generally better and less buggy experience
API (v0.3+)
TickRate has an API for other mods to use, mainly to programmatically use the /tick command. Check it out here.
Other stuff
- Check out some cool datapacks based on this mod.
- Due to the pervasive use of mixins in this mod, it is likely that there are bugs and edge cases I have not considered. If you find any, you can report them on Github or here if you don't have a Github account.
- Feel free to use this mod to create other cool datapacks/mods :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧