Simple Player Heads
自定义玩家头颅掉落条件——在死亡时、击杀时,或仅在攻击者使用了抢夺附魔的武器时。
功能
- 可自定义掉落: 选择是否在自杀、被其他玩家击杀以及其他所有死亡情况下掉落头颅。
- 基于抢夺附魔的掉落: 可选地使玩家击杀的头颅掉落取决于攻击者的抢夺等级,每个等级(无 / I / II / III)有独立的掉落概率。
- 游戏内配置界面(Fabric):从 Mod Menu 界面编辑所有设置。1.20+ 使用 YACL,1.18–1.19 使用 Cloth Config —— 为可选组件,未捆绑;即使没有它,也可以通过配置文件工作。
- 兼容海盗模式和其他更换皮肤的模组。
依赖项(Fabric 模组)
可选(用于游戏内配置界面):Mod Menu 加上 YACL(1.20+)或 Cloth Config(1.18–1.19)。
服务端插件无需任何依赖项。
配置
Fabric 配置文件:config/simple-player-heads.toml。插件使用 plugins/SimplePlayerHeads/config.yml,选项相同。
selfKill = true
playerKill = true
otherDeaths = true
[playerKillLooting]
enabled = false
noLooting = 0.0
looting1 = 0.33
looting2 = 0.67
looting3 = 1.0
选项说明:
selfKill — 自杀时掉落头颅。
playerKill — 被其他玩家击杀时掉落头颅。
otherDeaths — 所有其他死亡情况掉落头颅。
playerKillLooting.enabled — 当设为 true 时,玩家击杀的头颅掉落将使用下方的按抢夺等级划分的概率,而不是始终掉落。需要 playerKill = true。
playerKillLooting.noLooting / looting1 / looting2 / looting3 — 当攻击者的武器分别没有抢夺 / 抢夺 I / II / III 时的掉落概率(范围 0.0–1.0)。抢夺等级高于 III 时使用 looting3 的值。例如:noLooting = 0.0,looting3 = 1.0 → 仅当攻击者使用了抢夺 III 的武器时才会掉落头颅。
默认值保留了经典行为:enabled = false 表示玩家击杀时头颅总是掉落(开启该选项后,抢夺概率才生效)。
安装
Fabric 模组: 下载最新的 jar 文件并放入你的 mods 文件夹(需要 Fabric API + Fabric Language Kotlin)。若需游戏内配置界面,还需安装 Mod Menu 和 YACL(1.20+)或 Cloth Config(1.18–1.19)。
服务端插件: 下载 Bukkit/Paper jar 文件(按 Bukkit / Paper / Folia 加载器筛选)并放入服务器的 plugins 文件夹。编辑配置文件后重启或重载服务器以应用更改。
Simple Player Heads
Customize when player heads drop — on death, on kill, or only when the killer used a
Looting weapon.
Features
- Customizable drops: choose whether a head drops on self‑kill, on a kill by another
player, and on all other deaths.
- Looting‑based drops: optionally make a player‑kill head drop depend on the killer's
Looting level, with a separate drop chance per level (none / I / II / III).
- In‑game config screen (Fabric): edit everything from the Mod Menu screen. Uses
YACL on 1.20+ or Cloth Config
on 1.18–1.19 — optional, not bundled; the file config works without it.
- Works with pirate mode and other skin‑changing mods.
Dependencies (Fabric mod)
Optional (for the in‑game config screen): Mod Menu
plus YACL (1.20+) or Cloth Config (1.18–1.19).
The server plugin has no dependencies.
Configuration
Fabric config file: config/simple-player-heads.toml. The plugin uses
plugins/SimplePlayerHeads/config.yml with the same options.
selfKill = true
playerKill = true
otherDeaths = true
[playerKillLooting]
enabled = false
noLooting = 0.0
looting1 = 0.33
looting2 = 0.67
looting3 = 1.0
Options:
selfKill — head drops on self‑kill.
playerKill — head drops when killed by another player.
otherDeaths — head drops on all other deaths.
playerKillLooting.enabled — when true, a player‑kill head drop uses the per‑Looting
chances below instead of always dropping. Requires playerKill = true.
playerKillLooting.noLooting / looting1 / looting2 / looting3 — drop chance
(0.0–1.0) when the killer's weapon has no Looting / Looting I / II / III. Looting
above III uses looting3. Example: noLooting = 0.0, looting3 = 1.0 → a head drops
only when the killer used a Looting III weapon.
Defaults keep the classic behavior: enabled = false means heads always drop on a
player kill (the Looting chances only apply once you turn it on).
Installation
Fabric mod: download the latest jar and drop it in your mods folder (needs Fabric
API + Fabric Language Kotlin). For the in‑game config screen, also install Mod Menu and
YACL (1.20+) or Cloth Config (1.18–1.19).
Server plugin: download the Bukkit/Paper jar (filter by the Bukkit / Paper / Folia
loaders) and drop it in your server's plugins folder. Edit the config and restart or
reload to apply.
评论 0
登录后参与评分
还没有评论,来抢沙发吧