
量子比特播放器 XP
一个旨在用于整合包中的小型、可配置模组。允许配置经验升级和经验死亡掉落公式。
Qubit Player XP
一个为整合包使用而设计的微型、可配置模组。
允许配置经验值升级和经验值死亡掉落的公式。
用法
默认情况下,此模组不会改变任何内容。
可以通过位于 <mc folder>/config/qubit/player_xp.json 的文件进行配置,
其内容如下所示:
{
"level_formula": /* ... */,
"xp_drop": /* ... */
}
level_formula 提供升到下一级所需的经验值数量。
xp_drop 提供死亡时掉落的经验值数量。
level_formula 和 xp_drop 均为整数提供器,
并默认使用原版中使用的公式。请注意,Minecraft Wiki 上关于数字提供器和谓词的页面目前已相当过时。
这些整数提供器会将玩家作为其战利品上下文的 this 实体传入。
还添加了两个整数提供器,用于构建公式:
qubit:player_xp/level
{
"type": "qubit:player_xp/level"
}
返回玩家当前等级。只能用于 level_formula 和 xp_drop。
qubit:player_xp/points
{
"type": "qubit:player_xp/points"
}
玩家朝向下一级所拥有的经验点数。只能用于 xp_drop。
示例配置
这是使用默认(原版)公式的配置:
{
"level_formula": {
"type": "minecraft:number_dispatcher",
"cases": [
{
"condition": {
"type": "minecraft:int_value_check",
"value": { "type": "qubit:player_xp/level" },
"test": { "min": 0, "max": 15 }
},
"value": {
"type": "minecraft:add",
"inputs": [ 7, {
"type": "minecraft:mul",
"inputs": [ 2, { "type": "qubit:player_xp/level" } ]
}]
}
},
{
"condition": {
"type": "minecraft:int_value_check",
"value": { "type": "qubit:player_xp/level" },
"test": { "min": 16, "max": 30 }
},
"value": {
"type": "minecraft:add",
"inputs": [ -38, {
"type": "minecraft:mul",
"inputs": [ 5, { "type": "qubit:player_xp/level" } ]
}]
}
}
],
"default": {
"type": "minecraft:add",
"inputs": [ -158, {
"type": "minecraft:mul",
"inputs": [ 9, { "type": "qubit:player_xp/level" } ]
}]
}
},
"xp_drop": {
"type": "minecraft:min",
"inputs": [ 100, {
"type": "minecraft:mul",
"inputs": [ 7, { "type": "qubit:player_xp/level" } ]
}]
}
}
有关旧版 1.0 配置,请参阅此 README 的旧版本。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。