
本模组为 Forge 版「Level Up HP」1.16.5+ 版本。
本模组拥有 Level Up HP (Forge) 的大部分功能
本模组不需要 Kottle。
在 4.0.0 版本之前,本模块使用 gamerule 进行配置
截图
条形界面 (v5.0.0+)
数字界面
命令
/levelhp
设置
/hplevel
显示你的 HP 等级
/hpexp
显示你的 HP 经验值
/hpexpadd [addexp]
增加你的 HP 经验值
Level HP 配置说明 (2023/09/30)
+--- 格式 ---+
<名称> (默认值)
<显示名称>
<描述>
+--- 基本设置 ---+
starthp (10)
初始生命值
以半颗心为单位计算的初始生命值。
hpperlevel (2)
升级 HP 等级获得的生命值
每级 HP 等级增加的半颗心数。
maxhplevel (15)
最大 HP 等级
HP 等级的上限。
showhpexpgui (true)
显示 HP 经验值界面
是否显示自定义的 HP-XP 经验条覆盖层。
+--- 升级 ---+
basehplevelupexp (100)
基础 HP 经验值,用于提升至下一级 HP 等级。
(基础值 + 缩放系数*等级)
scalinghplevelupexp (50)
缩放 HP 经验值,用于提升至下一级 HP 等级。
(基础值 + 缩放系数*等级)
healonlevelup (true) *已弃用*
HP 等级提升时回血
HP 等级提升时玩家是否应恢复生命值。
basehealonlevelup (-100) *2
基础 HP 等级提升时回血量
HP 等级提升时的治疗量。(基础值 + 缩放系数*等级) (当此值为负数时,将转换为百分比模式。)
scalinghealonlevelup (0) *2
缩放 HP 等级提升时回血量
HP 等级提升时的治疗量 (基础值 + 缩放系数*等级) (当此值为负数时,将转换为百分比模式。)
+--- 死亡损失 ---+
basediehpexplost (20) *2
基础 死亡时损失的 HP 经验值
(基础值 + 缩放系数*等级) (当此值为负数时,将转换为百分比模式。)
scalingdiehpexplost (10) *2
缩放 死亡时损失的 HP 经验值
(基础值 + 缩放系数*等级) (当此值为负数时,将转换为百分比模式。)
basediehplevellost (0) *2
基础 死亡时损失的生命值等级
(基础 + 系数*等级) (当此值小于 0 时,将转换为百分比模式。)
scalingdiehplevellost (0) *2
缩放 死亡时损失的生命值等级
(基础 + 系数*等级) (当此值小于 0 时,将转换为百分比模式。)
hpleveldiereset (false)
死亡时重置
玩家死亡时是否重置生命值经验与生命值等级。
+--- 获取经验 ---+
givehpexpnormal (2)
牲畜击杀获得
击杀牲畜获得的经验值。
givehpexpmonster (3)
怪物额外获得
击杀怪物获得的更多经验值。
baseenemyhpcalculationexpbenchmark (20) *1
基础 敌人血量计算经验基准
根据敌人血量基准计算生命值经验。(基础 + 系数*等级) (当此值小于 0 时,将转换为百分比模式。)
unitenemyhpcalculationexpbenchmark (1) *1
单位 敌人血量计算经验基准
用于非百分比模式下计算生命值经验的单位依据。(当此值为 0 时,将自动设置为 1)
scalingenemyhpcalculationexpbenchmark (0) *1
Scaling enemy hp calculation exp benchmark
The multiplier that will be multiplied when calculating the final Hp-exp amount. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
morehpexpperlevel (0)
More hp exp per level
The amount of Hp-exp that can be obtained at each level. (When this value is less than 0, it will be converted to a percentage mode.)
+--- Randomly increase or decrease exp ---+
baseramdomIncreaseordecreaseexp (0) *2
Base ramdom Increase or decrease exp
Base random increase or decrease of exp value. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
scalingramdomIncreaseordecreaseexp (0) *2
Scaling ramdom Increase or decrease exp
Scaling random increase or decrease of exp value. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
+--- *Detailed expression ---+
(lower case: numeric mode)
(uppercase: percentage mode)
(b/B : base) (s/S : scaling) (u : unit)
(All : original value) (Eh : entity hp) (Lv : player's hp-level)
(parameter is automatically removed when in a different mode)
(Mu=1/0 when numeric mode/percentage mode)
*1 结果 = {All*[(Eh-b)/u+Eh/B]*[s+S]}+{All*Mu}
*2 结果 = [All*(B+S*Lv)]+[b+s*Lv]
+--- 经验值计算顺序 ---+
0. 实体死亡
1. givehpexpnormal/givehpexpmonster
2. baseenemyhpcalculationexpbenchmark/unitenemyhpcalculationexpbenchmark/scalingenemyhpcalculationexpbenchmark
-- 如果结果 < 1.(),则结果 = 1.() --
3. morehpexpperlevel
4. baseramdomIncreaseordecreaseexp/scalingramdomIncreaseordecreaseexp
-- 如果结果 <= 0,则结果 = 1 --
5. 输出结果
其他模组:
Stone of restore
Compression ores
God dog World
以下内容摘录自原模组页面:
此版本适用于 Forge。Fabric 版本也可用:点击此处。
描述
Level Up HP 是一个添加 RPG 风格生命值升级的模组。当你击杀生物时,你会获得生命值经验值(HP XP),最终获得生命值等级,从而增加额外的生命之心。该模组专为整合包和服务器设计;因此完全可配置。你可以配置初始和最大生命值、升级所需的生命值经验值、死亡惩罚、是否在死亡时重置生命值等级等等!还有命令允许 OP 或命令方块管理任何玩家的生命值经验值和生命值等级。
安装
- 此模组需要 Forge 和
Kottle。
如果你想从 10 颗心开始而不是 5 颗,请获取 Level Up HP Easy Start 数据包
可选地,添加 Data Loader 以在全局级别应用配置,而不是每个存档单独配置
特性
- 通过击杀生物增加最大生命值
- 使用
数据包 配置几乎所有内容,如初始生命值、最高等级、进度公式和惩罚公式。你甚至可以设置单个生物的 XP 值,包括模组添加的生物!请参阅 wiki 中关于数据包的 章节。还有一个预配置的 示例数据包,让你从一开始就拥有满额的 10 颗心生命值,而不是 5 颗。
- 生命值经验值覆盖 HUD
- 心容器:立即给予你一个生命值等级。你可以使用数据包将这些添加到地牢战利品中,包含在冒险地图中,或者做其他任何事情。默认情况下,它们在生存模式中不可获得。
用于数据包中的升级触发器;参见 内置成就之一 以获取使用示例。支持当前等级和剩余等级的整数范围条件(就像许多原版触发器一样)。
命令 (/leveluphp check) 用于检查 XP/等级,以防你的模组与经验条 HUD 冲突
仅限 OP 的命令,用于管理任何玩家的 XP/等级
/leveluphp [setxp|addxp|setlevel|addlevel]
你也可以配合命令方块或 mcfunctions 使用这些命令
整合包
此模组采用 Apache 2.0 许可证,因此你可以自由将其包含在整合包中。虽然不是必需的,但我更希望你在将本模组添加到整合包或在公共服务器上使用时通知我。

This mod is forge mod "Level Up HP" 1.16.5+ version.
This mod has most of the features of Level Up HP (Forge)
This mod not requires Kottle.
This module uses gamerule for configuration before version 4.0.0
Screenshot
Bar GUI (v5.0.0+)
Number GUI
The command
/levelhp
settings
/hplevel
show your hp-level
/hpexp
show your hp-exp
/hpexpadd [addexp]
add your hp-exp
Description of Level HP config (2023/09/30)
+--- Format ---+
<name> (default value)
<Display name>
<description>
+--- Basic settings ---+
starthp (10)
Starting Hp
Starting HP in half-hearts.
hpperlevel (2)
Hp level up give hp
HP gain per level in half-hearts.
maxhplevel (15)
Max hp level
Maximum HP level.
showhpexpgui (true)
show Hp exp GUI
Whether to display the custom HP-XP bar overlay.
+--- Level up ---+
basehplevelupexp (100)
Base Hp-exp needed to advance to next HP level.
(base + scale*level)
scalinghplevelupexp (50)
Scaling HP-exp needed to advance to next HP level.
(base + scale*level)
healonlevelup (true) *No longer use*
Heal when Hp level up
Whether the player should heal when HP is leveled up.
basehealonlevelup (-100) *2
Base heal when Hp level up
Heal when HP is leveled up. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
scalinghealonlevelup (0) *2
Scaling heal when Hp level up
Heal when HP is leveled up (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
+--- Death Loss ---+
basediehpexplost (20) *2
Base Hp-exp lost on death
(base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
scalingdiehpexplost (10) *2
Scaling Hp-exp lost on death
(base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
basediehplevellost (0) *2
Base Hp-level lost on death
(base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
scalingdiehplevellost (0) *2
Scaling Hp-level lost on death
(base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
hpleveldiereset (false)
Reset on death
Whether the player's Hp-exp and Hp-level should reset on death.
+--- get exp ---+
givehpexpnormal (2)
Live stock Gain
XP gained from killing livestock.
givehpexpmonster (3)
Monster extra Gain
MORE XP gained from killing monsters.
baseenemyhpcalculationexpbenchmark (20) *1
Base enemy hp calculation exp benchmark
Hp-exp is calculated according to the enemy's blood volume benchmark. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
unitenemyhpcalculationexpbenchmark (1) *1
Unit enemy hp calculation exp benchmark
Used as the unit basis for calculating Hp-exp in non-percentage mode. (when this value is 0, it will be automatically set to 1)
scalingenemyhpcalculationexpbenchmark (0) *1
Scaling enemy hp calculation exp benchmark
The multiplier that will be multiplied when calculating the final Hp-exp amount. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
morehpexpperlevel (0)
More hp exp per level
The amount of Hp-exp that can be obtained at each level. (When this value is less than 0, it will be converted to a percentage mode.)
+--- Randomly increase or decrease exp ---+
baseramdomIncreaseordecreaseexp (0) *2
Base ramdom Increase or decrease exp
Base random increase or decrease of exp value. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
scalingramdomIncreaseordecreaseexp (0) *2
Scaling ramdom Increase or decrease exp
Scaling random increase or decrease of exp value. (base + scale*level) (When this value is less than 0, it will be converted to a percentage mode.)
+--- *Detailed expression ---+
(lower case: numeric mode)
(uppercase: percentage mode)
(b/B : base) (s/S : scaling) (u : unit)
(All : original value) (Eh : entity hp) (Lv : player's hp-level)
(parameter is automatically removed when in a different mode)
(Mu=1/0 when numeric mode/percentage mode)
*1 result = {All*[(Eh-b)/u+Eh/B]*[s+S]}+{All*Mu}
*2 result = [All*(B+S*Lv)]+[b+s*Lv]
+--- Exp calculation order ---+
0. entity died
1. givehpexpnormal/givehpexpmonster
2. baseenemyhpcalculationexpbenchmark/unitenemyhpcalculationexpbenchmark/scalingenemyhpcalculationexpbenchmark
-- if result<1.() , result = 1.() --
3. morehpexpperlevel
4. baseramdomIncreaseordecreaseexp/scalingramdomIncreaseordecreaseexp
-- if result<=0 , result = 1 --
5. output result
Other mods:
Stone of restore
Compression ores
God dog World
The following content is excerpted from the original mod page:
This version is for Forge. A Fabric version is also available: click here.
Description
Level Up HP is a mod that adds RPG style HP upgrades. As you kill mobs, you gain HP XP, which eventually gives you HP Levels, which give you additional hearts of health. The mod is designed with mod packs and servers in mind; so it's fully configurable. You can configure the starting and maximum HP, the HP XP requirements to level up, the penalties on death, whether to reset HP Levels on death, and more! There are also commands that allow ops or command blocks to manage HP XP and HP Level for any player.
Installation
- This mod requires Forge and
Kottle.
If you want to start at 10 hearts instead of 5, get the Level Up HP Easy Start data pack
Optionally, add Data Loader to apply the config at a global level instead of per-save
Features
- Increase your max HP by killing mobs
- Configure just about everything using
data packs, like starting HP, max level, progression formula, and penalty formulas. You can even set XP values for individual mobs, including modded ones! See the section on data packs in the wiki. There's also a preconfigured example data pack that starts you off with a full 10 hearts of health instead of 5.
- HP XP overlay HUD
- Heart containers that instantly give you an HP level. You can use a data pack to add these to dungeon loot, include them in adventure maps, whatever you want. By default, they're not obtainable in survival.
Level up trigger for use in data packs; see one of the built in advancements for a usage example. Supports int range conditions (just like many vanilla triggers) on current and remaining levels.
Command (/leveluphp check) to check XP/Level in case you have a mod that conflicts with the xp bar hud
Op-only commands to manage XP/Level for any player
/leveluphp [setxp|addxp|setlevel|addlevel]
You can use these with command blocks or mcfunctions too
Modpacks
This mod is licensed under Apache 2.0, so you're free to include it in modpacks. While not required, I'd prefer it if you let me know when you add this mod to a modpack or use it on a public server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧