
一个 Paper 插件,允许你绘制矩形区域,并在每个区域内自动调节每种生物类型的数量上限——经典的“确保农场恰好有 20 头牛,不多不少”工具,但不局限于被动型动物:任何有效的 Minecraft EntityType 都可以分配给某个区域。
详见 实体类型列表
快速开始
- 站在你想管理的区域的一个角落,运行
/zpos1。
- 站在相对的角落,运行
/zpos2。
- (可选)如果
/zpos1 / /zpos2 标记在其他位置(例如在脚手架上),请站在实际地面高度运行 /zpos3——这会告知区块其地板的实际位置,与角落的高度无关。
/zonecreate <name> - 根据你当前的选区创建区块。
/zone set <zone name> <entityType> <amount> <respawnRateSeconds> [leashRadius]
清除区域地板/高度限制上方的方块)。'leashRadius'(默认 10 格)会将任何超出此距离的 本区域自身 的怪物拉回其生成位置 - 0 表示不限制。
权限
| 节点 |
默认权限 |
授予权限 |
'zonespawner.admin' |
op(管理员) |
上述所有权限:创建、配置和删除区域。 |
命令
| 命令 |
说明 |
/zpos1 |
在你当前位置标记区域选择的一个角。 |
/zpos2 |
在你当前位置标记区域选择的另一个角。 |
/zpos3 |
可选 - 将当前所在位置的 Y 坐标设为区域的地板高度。 |
/zonecreate <name> |
根据你当前的 /zpos1//zpos2(以及可选的 /zpos3)选择创建区域。 |
/zone set <name> <entityType> <amount> <respawnRate> [leashRadius] |
为该物种在区域中添加或更新人口规则。 |
/zone remove <name> <entityType> |
从区域中移除某个物种的规则。 |
/zone list |
列出所有区域。 |
/zone info <name> |
显示区域的所属世界、角落、地板、高度限制及规则。 |
/zone delete <name> |
彻底删除一个区域。 |
/zone maxheight <name> <blocksAboveFloor|0> |
限制出生点高于地板的最大高度(0 = 无限制)。 |
/zone floor <name> [y|reset] |
手动设置(或重置)区域的地板 Y 坐标,独立于其角落位置。 |
人口追踪工作原理
本插件生成的所有生物都会通过 PersistentDataContainer 进行标记,标签中包含拥有该生物的领地名称及其精确的生成位置。领地的计数为“世界中属于该领地的、存活的已标记生物总数”,而非当前站在其边界内的数量——因此即使牛走远了,仍会计入上限,并且会被牵引半径拉回。未标记的野生动物(服务器已存在或以其他方式生成的)在任何情况下均不计入。处于未加载区块中的生物对服务器完全不可见,因此如果某生物走到使其所在区块卸载的距离,它将暂时不再被计入或受牵引限制,直到该区块重新加载为止。

A Paper plugin that lets you draw rectangular zones and auto-regulate a
population cap per mob species inside each one - the classic "keep a farm
stocked with exactly 20 cows, no more, no less" tool, but not limited to
passive animals: any valid Minecraft 'EntityType' can be assigned to a zone.
see Entity Type list here
Quick start
-
Stand at one corner of the area you want to manage and run '/zpos1'.
-
Stand at the opposite corner and run '/zpos2'.
-
(Optional) Stand at actual ground level and run '/zpos3' if '/zpos1'/
'/zpos2' were marked somewhere else (e.g. up on scaffolding) - this tells
the zone where its floor really is, independent of the corner heights.
-
'/zonecreate <name>' - creates the zone from your current selection.
-
'/zone set <zone name> <entityType> <amount> <respawnRateSeconds> [leashRadius]'
- configure a population rule, e.g.:
/zone set farm COW 20 30
/zone set farm SHEEP 10 30 8
Every 'respawnRateSeconds', the zone checks each configured species: if
the count is under 'amount', it spawns one more (on solid ground, with 2
clear blocks above, within the zone's floor/height limits). 'leashRadius'
(default 10 blocks) pulls any of this zone's own mobs back if they
wander further than that from where they spawned - 0 means no leash.
Permissions
| Node | Default | Grants |
| 'zonespawner.admin' | op | All of the above: creating, configuring, and deleting zones. |
Commands
| Command | Description |
| '/zpos1' | Mark corner 1 of your zone selection at your current position. |
| '/zpos2' | Mark corner 2 of your zone selection at your current position. |
| '/zpos3' | Optional - mark your current position's Y as the zone's floor height. |
| '/zonecreate <name>' | Create a zone from your current '/zpos1'/'/zpos2' (and optional '/zpos3') selection. |
| '/zone set <name> <entityType> <amount> <respawnRate> [leashRadius]' | Add/update a population rule for that species in the zone. |
| '/zone remove <name> <entityType>' | Remove a species' rule from the zone. |
| '/zone list' | List all zones. |
| '/zone info <name>' | Show a zone's world, corners, floor, height limit, and rules. |
| '/zone delete <name>' | Delete a zone entirely. |
| '/zone maxheight <name> <blocksAboveFloor|0>' | Cap how high above the floor spawns are allowed (0 = unlimited). |
| '/zone floor <name> [y|reset]' | Manually set (or reset) the zone's floor Y, independent of its corners. |
How population tracking works
Every mob this plugin spawns is tagged via 'PersistentDataContainer' with the
name of the zone that owns it, plus its exact spawn location. A zone's count
is "how many living, tagged mobs exist anywhere in the world for this zone" -
not how many are currently standing inside its borders - so a cow that
wanders off still counts against the cap, and it's what the leash radius
pulls back. Untagged wild animals (already on the server, or spawned some
other way) are never counted either way. Mobs in unloaded chunks are
invisible to the server entirely, so one that wanders far enough to unload
its own chunk will briefly stop counting/leashing until that chunk loads
again.
评论 0
登录后参与评分
还没有评论,来抢沙发吧