兼容性
已在 Spigot-1.14、1.15、1.16、1.19、1.20、1.20.6、1.21、1.21.3、1.21.5 上测试。
简介
检测并控制自定义村庄。
这个插件解决了我在创建自己的村庄时遇到的痛点。我建造了一个足够大的村庄,但其人口却失控了。村民似乎无限增长。猫会离开村庄,且仅在村庄内受到数量限制。傀儡虽然遵循文档规定的规则,但我的天啊,它们依然随着村民的无限增长而跟随。最终,地图上出现了几百个非法实体的混乱局面。幸运的是,在这里我可以修复这个问题。
功能
- 基于村民的位置检测村庄
- 计算村庄中的床的数量,并根据床的数量限制村民的人口
- 严格根据文档限制家养猫(未驯化)和铁傀儡(非玩家生成)的数量
限制机制
所有决定村庄属性的实体:床、傀儡、猫、村民——都会根据 X、Y 和 Z 坐标聚类为 32x12x32 大小的集群。
在半径为 1 的正方形范围内,所有集群组成一个村庄。
例如,如果以下 X、Y 和 Z 坐标中有四个村民:
- 村民 #1:100, 50, 100(集群坐标 3, 4, 3)
- 村民 #2:150, 50, 150(集群坐标 4, 4, 4)
- 村民 #3:200, 50, 200(集群坐标 6, 4, 6)
- 村民 #4:250, 50, 250(集群坐标 7, 4, 7)
#1 和 #2 村民被视为同一村庄的村民。#3 和 #4 村民属于另一个村庄。
然后,每个作为集群集合的村庄都会强制执行其自身的实体数量限制。
命令
customvillage reload- 从磁盘重新加载配置customvillage info [@type : villagers(default) | golems | cats | beds] [@loaded : fully | partially(default) | no] [@scale; default=8]- 显示信息customvillage optimize- 移除多余的村民、铁傀儡和猫
权限
-
访问 'reload' 命令:
customvillage.reload(默认:op) -
访问 'info' 命令:
customdamage.info(默认:op) -
访问 'optimize' 命令:
customdamage.optimize(默认:op)
配置
作者
我很乐意添加一些功能或修复漏洞。我的邮箱:uprial@gmail.com。
相关链接
相关项目
- AutoMinecart:Bukkit Dev GitHub, Spigot
- CustomBazookas:Bukkit Dev GitHub, Spigot
- CustomCreatures:Bukkit Dev, GitHub, Spigot
- CustomNukes:Bukkit Dev, GitHub, Spigot
- CustomRecipes:Bukkit Dev, GitHub, Spigot
- MasochisticSurvival:Bukkit Dev, GitHub, Spigot
- TakeAim:Bukkit Dev, GitHub, Spigot
Compatibility
Tested on Spigot-1.14, 1.15, 1.16, 1.19, 1.20, 1.20.6, 1.21, 1.21.3, 1.21.5.
Introduction
Detect and control custom villages.
This plugin takes care of the pain I experienced when I created my own village. I created a big enough village, and its population took out of control. Villagers seemed to grow infinitely. Cats were leaving the village and were limited in count in villages only. Golems were obedient and followed the documented rules, but my god, they anyway followed the infinity of villagers. I ended up with a mess of hundreds of illegal entities on the map. Fortunately, here I could fix the issue.
Features
- Detect villages based on locations of villagers
- Calculate a number of beds in the villages and limit villagers population considering the beds
- Limit population of cats (not tamed) and iron golems (non-player created) strongly according to the documentation
Limit mechanics.
All village-decisive entities: beds, golems, cats, villagers - are clustered in clusters of 32x12x32 size for X, Y, and Z coordinates.
All clusters in a square radius of 1 form one village.
For example, if there are four villagers in the following X, Y, and Z coordinates:
- Villager #1: 100, 50, 100 (cluster coordinates 3, 4, 3)
- Villager #2: 150, 50, 150 (cluster coordinates 4, 4, 4)
- Villager #3: 200, 50, 200 (cluster coordinates 6, 4, 6)
- Villager #4: 250, 50, 250 (cluster coordinates 7, 4, 7)
The #1 and #2 villagers are considered as the villagers of the same village. The #3 and #4 villagers belong to another village.
Then, each village as a set of clusters enforces its own limit of entities.
Commands
customvillage reload- reload config from diskcustomvillage info info [@type : villagers(default) | golems | cats | beds] [@loaded : fully | partially(default) | no] [@scale; default=8]- show informationcustomvillage optimize- removes excessive villagers, iron golems and cats
Permissions
-
Access to 'reload' command:
customvillage.reload(default: op) -
Access to 'info' command:
customdamage.info(default: op) -
Access to 'optimize' command:
customdamage.optimize(default: op)
Configuration
Author
I will be happy to add some features or fix bugs. My mail: uprial@gmail.com.
Useful links
Related projects
- AutoMinecart: Bukkit Dev GitHub, Spigot
- CustomBazookas: Bukkit Dev GitHub, Spigot
- CustomCreatures: Bukkit Dev, GitHub, Spigot
- CustomNukes: Bukkit Dev, GitHub, Spigot
- CustomRecipes: Bukkit Dev, GitHub, Spigot
- MasochisticSurvival: Bukkit Dev, GitHub, Spigot
- TakeAim: Bukkit Dev, GitHub, Spigot
下载 Custom Village
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Village
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Village
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Village
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Village
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Custom Village
下载 Custom Village
下载 Custom Village
下载 Custom Village
下载 Custom Village
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
改进
- 添加了用于后续调试的耗时警告
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。

评论 0
登录后参与评分
还没有评论,来抢沙发吧