跳到正文

Qubit Player XP

作者:mesosopic

A tiny, configurable mod intended for use in modpacks. Allows for configuration of the XP leveling and XP drop on death formulas.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Qubit Player XP

A tiny, configurable mod intended for use in modpacks.

Allows for configuration of the XP leveling and XP drop on death formulas.

Usage

By default, this mod should change nothing.

It can be configured with a file at <mc folder>/config/qubit/player_xp.json,
which looks like this:

{
  "level_formula": /* ... */,
  "xp_drop": /* ... */
}

level_formula provides the amount of XP needed for the next level.

xp_drop provides the amount of XP dropped on death.

Both level_formula and xp_drop are integer providers,
and default to the formulas used in vanilla. Note the Minecraft Wiki page for Number Providers and Predicates is currently quite outdated.

These integer providers are passed the player as their this entity for loot context.

Two integer providers have also been added to build formulas with:

qubit:player_xp/level

{
  "type": "qubit:player_xp/level"
}

Returns the player’s current level. Can only be used in level_formula and xp_drop.

qubit:player_xp/points

{
  "type": "qubit:player_xp/points"
}

The number of experience points the player has towards the next level. Can only be used in xp_drop.

Example Config

This is the config with the default (vanilla) formulas:

{
  "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" } ]
    }]
  }
}

For the legacy 1.0 config, see the old version of this README.

常见问题

Qubit Player XP 支持哪些 Minecraft 版本?

Qubit Player XP 支持 Minecraft Java 版 26.1.2–26.3,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Qubit Player XP 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

mesosopic 的其他作品

查看全部 →