本插件已不再由我(Nighteyes604)积极维护。LordPhrozen 接手了该项目,你可以继续在此获取更新:

本插件允许玩家根据物品的背景描述(lore)来提升其属性(生命值、伤害、生命恢复和攻击速度)。所有背景描述同样适用于怪物——因此,你可以通过赋予怪物更好的属性来挑战你的玩家!
注意:本插件不会为物品添加背景描述,它仅读取背景描述并根据其内容影响玩家。
背景描述属性
目前,背景描述可以应用于以下属性:攻击伤害、攻击速度、生命值、生命恢复、闪避几率、暴击几率、暴击伤害、生命窃取、护甲值,甚至可以根据权限限制特定物品的使用!
阅读以下章节以了解如何提升你物品的属性。
伤害
伤害加成可以通过两种方式之一应用到物品上——随机范围或固定增加值。
物品上的“+5 Damage”将使造成的伤害增加 5。
物品上的“2-6 Damage”将把玩家的伤害设定为最小 2,最大 6。
伤害计算会考虑所有装备的物品以及玩家手中持有的物品。每个物品上的范围加成会被累加,然后再应用其他加成。
示例:
- 头盔:2-3 Damage,胸甲:+5 Damage,剑:5-10 Damage
- 总伤害:12-18
生命值
最大生命值可以通过固定值增加,并可应用到玩家装备的任何物品上。
+50 Health 将使玩家的生命值增加 50。
此操作仅设置最大生命值,而非当前生命值。如果玩家卸下提供加成的护甲后,其当前生命值高于新的最大值,其生命值将被降低至新的最大值。
生命恢复
生命恢复可以通过固定值增加,并可应用到玩家装备的任何物品上。
+50 Regen 将使他们的生命恢复量增加 50。
生命恢复加成通常在正常进行生命恢复时应用——即玩家处于饱食状态/食物栏较高时。
攻击速度
攻击速度可以被限制/增加,并可应用到玩家装备的任何物品以及玩家手中持有的物品。
+2 Attack Speed 将使玩家的攻击速度增加 2。
所有玩家的默认攻击速度为 1,攻击之间的“冷却时间”由配置文件中的“base-delay”/攻击速度决定,单位为秒。
示例:
- 剑:+1 Attack Speed。配置文件中 Base-Delay:2
- 攻击速度:每秒可造成一次伤害(2 / 2 = 1)
如果攻击速度快于玩家的冷却时间,将会显示配置文件中设定的消息。如果消息设置为“none”,则不显示任何内容。
要将攻击速度用作背景描述,必须在配置文件中启用。默认情况下它是禁用的。
闪避
玩家可以获得一定百分比的几率来闪避来自其他实体的伤害。闪避属性可以应用到玩家穿戴的任何装备以及玩家手中持有的物品。
示例:
+5% Evasion 将使闪避来自其他生物(如怪物或其他玩家)伤害的几率增加 5%(玩家初始为 0%)。
暴击几率与暴击伤害
在对其他玩家或实体造成伤害时,玩家可以有机会发动暴击——造成暴击伤害。玩家需要同时拥有暴击几率背景描述和暴击伤害背景描述,才能使暴击效果显著。
示例:
+5% Critical Chance
+10 Critical Damage
这意味着玩家平均有 5% 的概率额外造成 10 点伤害。
生命窃取
生命窃取背景描述赋予玩家和怪物在攻击时治疗自己的能力。任何拥有生命窃取属性的实体都将根据其生命窃取加成值或所造成的伤害值中较小的一个进行治疗。
示例:
+10 Life Steal
该玩家进行的任何攻击都会治疗相应的伤害,最高不超过 10。
护甲
护甲背景描述为玩家或怪物添加防御特性,并根据护甲值减少来自其他实体的伤害。
示例:
+10 Armor
该玩家从其他玩家或怪物处受到的任何伤害都将减少 10。
物品限制
你可以使用物品限制功能,根据权限阻止玩家使用某些物品!限制检查仅针对玩家进行(因此怪物不受影响),并在以下时机进行检查:关闭物品栏时、尝试拉弓射击或对其他实体造成伤害时,以及合成时。
如果玩家尝试装备受限制的护甲部件,当他们关闭界面时,该护甲会回到他们的物品栏中。如果物品栏已满,则会掉落在脚下。
如果玩家尝试使用受限制的武器拉弓射击或使用受限制的物品造成伤害,他们将无法造成任何伤害(尽管尝试拉弓射击时箭矢仍会被消耗)。
如果玩家尝试使用受限制的物品进行合成,他们将无法成功,且物品会被还原。Minecraft 客户端可能会短暂地让玩家以为物品已成功合成,但随后会变回原状。
每当玩家尝试使用受限制的物品时,如果启用,插件会向他们发送配置文件中设定的消息。%itemname% 将被替换为受限制物品的名称。
默认使用的权限为“loreattributes。”加上 lore 中的具体限制。配置文件中默认的关键词是“type”,且该关键词后需紧跟冒号(:)。
示例:
Type: Thief
玩家需拥有“loreattributes.thief”权限。
Type: Super.Thief
玩家需拥有“loreattributes.super.thief”权限。
Lore 何时生效?
- 生命值 - 登录、关闭物品栏、重生、锁定目标时(针对生物)。
- 伤害、生命偷取、攻击速度、暴击率、暴击伤害 - 攻击时生效。
- 回复 - 当玩家本应恢复生命值时生效。
- 物品限制 - 在关闭物品栏、拉弓射击/攻击以及合成时检查。
- 闪避、护甲 - 受到其他玩家或生物伤害时生效。
如何更改插件搜索以应用 Lore 属性的关键词?
在配置文件中,每种类型的 lore 下都有一个“keyword”属性。插件会搜索该关键词(并根据 lore 类型附加其他条件,如 + 或 %)。
闪避和暴击率在数值后需要添加百分号(%)。
我可以叠加多条 lore / 在 lore 中添加其他文字吗?
可以!
插件会在整个 lore 中搜索上述特定字符串,但只会应用每种类型的第一个匹配项。
示例:
- Sword: "+50 Health, +2 Attack Speed this sword will never let you down!" 将应用 +50 生命值和 +2 攻击速度。
- Sword: "+50 Health +500 Health you'll be OP with this" 仅会应用 +50 生命值。
权限
权限会根据你添加到物品上的物品限制动态使用,如上所述。此插件没有其他限制——任何能够使用该带有 lore 物品的玩家都会应用相应的 lore 效果。
命令
/hp - 玩家可以输入此命令查看当前生命值和最大生命值。
/lorestats - 玩家可以输入此命令列出所有应用于他们的 lore 效果。
插件集成
PermissionsHealth
- 此插件可以基于 PermissionsHealth 定义的生命值进行扩展。只需在 config.yml 的 integration 部分启用“permissionshealth”即可。
杂项
即将推出的功能
- Heroes 集成
- 查看所有已应用的 lore 属性的命令(可能需要调整格式或颜色——有何建议?
- 支持负值
This plugin is no longer in active development by me (Nighteyes604). LordPhrozen has picked it up and you can continue to receive updates here:

This plugin allows players to increase affect their stats (health, damage, regen, and attack speed) based on the lore of their items. All lore also applies to mobs - so you challenge your players by giving mobs better stats!
Note: This plugin does not add lore to items, it just reads the lore and affects the player based on it.
Lore Stats
Currently lore can be applied to: attack damage, attack speed, health, health regeneration, dodge chance, critical chance, critical damage, life steal, armor, and even a restriction of items based on permissions!
Read the sections below to see how to boost the stats of your items.
Damage
Damage boosting can be applied to items in one of two ways - a random range, or a fixed increase.
"+5 Damage" on an item will increase damage dealt by 5
"2-6 Damage" on an item will set the player's damage to be a minimum of 2, maximum of 6.
Damage looks at the sum of all items equipped, and the item in the player's hand. Every range applied to an item is summed together, and then boosts are applied afterwards.
Example:
- Helm: 2-3 Damage, Chest: +5 Damage, Sword: 5-10 Damage
- Overall Damage: 12-18
Health
Max health can be increased by fixed values and can be applied to any item the player has equipped.
+50 Health will increase the player's health by 50.
This action just sets the max health, not current health. If the player removes boosting armor and would have more health than their new max, their health will be lowered to their new max.
Regeneration
Health regeneration can be increased by fixed values and can be applied to any item the player has equipped.
+50 Regen will increase their regeneration by 50.
Regeneration boosts are applied when health would typically be regenerated - the player is satiated / has a high food bar.
Attack Speed
Attack speed can be limited / increased and can be applied to any item the player has equipped, and the item in the player's hand.
+2 Attack Speed will increase the player's attack speed by 2.
All player's have a default attack speed of 1, and the "cooldown" between attacks is determined by "base-delay" in the config / attack speed, in seconds.
Example:
- Sword: +1 Attack Speed. Base-Delay in config: 2
- Attack Speed: Can deal damage once per second (2 / 2 = 1)
Attacks faster than the player's cooldown time will display the message in the config. If the message is set to "none" nothing will display.
To use attack speed as a lore, it must be enabled in the config. It is disabled by default.
Dodge
A player can gain a % chance to dodge damage taken from another entity. The dodge attribute can be applied to any equipment the player is wearing, and the item in the player's hand.
Example:
+5% Evasion will increase the chance to dodge damage from another living entity (such as monster or another player) by 5% (players start at 0%).
Critical Chance and Critical Damage
On dealing damage to another player or entity, players can be given a chance to have a critical attack - which deals critical damage. Players will need both the critical chance lore and the critical damage lore for crits to be noticable.
Example:
+5% Critical Chance
+10 Critical Damage
Means the player will deal an extra 10 damage on average 5% of the time.
Life Steal
Life steal lore gives players and monsters the ability to heal when they attack. Anyone with the life steal attribute will heal a maximum of their life steal bonus or the damage dealt, whichever is smaller.
Example:
+10 Life Steal
Any attacks done by this player will heal the attack damage, up to a maximum of 10.
Armor
Armor lore adds defensive traits to the player or monster, and reduces damage done by other entities based on the armor value.
Example:
+10 Armor
Any damage this player would have taken from another player or monster will be reduced by 10.
Item Restrictions
You can use item restrictions to prevent players from using certain items based on their permissions! Restrictions are checked for players only (so mobs are safe), and are checked: on inventory close, when they try to shoot a bow or damage another entity, and when they craft.
Players trying to equip a restricted armor piece will find the armor moves to their inventory when they close the screen. If their inventory is full it will be dropped at their feet.
Players trying to shoot a bow or deal damage with an item that is restricted will find they deal no damage (though arrows will still be used when trying to shoot a bow).
Players trying to craft using a restricted item will find they're unable to and the items will be reverted. The MineCraft client briefly lets the player think the item has been crafted, but it will change back.
Anytime a player tries to use a restricted item, if enabled the plugin will send them the message from the config. %itemname% will be replaced with the item name that is restricted.
The default permissions to use are "loreattributes." + whatever the restriction is in the lore. The default keyword in the configuration is "type", and the keyword will need to be followed with a colon (:).
Example:
Type: Thief
Player will need the "loreattributes.thief" permission.
Type: Super.Thief
Player will need the "loreattributes.super.thief" permission.
When does Lore get applied?
- Health - Applied on login, closing inventory, respawn, targeting (for mobs).
- Damage, life steal, attack speed, critical chance, critical damage - Applied on attack.
- Regen - Applied when player would normally regenerate health.
- Item Restriction - Checked on inventory close, shooting bow / attacking, and crafting
- Dodge, Armor - Applied on taking damage from another player or mob
How do I change the keywords the plugin is searching for to apply lore attributes?
In the configuration file, under each type of lore there is a "keyword" attribute. The plugin will search for the keyword (with a few other conditions, such as + or % based on the type of lore it is).
Dodge and critical chance require a % sign after the value.
Can I stack multiple lore / have other words in my lore?
Yes!
The plugin will search the entire lore for the particular strings mentioned above, but will only apply the first of each type.
Example:
- Sword: "+50 Health, +2 Attack Speed this sword will never let you down!" would apply +50 health, +2 attack speed.
- Sword: "+50 Health +500 Health you'll be OP with this" would only apply +50 health.
Permissions
Permissions are used dynamically based on the item restrictions you add to items, as mentioned above. There are no other restrictions in this plugin - anyone that can use the item that has lore will have the lore applied to them.
Commands
/hp - Players can type this to find out their current health, and maximum health.
/lorestats - Players can type this to list all of the lore that is applied to them.
Plugin Integration
PermissionsHealth
- This plugin can build off of health defined from PermissionsHealth. Just enable "permissionshealth" under integration in the config.yml.
Misellaneous
- Thank you to davidilite for the inspiration behind this plugin!
Upcoming Features
- Heroes integration
- Command to view all lore attributes applied (possible revision of formatting or colors - any suggestions?
- Support for negative values
评论 0
登录后参与评分
还没有评论,来抢沙发吧