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.

13

Qubit Player XP

Usage

By default, this mod should change nothing.

It can be configured with a file at `<mc folder>/config/qubit/player_xp.json`

Its configuration has this format (this is not the default configuration):

```json5 { // Controls how much XP is needed for each level. // An array of pieces that forms a piecewise linear function. // The function's input is your *current* level. // Defaults to vanilla's formula if not provided. // One piece needs to start at 0. "level_formula": [ // Each piece has this format: { // What level this piece starts at, default 0. Must be >=0. "start": 0, // The value at the starting level (not the y-intercept). Must be >0. "constant": 7, // Additional XP required for each level afterward, default 0. // Must be >=0, can be a float. "slope": 2 } ], // Controls how much XP is dropped on death. // Defaults to vanilla's formula if not provided. "xp_drop": { // A formula with the same format as `level_formula`. // Controls the amount that drops for each level. "formula": [ /* ... */ ], // How much of the progress toward the next level is dropped. // Progress is a fraction of the amount for the next level in `formula`. // It is *not* based on the actual amount of XP the next level requires. // Must be at least 0. "extra_mult": 1.0, // The maximum XP that will be dropped. Must be at least 0. // If omitted, there is no cap (except the integer limit). "cap": 100 } } ```

ADS