hEndermanFix
hEndermanFix 是一款轻量级的 Paper/Purpur 插件,用于修复末影人在末影螨附近的锁定行为。
该插件会自动追踪末影人和末影螨,在配置的半径内找到最近的合法末影螨,并保持末影人对其的锁定。它在服务器启动后自动运行,无需命令、权限、数据库或外部插件依赖。
概览
hEndermanFix 只有一个专注的任务:让末影人正确锁定附近的末影螨。
当出现末影螨时,插件会注册它并检查附近的末影人。当出现末影人时,插件会注册它并在同一世界中搜索最近的合法末影螨。如果找到合法的末影螨,插件会将其设置为末影人的目标。
插件还会在启动时扫描已加载的实体,以便在服务器重启后处理现有的末影人和末影螨。
功能
- 自动修复末影人锁定
- 末影螨追踪
- 末影人追踪
- 启动时实体加载
- 最近末影螨选择
- 可配置的目标半径
- 可配置的检测间隔
- 可配置的最大漏检次数
- 可选的标记玩家生成的末影螨
- 可选的强制末影人 AI
- 可选的强制末影人感知状态
- 无效实体的自动清理
- 无需命令
- 无需权限
- 无需数据库
- 无外部插件依赖
锁定机制
插件维护一个轻量级的运行时列表,用于追踪末影人和末影螨。
在每个检测周期中,hEndermanFix 执行以下操作:
- 验证末影人是否仍然有效。
- 搜索最近的合法末影螨。
- 检查末影螨是否在同一世界中。
- 检查配置的目标半径。
- 如果启用,则强制开启 AI 和感知状态。
- 将末影螨设置为末影人的目标。
- 如果漏检次数过多,则将末影人从追踪列表中移除。
当没有剩余的追踪末影人时,重复任务会自动停止。
配置
默认配置如下:
settings:
enable: true
targetRadius: 64.0
checkPeriodTicks: 2
maxMissedChecks: 50
markEndermitePlayerSpawned: true
forceAI: true
forceAware: true
选项说明
| 选项 |
描述 |
settings.enable |
启用或禁用插件逻辑 |
settings.targetRadius |
搜索附近末影螨的最大半径 |
settings.checkPeriodTicks |
检测被追踪末影人的频率(以刻为单位) |
settings.maxMissedChecks |
允许的最大漏检次数,超过后将从追踪列表中移除末影人 |
settings.markEndermitePlayerSpawned |
将被追踪的末影螨标记为玩家生成 |
settings.forceAI |
在锁定前强制开启末影人的 AI |
settings.forceAware |
在锁定前强制开启末影人的感知状态 |
命令
hEndermanFix 没有任何命令。
该插件通过实体追踪和配置自动运行。
权限
hEndermanFix 没有任何权限。
不需要任何玩家或管理员权限。
要求
| 要求 |
状态 |
| Paper 或其兼容分支 |
必需 |
| Minecraft 1.16 或更高版本 |
必需 |
| PlaceholderAPI |
不需要 |
| Vault |
不需要 |
| 数据库 |
不需要 |
由于插件使用了 Paper 的实体添加和移除事件,因此需要 Paper 或其兼容分支。
该插件使用 Java 8 字节码编译。请使用您的 Minecraft 服务器版本所需的 Java 版本。
安装
- 将
hEndermanFix.jar 放入 plugins 文件夹。
- 重启服务器。
- 打开插件文件夹:
plugins/hEndermanFix/
- 如有需要,编辑
config.yml。
- 修改配置后重启服务器。
注意事项
- 插件会在服务器启用时自动启动。
- 没有重载命令。
- 建议编辑配置后重启服务器。
- 较低的
checkPeriodTicks 值会使检测运行得更频繁。
- 较高的
targetRadius 值会增加搜索范围。
- 该插件不会更改生物掉落物、生物上限、生成规则或世界生成。
hEndermanFix
hEndermanFix is a lightweight Paper/Purpur plugin that fixes Enderman targeting behavior around Endermites.
The plugin automatically tracks Endermen and Endermites, finds the nearest valid Endermite within a configured radius, and keeps Endermen targeting it. It works automatically after startup and does not require commands, permissions, databases or external plugin dependencies.
Overview
hEndermanFix has one focused job: keeping Endermen properly locked on nearby Endermites.
When an Endermite appears, the plugin registers it and checks nearby Endermen. When an Enderman appears, the plugin registers it and searches for the closest valid Endermite in the same world. If a valid Endermite is found, the plugin sets it as the Enderman target.
The plugin also scans already loaded entities on startup, so existing Endermen and Endermites can be handled after a server restart.
Features
- Automatic Enderman target fixing
- Endermite tracking
- Enderman tracking
- Startup entity loading
- Nearest Endermite selection
- Configurable target radius
- Configurable check interval
- Configurable missed-check limit
- Optional Endermite player-spawned marking
- Optional AI forcing for Endermen
- Optional aware-state forcing for Endermen
- Automatic cleanup of invalid entities
- No commands required
- No permissions required
- No database required
- No external plugin dependencies
Targeting
The plugin keeps a lightweight runtime list of tracked Endermen and Endermites.
During each check cycle, hEndermanFix:
- Verifies that the Enderman is still valid.
- Searches for the nearest valid Endermite.
- Checks that the Endermite is in the same world.
- Checks the configured target radius.
- Forces AI and aware state if enabled.
- Sets the Endermite as the Enderman target.
- Removes the Enderman from tracking after too many missed checks.
The repeating task stops automatically when there are no tracked Endermen left.
Config
Default configuration:
settings:
enable: true
targetRadius: 64.0
checkPeriodTicks: 2
maxMissedChecks: 50
markEndermitePlayerSpawned: true
forceAI: true
forceAware: true
Options
| Option |
Description |
settings.enable |
Enables or disables the plugin logic |
settings.targetRadius |
Maximum search radius for nearby Endermites |
settings.checkPeriodTicks |
How often tracked Endermen are checked |
settings.maxMissedChecks |
How many missed checks are allowed before an Enderman is removed from tracking |
settings.markEndermitePlayerSpawned |
Marks tracked Endermites as player-spawned |
settings.forceAI |
Forces Enderman AI to enabled before targeting |
settings.forceAware |
Forces Enderman aware state to enabled before targeting |
Commands
hEndermanFix has no commands.
The plugin works automatically through entity tracking and configuration.
Permissions
hEndermanFix has no permissions.
No player or administrator permissions are required.
Requirements
| Requirement |
Status |
| Paper or a compatible Paper fork |
Required |
| Minecraft 1.16 or newer |
Required |
| PlaceholderAPI |
Not required |
| Vault |
Not required |
| Database |
Not required |
Paper or a compatible Paper fork is required because the plugin uses Paper entity add and remove events.
The plugin is compiled for Java 8 bytecode. Use the Java version required by your Minecraft server version.
Install
- Place
hEndermanFix.jar into the plugins folder.
- Restart the server.
- Open the plugin folder:
plugins/hEndermanFix/
- Edit
config.yml if needed.
- Restart the server after changing the configuration.
Notes
- The plugin starts automatically when the server enables it.
- There is no reload command.
- A server restart is recommended after editing the configuration.
- Lower
checkPeriodTicks values make checks run more often.
- Higher
targetRadius values increase the search area.
- The plugin does not change mob drops, mob caps, spawning rules or world generation.
评论 0
登录后参与评分
还没有评论,来抢沙发吧