Skip to content

Experience

TheIllusiveC4 edited this page Oct 29, 2017 · 5 revisions

Table of Contents

Overview

With the experience module, you can control what happens to a player's experience upon death, including manipulating experience orb generation.

Configuration Options

Enable Experience Module

Set to true to enable the experience module and all of its features. This needs to be activated for the features in this module to work, regardless of their config settings.

Keep XP

Set to true to keep all of a player's experience on death. No experience is lost on death, the player will respawn with the same amount of experience as before, and no experience orbs will be generated at all.

Lost XP Percent

The experience lost, expressed as a percent value between 0.0 and 1.0, from the player upon death.

Maximum Recoverable XP

The maximum amount of experience recoverable, expressed as the raw value of experience between 0 and 10,000. This option allows you to set a maximum amount of experience that players can recover regardless of how many experience orbs are dropped. Setting this to 0 will disable the cap.

Recoverable XP Percent

The amount of experience recoverable, expressed as a percent value between 0.0 and 1.0, from experience orbs upon death. This option controls the experience orb generation on death. The percent value is taken from the total amount of experience the player actually loses, determined by the "Lost XP Percent" value.

Example:
Situation: Player dies with 100 XP
Lost XP Percent: 1.0
Recoverable XP Percent: 0.25

The player will lose 100% of his experience, as defined by the "Lost XP Percent" value, thus the player will lose 100 XP. Since "Recoverable XP Percent" is set to 0.25, only 25% of the lost 100 XP will generate as experience orbs. So, only 25 XP worth of orbs will generate on death and the other 75 XP is lost forever.