RelativityTick
RelativityTick 是一款 Fabric 模组,允许你控制选定区域的游戏刻率,每个区域由一个或多个 Minecraft 区块组成。你可以冻结区域、逐刻推进、以自定义速率运行,并让不同区域拥有独立的时间流逝。
功能
- 按区块创建和管理区域。
- 暂停选定区域中的实体刻、方块实体刻、随机刻和计划刻。
- 逐步执行区域刻,用于调试红石电路、农场和实体行为。
- 以自定义速率运行区域,从而加速或减缓局部游戏进程。
- 显示区域状态、区域 TPS、运行速率和处理时间。
- 为每个区域设置最大刻处理时间。
入门指南
1. 选择区块
在游戏中,在“控制”菜单中将一个按键绑定到 切换区域选择(Toggle region selection)。默认情况下该按键未绑定。你也可以使用 /regionManager chunk select 命令。
- 按下选择键或执行命令以启用区块选择模式。
- 左键点击以选择你当前站立的区块。
- 右键点击以取消选择当前区块。
- 再次按下选择键以禁用选择模式。
选定的区块会显示边界线。选择模式仅记录区块位置;它不会自动创建区域。
2. 创建区域
/regionManager create <region_id>
例如:
/regionManager create test
这将使用所有当前选定的区块创建一个名为 test 的区域。区域 ID 必须是唯一的。
3. 接管
/regionTick takeover <region_id>
区域被接管后,默认处于冻结状态,不再随世界正常刻进行推进。
你也可以站在区域内而不带 ID 运行此命令:
/regionTick takeover
再次运行该命令将释放区域,使其回归正常的世界刻处理。
4. 运行区域
设置区域速率会接管该区域并将其置于运行状态:
/regionTick rate <region_id> <rate>
例如,以默认速率运行区域:
/regionTick rate test 20
速率为区域每秒尝试处理的刻数。常见示例如下:
/regionTick rate test 10
/regionTick rate test 20
/regionTick rate test 100
较高的速率会使区域内的游戏进程进展得更快。实际速率仍受 MSPT 和 TickDuration 限制的影响。
区域控制
接管/释放
/regionTick takeover [region_id]
切换区域的接管状态:
- 未接管的区域会被接管并冻结。
- 已接管的区域会被释放并回归正常的世界刻。
冻结/恢复
/regionTick freeze [region_id]
在区域的冻结和运行状态之间切换:
- 未接管的区域会被接管并冻结。
- 正在运行的区域会被冻结。
- 已冻结的区域会恢复运行。
步进
/regionTick step [region_id] [ticks]
向冻结的区域添加指定数量的待处理刻。如果省略刻数,则添加一克:
/regionTick step test
/regionTick step test 20
这些步进会在服务器刻循环期间处理,并且区域内的实体状态会与客户端同步。
快速步进
/regionTick dash [region_id] [ticks]
立即执行指定数量的区域刻,无需等待后续的服务器刻:
/regionTick dash test 100
限制
/regionManager parameter tickDurationLimit <region_id> <milliseconds>
例如:
/regionManager parameter tickDurationLimit test 10
此限制可防止单个区域在服务器刻中占用过多时间。当区域接近限制时,模组会自动降低其速率。
状态
查看所有区域:
/regionTick status
查看特定区域:
/regionTick status <region_id>
状态输出包括:
- 区域时间。
- 当前状态:Released(未接管)、Frozen(冻结)、Running(运行)或 Stepping(步进)。
- 区块数量。
- 区域 TPS 和目标速率。
- 刻处理时间及其限制。
- 待处理步进的次数。
区块管理
添加区块
/regionManager chunk add <region_id>
将你当前站立的区块添加到指定区域。
如果客户端当前有选定的区块,则会将所有选定的区块添加到该区域。
添加选定区块
/regionManager chunk select
进入区块选择模式。选择区块后,运行:
/regionManager chunk add <region_id>
移除区块
/regionManager chunk remove
从所属区域中移除你当前站立的区块。
配置
查看当前配置:
/relativityTick
最大 MSPT
/relativityTick maxMspt <milliseconds>
例如:
/relativityTick maxMspt 45
默认值为 45 ms。此值限制了区域刻在服务器刻中可使用的最大时间。
区块刻
/relativityTick chunkTick enabled <true|false>
区块刻默认启用。
RelativityTick
RelativityTick is a Fabric mod that allows you to control the game tick rate of selected regions, with each region consisting of one or more Minecraft chunks. You can freeze regions, advance them tick by tick, run them at a custom rate, and give different regions independent time progression.
Features
- Create and manage regions by chunk.
- Pause entity ticks, block entity ticks, random ticks, and scheduled ticks in selected regions.
- Step through region ticks for debugging redstone, farms, and entity behavior.
- Run regions at custom rates to speed up or slow down local gameplay.
- Display region status, region TPS, running rate, and tick processing time.
- Set a maximum tick processing time for each region.
Getting Started
1. Select Chunks
In-game, assign a key to Toggle region selection in the Controls menu. The key is unbound by default. You can also use /regionManager chunk select.
- Press the selection key or execute the command to enable chunk selection mode.
- Left-click to select the chunk you are currently standing in.
- Right-click to deselect the current chunk.
- Press the selection key again to disable selection mode.
Selected chunks are shown with boundary lines. Selection mode only records chunk positions; it does not create a region automatically.
2. Create a Region
/regionManager create <region_id>
For example:
/regionManager create test
This creates a region named test from all currently selected chunks. Region IDs must be unique.
3. Take Over
/regionTick takeover <region_id>
After a region is taken over, it is frozen by default and no longer advances with the normal world tick.
You can also run the command without an ID while standing inside a region:
/regionTick takeover
Running the command again releases the region and returns it to normal world tick processing.
4. Run a Region
Setting a region rate takes over the region and puts it into a running state:
/regionTick rate <region_id> <rate>
For example, to run a region at the default rate:
/regionTick rate test 20
The rate is the number of ticks the region attempts to process per second. Common examples:
/regionTick rate test 10
/regionTick rate test 20
/regionTick rate test 100
Higher rates advance gameplay in the region faster. The actual rate is still affected by the MSPT and TickDuration limits.
Region Control
Take Over/Release
/regionTick takeover [region_id]
Toggles the region takeover state:
- An unreleased region is taken over and frozen.
- A taken-over region is released and returned to normal world ticking.
Freeze/Resume
/regionTick freeze [region_id]
Toggles the region between its frozen and running states:
- An unreleased region is taken over and frozen.
- A running region is frozen.
- A frozen region resumes running.
Stepping
/regionTick step [region_id] [ticks]
Adds the specified number of pending ticks to a frozen region. If the number of ticks is omitted, one tick is added:
/regionTick step test
/regionTick step test 20
The steps are processed during the server tick loop, and entity states in the region are synchronized with clients.
Dash Stepping
/regionTick dash [region_id] [ticks]
Immediately executes the specified number of region ticks without waiting for subsequent server ticks:
/regionTick dash test 100
Limit
/regionManager parameter tickDurationLimit <region_id> <milliseconds>
For example:
/regionManager parameter tickDurationLimit test 10
This limit prevents a single region from using too much time during a server tick. The mod automatically slows a region down when it approaches the limit.
Status
View all regions:
/regionTick status
View a specific region:
/regionTick status <region_id>
The status output includes:
- Region time.
- Current state: Released, Frozen, Running, or Stepping.
- Number of chunks.
- Region TPS and target rate.
- Tick processing time and its limit.
- Number of pending steps.
Chunk Management
Add a Chunk
/regionManager chunk add <region_id>
Adds the chunk you are currently standing in to the specified region.
If chunks are currently selected in the client, all selected chunks are added to the region instead.
Add Selected Chunks
/regionManager chunk select
Enters chunk selection mode. After selecting chunks, run:
/regionManager chunk add <region_id>
Remove a Chunk
/regionManager chunk remove
Removes the chunk you are currently standing in from its region.
Configuration
View the current configuration:
/relativityTick
Maximum MSPT
/relativityTick maxMspt <milliseconds>
For example:
/relativityTick maxMspt 45
The default value is 45 ms. This value limits how much time region ticks may use during a server tick.
Chunk Ticking
/relativityTick chunkTick enabled <true|false>
Chunk ticking is enabled by default.
评论 0
登录后参与评分
还没有评论,来抢沙发吧