LifeWars
你需要知道的信息!
LifeWars 是一款我自己开发的 Minecraft 插件,它将流行的生命窃取(lifesteal)机制引入到你的服务器或游戏玩法中。
LifeWars 设计为高度可配置,拥有 25+ 个配置选项,允许你自定义生命窃取在服务器上的工作方式。
我制作 LifeWars 的原因
我制作 LifeWars 是因为我想要一款能够真正用于我自己的社区和服务器的生命窃取插件。
我还希望制作一款能让服务器管理员对生命窃取体验拥有更多控制权的东西,而不是被束缚在一个固定的系统中。
你可以做的事情
(这只是插件的一小部分功能!)
- ✅ 启用/禁用整个插件
- ✅ 启用/禁用复活功能
- ✅ 启用/禁用心之道具的使用和装备
- ✅ 设置最大生命值
- ✅ 设置复活时的生命值
- ✅ 切换命令开关
- ✅ 启用/禁用自定义配方
- ✅ 启用/禁用心之道具配方
- ✅ 启用/禁用复活配方
- ✅ 设置自定义消息
- ✅ 更改物品名称
- ✅ 更改物品描述(Lore)
- ✅ 自定义心之道具
- ✅ 自定义复活道具
- ✅ 自定义合成配方
- ✅ 在游戏内直接编辑配方
- ✅ 通过管理员命令生成 LifeWars 物品
- ✅ 管理已淘汰/被封禁的玩家
- ✅ 配置插件的几乎所有部分
自定义合成配方
LifeWars 现在支持完全可配置的合成配方。
你可以自定义以下内容的布局:
|- 心之道具配方:
|- 复活配方:
配方也可以通过游戏内的配方编辑器进行编辑,允许服务器管理员在不手动编辑配置文件的情况下更改配方。
命令
LifeWars 包含多个供玩家和管理员使用的命令。
大多数命令都与管理员相关,允许服务器管理员管理生命值、复活、配置、配方以及 LifeWars 物品。
部分可用功能包括:
- 管理员复活
- 淘汰
- 设置生命值
- 重载配置
- 编辑配置
- 管理员物品生成
- 配方编辑
权限
- LifeWars.adminrevive.use
- LifeWars.EditConfig.use
- LifeWars.sethealth.use
- LifeWars.eliminate.use
- LifeWars.reloadconfig.use
- LifeWars.adminspawnitem.use
如何使用物品
|- 复活道具
步骤 1
合成复活道具。
根据你的配置,由于 Minecraft 无法识别自定义的心之道具成分,该配方可能不会出现在合成配方书中。
步骤 2
将复活道具重命名为你想要复活的已淘汰玩家的名字。
步骤 3
右键点击已重命名的复活道具。
如果目标玩家处于被淘汰状态,他们将被复活。
|- 心之道具
步骤 1
使用配置的配方合成心之道具。
步骤 2
完成!
你可以用心之道具来:
- ❤️ 给其他玩家增加生命值
- ❤️ 装备/使用心之道具
- ❤️ 在复活配方中使用心之道具
心之系统
心之道具是 LifeWars 生命窃取系统中的主要物品。
玩家可以配置心之道具的工作方式,包括是否可以使用或装备,以及玩家最多能有多少生命值。
LifeWars 还支持自定义物品模型和 CustomModelData,允许资源包赋予心之道具完全自定义的外观。
淘汰与复活
当玩家达到配置的淘汰条件时,他们可以被添加到 LifeWars 的封禁/淘汰玩家系统中。
该插件包括:
- 玩家淘汰
- 自动封禁处理
- 封禁和踢出功能
- 通过复活系统解封
- 离线玩家处理
- 复活道具验证
- 可配置的复活生命值
被封禁的玩家存储在一个专用的 BannedPlayers.yml 文件中。
配置
LifeWars 围绕配置构建。
你可以编辑插件的 config.yml 来更改以下内容:
- 最大生命值
- 复活生命值
- 心之道具设置
- 复活设置
- 物品名称
- 物品描述(Lore)
- 消息
- 合成配方
- PvP 限制
- 封禁物品
- 插件功能
配置中还包含注释,解释不同设置的用途。
基础配置
features:
reviveBookEnabled: true
heartUseEnabled: true
withdrawCommandEnabled: true
gameplay:
maxHealth: 40
reviveHealth: 8
dropHeartsIfMax: true
items:
# Heart
heartName: "<bold><#d9252e>Heart"
heartLore: "<gray>Right-click to use!"
# New string-based item model key (1.21+ style). Example: "lifewars:defaultheart"
# If set, this is used instead of heartCustomModelData.
heartItemModel: "lifewars_defaultheart"
heartCustomModelData: -1
# Revive Book
reviveBookName: "<aqua>Revive Book"
reviveBookLore: "<dark_aqua>Rename this book to the player name you want to revive, then right-click to revive that player!"
recipes:
customRecipesEnabled: true
heartRecipeEnabled: true
reviveBookRecipeEnabled: true
# Recipe layouts going from left to right, top to bottom, and empty spaces are represented by AIR
layouts:
heart:
grid:
- DIAMOND_BLOCK
- GOLD_BLOCK
- DIAMOND_BLOCK
- NETHERITE_INGOT
- TOTEM_OF_UNDYING
- NETHERITE_INGOT
- DIAMOND_BLOCK
- GOLD_BLOCK
- DIAMOND_BLOCK
revivebook:
grid:
- DIAMOND_BLOCK
- CUSTOM_HEART
- GOLD_BLOCK
- CUSTOM_HEART
- NETHER_STAR
- CUSTOM_HEART
- GOLD_BLOCK
- CUSTOM_HEART
- DIAMOND_BLOCK
messages: prefix: "<dark_gray>[<red>Life<gold>Wars<dark_gray>]" announceAdminRevive: true usageError: "<red>用法:%usage%" needToBePlayer: "<red>你必须是一名玩家才能使用此命令!" playerNotFound: "<red>未找到该玩家!" disabledInConfigMsg: "<red>此功能在配置文件中已禁用!" eliminateSuccess: "<gray>你已将 <red>%player%<gray> 淘汰!" reviveSuccess: "<gray>你已复活 <red>%player%<gray>!" onlyReviveElimPlayers: "<red>你只能复活已被淘汰的玩家!" eliminatedJoin: "<red>你的生命值已耗尽!" eliminatedReason: "<dark_red>生命次数用尽。" setHeartsConfirmSingle: "<gray>将 <red>%player%<gray> 的生命值设置为 <red>%amount%<gray> 颗心" reloadMsg: "<gray>插件已重新加载!" noWithdraw: "<red>如果你再移除一颗心,你将被淘汰!" inventoryFull: "<red>你的背包已满!无法移除心!" withdrawMin: "<red>你不能移除少于 1 颗心!" successWithdraw: "<gray>你获得了 %amount%x <red>%item%<gray>!" maxHeartLimitReached: "<red>你已经达到了 %limit% 颗心的上限!" recipeNotCraftable: "<red>你无法合成此物品!" recipeNotFound: "<red>该配方不存在!" recipeSavedActionbar: "<green>配方已保存!" configKeyNotFound: "<red>未找到配置键:%key%" configUpdated: "<gray>配置值 <red>%key%<gray> 已设置为 <red>%value%"
配方编辑器
LifeWars 包含一个游戏内配方编辑器。
服务器管理员可以:
- 编辑配方布局
- 更改配方材料
- 配置心(Heart)相关配方
- 配置复活(Revive)相关配方
- 直接从游戏中保存配方
- 无需修改插件本身即可重新加载配方
这使得为服务器自定义 LifeWars 变得更加容易。
资源包支持
LifeWars 支持其物品的自定义模型。
心(Heart)物品可以使用:
- 自定义物品模型
- CustomModelData
- CustomModelData 字符串
这允许资源包赋予 LifeWars 物品独特的外观。
联系我
如果你有任何关于 LifeWars 的建议、漏洞报告或想法,欢迎通过以下 Discord 链接联系我:
LifeWars
What You Should Know!
LifeWars is my own Minecraft plugin that introduces the popular lifesteal mechanic to your server or gameplay.
LifeWars is designed to be highly configurable, with 25+ configuration options allowing you to customize how lifesteal works on your server.
Why I Made LifeWars
I made LifeWars because I wanted a lifesteal plugin that I could actually use for my own communities and servers.
I also wanted to make something that gives server owners more control over their lifesteal experience instead of being stuck with a fixed system.
Things YOU Can Do
(Only a small part of the plugin!)
- ✅ Enable / Disable the entire plugin
- ✅ Enable / Disable Reviving
- ✅ Enable / Disable Heart usage and equipping
- ✅ Set Maximum Health
- ✅ Set Revive Health
- ✅ Toggle Commands
- ✅ Enable / Disable Custom Recipes
- ✅ Enable / Disable Heart Recipes
- ✅ Enable / Disable Revive Recipes
- ✅ Set Custom Messages
- ✅ Change Item Names
- ✅ Change Item Lore
- ✅ Customize Heart Items
- ✅ Customize Revive Items
- ✅ Customize Crafting Recipes
- ✅ Edit Recipes directly in-game
- ✅ Spawn LifeWars items through admin commands
- ✅ Manage eliminated/banned players
- ✅ Configure almost every part of the plugin
Custom Crafting Recipes
LifeWars now supports fully configurable crafting recipes.
You can customize the layouts for:
|- Heart Recipe:
|- Revive Recipe:
Recipes can also be edited in-game using the recipe editor, allowing server administrators to change recipes without manually editing the configuration.
Commands
LifeWars includes several commands for both players and administrators.
Most of the commands are admin-related, allowing server owners to manage health, revives, configuration, recipes, and LifeWars items.
Some of the available functionality includes:
- Admin Revive
- Eliminate
- Set Health
- Reload Configuration
- Edit Configuration
- Admin Item Spawning
- Recipe Editing
Permissions
- LifeWars.adminrevive.use
- LifeWars.EditConfig.use
- LifeWars.sethealth.use
- LifeWars.eliminate.use
- LifeWars.reloadconfig.use
- LifeWars.adminspawnitem.use
How to Use Items
|- Revive Item
Step 1
Craft the Revive Item.
Depending on your configuration, the recipe may not appear in the crafting recipe book because Minecraft does not recognize the custom Heart ingredient normally.
Step 2
Rename the Revive Item to the name of the eliminated player you want to revive.
Step 3
Right-click with the renamed Revive Item.
If the player is eliminated, they will be revived.
|- Heart Item
Step 1
Craft the Heart using the configured recipe.
Step 2
Done!
You can use Hearts to:
- ❤️ Give health to another player
- ❤️ Equip/use a Heart
- ❤️ Use Hearts in the Revive recipe
Heart System
Hearts are the main item used by the LifeWars lifesteal system.
Players can configure how Hearts work, including whether they can be used or equipped and how much health players can have.
LifeWars also supports custom item models and CustomModelData, allowing resource packs to give the Heart item a completely custom appearance.
Elimination & Reviving
When a player reaches the configured elimination condition, they can be added to the LifeWars banned/eliminated player system.
The plugin includes:
- Player elimination
- Automatic ban handling
- Ban and kick functionality
- Unbanning through the revive system
- Offline-player handling
- Revive item validation
- Configurable revive health
Banned players are stored in a dedicated BannedPlayers.yml file.
Configuration
LifeWars is built around configuration.
You can edit the plugin's config.yml to change things such as:
- Maximum health
- Revive health
- Heart settings
- Revive settings
- Item names
- Item lore
- Messages
- Crafting recipes
- PvP restrictions
- Banned items
- Plugin features
The configuration also contains comments explaining what different settings do.
Basic Configuration
features:
reviveBookEnabled: true
heartUseEnabled: true
withdrawCommandEnabled: true
gameplay:
maxHealth: 40
reviveHealth: 8
dropHeartsIfMax: true
items:
# Heart
heartName: "<bold><#d9252e>Heart"
heartLore: "<gray>Right-click to use!"
# New string-based item model key (1.21+ style). Example: "lifewars:defaultheart"
# If set, this is used instead of heartCustomModelData.
heartItemModel: "lifewars_defaultheart"
heartCustomModelData: -1
# Revive Book
reviveBookName: "<aqua>Revive Book"
reviveBookLore: "<dark_aqua>Rename this book to the player name you want to revive, then right-click to revive that player!"
recipes:
customRecipesEnabled: true
heartRecipeEnabled: true
reviveBookRecipeEnabled: true
# Recipe layouts going from left to right, top to bottom, and empty spaces are represented by AIR
layouts:
heart:
grid:
- DIAMOND_BLOCK
- GOLD_BLOCK
- DIAMOND_BLOCK
- NETHERITE_INGOT
- TOTEM_OF_UNDYING
- NETHERITE_INGOT
- DIAMOND_BLOCK
- GOLD_BLOCK
- DIAMOND_BLOCK
revivebook:
grid:
- DIAMOND_BLOCK
- CUSTOM_HEART
- GOLD_BLOCK
- CUSTOM_HEART
- NETHER_STAR
- CUSTOM_HEART
- GOLD_BLOCK
- CUSTOM_HEART
- DIAMOND_BLOCK
messages:
prefix: "<dark_gray>[<red>Life<gold>Wars<dark_gray>]"
announceAdminRevive: true
usageError: "<red>Usage: %usage%"
needToBePlayer: "<red>You must be a player to use this command!"
playerNotFound: "<red>Player not found!"
disabledInConfigMsg: "<red>This feature is disabled in the config!"
eliminateSuccess: "<gray>You have eliminated <red>%player%<gray>!"
reviveSuccess: "<gray>You have revived <red>%player%<gray>!"
onlyReviveElimPlayers: "<red>You can only revive eliminated players!"
eliminatedJoin: "<red>You have no hearts left!"
eliminatedReason: "<dark_red>Ran out of lives."
setHeartsConfirmSingle: "<gray>Set <red>%player%<gray>'s hearts to <red>%amount%<gray> hearts"
reloadMsg: "<gray>Reloaded the plugin!"
noWithdraw: "<red>You will be eliminated if you withdraw one more heart!"
inventoryFull: "<red>Your inventory is full! You cannot withdraw!"
withdrawMin: "<red>You cannot withdraw less than 1 heart!"
successWithdraw: "<gray>You received %amount%x <red>%item%<gray>!"
maxHeartLimitReached: "<red>You have already reached %limit% hearts!"
recipeNotCraftable: "<red>You cannot craft this item!"
recipeNotFound: "<red>This recipe does not exist!"
recipeSavedActionbar: "<green>Recipe saved!"
configKeyNotFound: "<red>Config key not found: %key%"
configUpdated: "<gray>Config value <red>%key%<gray> set to <red>%value%"
Recipe Editor
LifeWars includes an in-game recipe editor.
Server administrators can:
- Edit recipe layouts
- Change recipe ingredients
- Configure Heart recipes
- Configure Revive recipes
- Save recipes directly from the game
- Reload recipes without modifying the plugin itself
This makes it much easier to customize LifeWars for your server.
Resource Pack Support
LifeWars supports custom models for its items.
Heart items can use:
- Custom Item Models
- CustomModelData
- CustomModelData Strings
This allows resource packs to give LifeWars items their own unique appearance.
Contact Me
If you have any suggestions, bugs, or ideas for LifeWars, feel free to contact me @
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LifeWars (LifeSteal)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
LifeWars
修复内容
- 提取重复物品漏洞:修复了当堆叠剩余部分无法容纳时,
/withdraw命令会将已加入满格背包的心保留下来且未扣除对应生命值的问题。 - 设置生命值验证:
/sethealth现在会拒绝NaN(非数字)、Infinity(无穷大)以及非正数值,而不是直接将其应用于生命值属性。 - 淘汰掉落:移除了淘汰时的强制清空背包功能。物品现在会像普通死亡一样正常掉落,而不再被清除。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
评论 0
登录后参与评分
还没有评论,来抢沙发吧