ChunkTicker
一个轻量级的 Paper 插件,用于永久加载并持续 ticking(模拟运行)选定的区块,这样即使没有玩家在线,你的农场也能继续运作。怪物生成、红石电路激活、村民正常工作。
功能特性
- 完整的实体模拟:怪物生成、村民 AI 运行、红石执行、作物生长
- 支持零玩家在线状态,使铁傀儡、苦力怕和疣猪兽农场能够 24/7 全天候运行
- 支持多世界:主世界、下界、末地以及自定义世界
- 半径选择功能,通过单个命令即可注册一个区块或整个 NxN 区域
- 区块列表存储在
config.yml 中,重启后不会丢失
- 全局开关功能,可暂停所有加载 ticket 而不清除已保存的列表
- 子命令级别的权限控制,兼容 LuckPerms
配置说明
# 是否全局启用 ChunkTicker
global-enabled: true
# Ticket 模式:plugin | forced | both(推荐)
# plugin -> addPluginChunkTicket() (TicketType.PLUGIN, Level 31)
# forced -> setChunkForceLoaded() (TicketType.FORCED, Level 31)
# both -> 同时应用两种 ticket,对怪物农场最可靠
ticket-mode: both
# 自动管理,仅在服务器停止运行时编辑
chunks: []
权限说明
| 权限节点 |
描述 |
默认值 |
chunksticker.admin |
授予以下所有权限 |
op |
chunksticker.set |
使用 /ct set 命令 |
op |
chunksticker.delete |
使用 /ct delete 命令 |
op |
chunksticker.list |
使用 /ct list 命令 |
op |
chunksticker.toggle |
使用 /ct on 和 /ct off 命令 |
op |
chunksticker.reload |
使用 /ct reload 命令 |
op |
chunksticker.status |
使用 /ct status 命令 |
op |
LuckPerms 示例:
/lp group admin permission set chunksticker.admin true
/lp user Steve permission set chunksticker.set true
命令列表
| 命令 |
描述 |
/ct set [radius] |
注册你当前所在的区块,以及指定半径内的区块 |
/ct delete [radius] |
移除你当前所在的区块,以及指定半径内的区块 |
/ct list |
列出所有已注册的区块(世界名称, X, Z 坐标) |
/ct on / off |
全局启用或禁用 ChunkTicker |
/ct reload |
重新加载配置文件并重新应用所有加载 ticket |
/ct status |
显示当前活动状态及各世界的区块数量 |
别名:/ct,完整命令:/chunksticker
环境要求
| 项目 |
要求 |
| 服务端 |
Paper 1.21 至 1.21.x(Purpur 和 Pufferfish 也兼容) |
| Java 版本 |
21+ |
不支持 Spigot 和 Folia。
工作原理
Paper 在实体模拟层级(Level 31)提供了两个持久的区块加载 API:addPluginChunkTicket() 和 setChunkForceLoaded()。当设置为 ticket-mode: both 时,ChunkTicker 会对每个已注册的区块同时应用这两种机制。
Level 31 与 Minecraft 在玩家视距内区块所使用的加载等级相同。实体正常模拟,怪物通过正常的生成周期进行生成,红石电路的运行效果也完全等同于有玩家在附近。
ChunkTicker
A lightweight Paper plugin that keeps selected chunks permanently loaded and fully ticking, so your farms keep running when nobody is online. Mobs spawn, Redstone fires, villagers work.
Features
- Full entity ticking: mobs spawn, villager AI runs, Redstone executes, crops grow
- Works with zero players online, so iron golem, creeper and hoglin farms run 24/7
- Multi-world support for Overworld, Nether, End and custom worlds
- Radius selection to register one chunk or a whole NxN area in a single command
- Chunk list is stored in
config.yml and survives restarts
- Global toggle that pauses all tickets without clearing your list
- Per-subcommand permissions, compatible with LuckPerms
Configuration
# Whether ChunkTicker is globally active
global-enabled: true
# Ticket mode: plugin | forced | both (recommended)
# plugin -> addPluginChunkTicket() (TicketType.PLUGIN, Level 31)
# forced -> setChunkForceLoaded() (TicketType.FORCED, Level 31)
# both -> both tickets applied, most reliable for mob farms
ticket-mode: both
# Managed automatically, only edit while the server is stopped
chunks: []
Permissions
| Permission |
Description |
Default |
chunksticker.admin |
Grants all permissions below |
op |
chunksticker.set |
Use /ct set |
op |
chunksticker.delete |
Use /ct delete |
op |
chunksticker.list |
Use /ct list |
op |
chunksticker.toggle |
Use /ct on and /ct off |
op |
chunksticker.reload |
Use /ct reload |
op |
chunksticker.status |
Use /ct status |
op |
LuckPerms examples:
/lp group admin permission set chunksticker.admin true
/lp user Steve permission set chunksticker.set true
Commands
| Command |
Description |
/ct set [radius] |
Register the chunk you're standing in, plus radius |
/ct delete [radius] |
Remove the chunk you're standing in, plus radius |
/ct list |
List all registered chunks (world, X, Z) |
/ct on / off |
Enable or disable ChunkTicker globally |
/ct reload |
Reload config and re-apply all tickets |
/ct status |
Show active state and chunk count per world |
Alias: /ct, full command: /chunksticker
Requirements
|
|
| Server |
Paper 1.21 to 1.21.x (Purpur and Pufferfish also work) |
| Java |
21+ |
Spigot and Folia are not supported.
How it works
Paper exposes two persistent chunk-ticket APIs at entity-ticking level (Level 31): addPluginChunkTicket() and setChunkForceLoaded(). With ticket-mode: both, ChunkTicker applies both to every registered chunk.
Level 31 is the same load level Minecraft uses for chunks inside a player's view distance. Entities tick, mobs spawn through the normal spawning cycle, and Redstone runs exactly as if a player were standing nearby.
评论 0
登录后参与评分
还没有评论,来抢沙发吧