Creative Killer
Server Creative Killer 是一个面向 Minecraft 1.21.11(仅安全更新)和 26.3 的服务端模组。它添加了一个管理工具,允许服务器操作员即时清除捣乱者或测试游戏机制,同时完全无视创造模式、不死效果以及第三方修改。
由于这是一个服务端模组,玩家无需下载任何内容。
功能特性
- 完全绕过创造模式: 原版 Minecraft 的伤害判定会忽略处于创造模式的玩家。此模组在服务端层面绕过了这一限制。
- 无视不死模组: 代码不使用标准伤害计算,而是采用硬删除实体的方法(
discard()),从而阻止复活图腾、自定义盔甲或第三方“绝对无敌”效果的触发。 - 普通玩家安全: 默认情况下,清除武器**仅限服务器操作员(OP)**持有和使用。即使普通玩家以某种方式获得了该物品,若没有相应权限也无法激活其属性。
- 支持权限 API: 服务器管理员可以向普通玩家授予特定权限,使其能够使用 Creative Killer,而无需将其设为操作员。
- 兼容原版: 该模组不会在游戏注册表中注册新物品,从而避免了客户端崩溃。其逻辑绑定在具有特定名称组件的下界合金剑上。
- 可配置的“使用任意物品击杀”模式: 一种可选的服务端模式允许操作员(或拥有特殊权限的玩家)使用任意物品击杀实体,无需使用 Creative Killer 剑。
- 可配置的 OP 绕过: 服务器操作员可以被强制要求依赖权限而非其 OP 状态——这对于测试权限设置或 OP 权限广泛发放的服务器非常有用。
安装与使用
你可以直接下载它,但如果你想硬核一点……
- 使用命令
./gradlew clean build编译项目。 - 将
build/libs/文件夹中生成的.jar文件放入服务器的mods文件夹。 - 重启服务器。
如何获取武器
以操作员身份加入服务器并运行原版物品给予命令:
/give @s netherite_sword[custom_name='Creative Killer'] 1
此后,只要拥有所需权限,用这把剑击中实体即可激活 Creative Killer。
“使用任意物品击杀”模式
如果在配置文件中启用了 active_all_mode,则持有任意物品的玩家都将成为 Creative Killer。无需特殊剑类——用任何东西(木棍、方块、拳头)进行的普通攻击都会立即消除目标。
配置
配置文件位于 config/creative_killer.json,并在首次启动时自动创建。如果文件缺失或无效,则使用默认值。
| 选项 | 默认值 | 描述 |
|---|---|---|
active_all_mode |
false |
当为 true 时,任何物品在持有者手中均作为 Creative Killer 起作用。当为 false 时,只有名为 Creative Killer 的下界合金剑才有效。 |
permissions_for_ops_needed |
true |
当为 true 时,OP 也必须拥有权限才能使用 Creative Killer —— 仅凭 OP 状态是不够的。当为 false 时,OP 可以绕过权限检查(经典行为)。 |
示例配置
{
"active_all_mode": false,
"permissions_for_ops_needed": true
}
权限
Creative Killer 支持 Fabric Permissions API。
服务器管理员可以向普通玩家授予权限,使其能够在不授予 OP 状态的情况下使用该武器。
| 权限 | 描述 |
|---|---|
creative-killer.kill |
允许击杀所有实体,包括玩家和生物。 |
creative-killer.kill.player |
允许击杀玩家。 |
creative-killer.kill.mob |
允许击杀生物。 |
creative_killer.killWithAnyItem |
当启用 active_all_mode 时,允许使用任意物品作为 Creative Killer。 |
通用权限允许访问玩家和生物目标。具体权限仅允许访问各自对应的目标类型。
creative_killer.killWithAnyItem 权限仅在 active_all_mode 下相关,并且独立于剑类权限进行检查。
OP 保留对 Creative Killer 的访问权限(除非将 permissions_for_ops_needed 设置为 true)。普通玩家需要拥有权限才能激活它。
单人游戏
本模组尚未在单人游戏中进行过兼容性测试,不建议使用,但你当然可以自由尝试。如果你决定在单人游戏中使用此模组,所有提供的说明仍然适用。如果遇到任何问题,请 在 GitHub 上提交 Issue。
支持我
我有足够的钱生活,但如果你希望有更多更新,可以通过 LTC 支持我:
LPdWTvdipEGiYhHCdwnUpga7gR22kvLUFo
Creative Killer
Server Creative Killer is a server-side mod for Minecraft 1.21.11(Secutity updates only) and 26.3. It adds an administration tool. The tool allows server operators to instantly eliminate troublemakers or test game mechanics while completely ignoring Creative Mode, immortality effects, and third-party modifications.
Since this is a server mod, players don't need to download anything.
Features
- Full Creative Mode Bypass: Standard Minecraft damage ignores players in Creative. This mod bypasses this limitation at the server level.
- Ignoring Immortality Mods: Instead of dealing standard damage, the code uses a hard entity removal method (
discard()), which prevents totems, custom armor, or third-party "absolute invulnerability" effects from triggering. - Safety for Regular Players: By default, the elimination weapon works strictly in the hands of server operators (OP). A regular player, even if they somehow obtain this item, cannot activate its property without the required permissions.
- Permission API Support: Server administrators can grant specific permissions to regular players, allowing them to use Creative Killer without making them operators.
- Vanilla Compatibility: The mod does not register new items in the game registry, which eliminates client crashes. The logic is tied to a regular Netherite Sword with a specific name component.
- Configurable "Kill With Any Item" Mode: An optional server-side mode lets operators (or players with the special permission) kill entities with any item, without needing the Creative Killer sword.
- Configurable OP Bypass: Server operators can be forced to rely on permissions instead of their OP status — useful for testing permission setups or for servers where OP is granted broadly.
Installation and Usage
You can just download it, but if you want hardcore...
- Compile the project using the command
./gradlew clean build. - Place the resulting
.jarfile from thebuild/libs/folder into your server'smodsfolder. - Restart the server.
How to Obtain the Weapon
Join the server with operator rights and run the vanilla item-giving command:
/give @s netherite_sword[custom_name='Creative Killer'] 1
After that, hitting an entity with this sword will activate Creative Killer, provided you have the required permissions.
"Kill With Any Item" Mode
If active_all_mode is enabled in the config, any item held by a permitted player becomes a Creative Killer. No special sword is required — a regular hit with anything (a stick, a block, a fist) will instantly eliminate the target.
Configuration
The config file is located at config/creative_killer.json and is created automatically on first launch. If the file is missing or invalid, defaults are used.
| Option | Default | Description |
|---|---|---|
active_all_mode |
false |
When true, any item held by a permitted player acts as a Creative Killer. When false, only the Netherite Sword named Creative Killer works. |
permissions_for_ops_needed |
true |
When true, OPs must also have the permission to use Creative Killer — OP status alone is not enough. When false, OPs bypass permission checks (classic behavior). |
Example config
{
"active_all_mode": false,
"permissions_for_ops_needed": true
}
Permissions
Creative Killer supports the Fabric Permissions API.
Server administrators can grant permissions to regular players, allowing them to use the weapon without granting OP status.
| Permission | Description |
|---|---|
creative-killer.kill |
Allows killing all entities, including players and mobs. |
creative-killer.kill.player |
Allows killing players. |
creative-killer.kill.mob |
Allows killing mobs. |
creative_killer.killWithAnyItem |
Allows using any item as a Creative Killer when active_all_mode is enabled. |
The general permission grants access to both player and mob targets. The specific permissions grant access only to their respective target types.
The creative_killer.killWithAnyItem permission is only relevant in active_all_mode and is checked separately from the sword permissions.
OPs retain access to Creative Killer (unless permissions_for_ops_needed is set to true). Regular players need to have permission to activate it.
Singleplayer
Singleplayer compatibility has not been tested with this mod and is not recommended for use, though you are certainly free to try it. If you do decide to play with this mod in singleplayer, all the provided instructions still apply. Should you encounter any issues, please open an issue on GitHub.
Support me
I have enough money to live, but if you want more updates, you can support me in LTC:
LPdWTvdipEGiYhHCdwnUpga7gR22kvLUFo
下载 Creative killer
下载 Creative killer
下载 Creative killer
下载 Creative killer
下载 Creative killer
下载 Creative killer
下载 Creative killer
更改:
- 添加了对更新版本的检查
- 为变量添加了 final 修饰符
- 添加了安全策略
- 修复了配置问题
版本 1.21.11 已进入仅安全更新状态。
本次发布内容:
- 添加了日志记录功能
- 添加了配置文件
- 添加了「使用任意物品击杀」模组
修复了严重错误
非 OP 玩家 之前可以使用 Creative Killer 击杀生物,现已修复。
添加了权限 API
现在您可以为普通玩家设置使用 Creative Killer 的权限:
creative-killer.kill-- 击杀所有目标(生物 + 玩家)creative-killer.kill.player-- 击杀玩家creative-killer.kill.mob-- 击杀生物
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧