⚔️ HeadHunter – 击杀掉落玩家头颅!
HeadHunter 为你的 Paper 服务器添加了一种自定义附魔,当你击杀其他玩家时,有一定几率掉落他们的头颅。
? 该附魔适用于剑和斧头,可以通过附魔台获取——无需复杂的合成配方!
? 功能特性
- ✅ 自定义 Headhunter 附魔(I–III 级)
- ✅ 支持离线模式——头颅始终保留正确的名称和缓存的皮肤
- ✅ 可通过附魔台获取——在普通附魔过程中随机获得
- ✅ 可配置掉落几率(基础值 + 每级加成)
- ✅ 灵活的配置选项(最高等级、附魔台概率、经验值消耗依赖等)
- ✅ 管理员命令(给予附魔物品、重载配置)
- ✅ 轻量级——无额外依赖,仅依赖 Paper API 1.21.1
? 安装方法
- 下载
.jar 文件。
- 将其放入服务器的
plugins 文件夹中(Paper 1.21.1)。
- 重启服务器(或使用 PlugMan 加载插件)。
- 如有需要,编辑
config.yml 配置文件。
- 完成!?
? 使用方法
对于玩家:
在附魔台上附魔一把剑或斧头。有几率(默认 15%)使该物品获得 Headhunter 附魔。你投入的经验等级越高,可获得的最高附魔等级也越高(I–III 级)。
使用带有 Headhunter 附魔的武器击杀其他玩家时,其头颅可能会掉落——掉落几率取决于附魔等级(默认 5% + 每级增加 5%)。
管理员专用:
/headhunter give <玩家> [等级] – 给予指定等级的猎手钻石剑。
/headhunter reload – 无需重启即可重载配置。
权限节点:
headhunter.give – 允许使用给予命令。
headhunter.reload – 允许使用重载命令。
(默认:仅限操作员。)
⚙️ 配置文件 (config.yml)
# 击杀时的掉落几率(百分比)
chance:
base: 5.0 # 基础等级为 1 时
per-level: 5.0 # 每提升一级额外增加
# 最大附魔等级(1-3)
max-level: 3
附魔台设置
enchant-table:
base-chance: 15.0 # 附魔时获得 Headhunter 的几率
exp-for-max-level: 30 # 获得 III 级所需的经验等级
调试模式(将掉落几率记录到控制台)
debug: false
调整数值以平衡你的服务器。
? 要求
服务器:Paper 1.21.1(或任何 1.21.1 Paper 分支)
Java:21 或更高版本
在线/离线模式:均可正常运行
❓ 常见问题
❓ 玩家能在附魔台的预览中看到该附魔吗?
不能,仅显示原版附魔。附魔完成后,物品上将会出现一条描述文本“Headhunter I/II/III”。
❓ 我可以在铁砧上合并 Headhunter 的书吗?
在当前版本中,通过从物品转移附魔来进行合并。如有需要,可以添加完整的铁砧支持。
❓ 它是否与其他附魔冲突?
不,Headhunter 不与任何原版附魔冲突。
❓ 为什么头颅有时会掉落而没有皮肤?
在离线模式服务器中,如果玩家至少以在线模式登录过一次,皮肤将从缓存中加载。如果不存在皮肤,头颅将显示空白脸孔,但拥有者名称会正确显示。
? 祝你好运!
⚔️ HeadHunter – Player Heads from Kills!
HeadHunter adds a custom enchantment to your Paper server that gives a chance to drop a player's head when you kill them.
? The enchantment works on swords and axes and can be obtained through the enchanting table – no complex recipes!
? Features
- ✅ Custom Headhunter enchantment (levels I–III)
- ✅ Works in offline mode – heads always drop with correct name and cached skin
- ✅ Obtainable via enchanting table – random chance during normal enchanting
- ✅ Configurable drop chance (base + per level)
- ✅ Flexible configuration (max level, table chance, XP cost dependency)
- ✅ Admin commands (give enchanted item, reload config)
- ✅ Lightweight – no dependencies, only Paper API 1.21.1
? Installation
- Download the
.jar file.
- Place it into your server's
plugins folder (Paper 1.21.1).
- Restart the server (or load the plugin with PlugMan).
- Edit
config.yml if needed.
- Done! ?
? How to Play
For players:
Enchant a sword or axe in an enchanting table. There is a chance (default 15%) that the item will receive Headhunter. The more XP levels you spend, the higher the max enchantment level (I–III).
When you kill another player with a Headhunter weapon, their head may drop – chance depends on enchantment level (default 5% + 5% per level).
For admins:
/headhunter give <player> [level] – gives a diamond sword with Headhunter of the specified level.
/headhunter reload – reloads the config without restart.
Permissions:
headhunter.give – access to give command.
headhunter.reload – access to reload command.
(Default: operators only.)
⚙️ Configuration (config.yml)
# Drop chance when killing (in percent)
chance:
base: 5.0 # for level 1
per-level: 5.0 # extra per additional level
# Maximum enchantment level (1-3)
max-level: 3
# Enchanting table settings
enchant-table:
base-chance: 15.0 # chance to get Headhunter when enchanting
exp-for-max-level: 30 # XP levels required to get level III
# Debug mode (logs drop chances to console)
debug: false
Tweak numbers to balance your server.
? Requirements
Server: Paper 1.21.1 (or any 1.21.1 Paper fork)
Java: 21 or higher
Online/Offline mode: both work fine
❓ FAQ
❓ Do players see the enchantment in the enchanting table preview?
No, only vanilla enchants are shown. After enchanting, the item will have a lore line “Headhunter I/II/III”.
❓ Can I combine Headhunter books in an anvil?
In the current version, combining works by transferring the enchantment from an item. Full anvil support can be added upon request.
❓ Does it conflict with other enchantments?
No, Headhunter does not conflict with any vanilla enchantment.
❓ Why does a head sometimes drop without a skin?
On offline-mode servers, the skin is loaded from cache if the player joined at least once with online-mode enabled. If no skin exists, the head will show a blank face but the owner name will be correct.
? Good luck!
评论 0
登录后参与评分
还没有评论,来抢沙发吧