Modifiers

Click to view a comprehensive list of all Modifiers
modifiers:
  custom-formula: 
  player-variable-mod:  

Custom Formula Mod

modifiers:
  custom:
    formula: '1 * %mob-lvl%'
  custom_uniqueName:
    formula: '1 + %mob-lvl%'

Allows for the creation of various custom_ placeholders. Generate these placeholders by performing basic math functions combined with internal placeholders.

ConfigurationDescription

custom:

The placeholder is populated by the name of the custom_ modifier. For example, custom_uniqueName would produce the placeholder %custom_uniqueName%.

formula:

This is the field where basic math calculations can take place using internal-use placeholders.

Player Variable Mod [PVM]

modifiers:
  player-variable-mod:
    player-variable: '%level%'
    player-variable-scale: 1.0
    player-variable-tiers:
      '31-45': 3-7
      '16-30': 2-5
      '0-15': 1-3
      default: 1
    match-variable: false
    use-variable-as-max: false
    recheck-players: true
    decrease-output: true
    output-cap: 25
    preserve-entity: 5s

Note: This Modifier contains additional settings within the settings.yml file.

The Player Variable Modifier allows you to establish predetermined outputs based on external use placeholders and a few internal-use placeholders.

This modifier outputs as %player-variable-mod% .

ConfigurationDescription

player-variable-mod:

Initiates the Player Variable Modifier tree.

player-variable:

This represents the output of the PlaceholderAPI PAPI tag.

player-variable-scale:

This will multiply the output of player-variable: by this value before applying.

player-variable-tiers:

This section represents the different possible tiers which will be referenced against the player-variable: output. The output of the tier is on the left, while the possible output of the modifier is on the right. In the first tier of the sample listed above, if the output of the variable was 31-45, then the value applied to the modifier would be 3-7. If no tier is available, the behavior will default to the match-variable: behavior.

match-variable:

This will set the final output of the modifier from between 1-X, where X represents the output of the variable. This setting enabled will ignore tiers, and cannot be enabled at the same time as use-variable-as-max:.

use-variable-as-max:

This will set the final output of the modifier to the output of the variable exactly. This setting enabled will ignore tiers, and cannot be enabled at the same time as match-variable:.

recheck-players:

This will allow the PVM to re-check a player for an updated variable value, even if that player was the same player who last updated the mob. Setting this to false will prevent the player who last updated the mob from being considered during an update.

decrease-output:

This will allow the PVM to reduce the value of the output of the modifier if that value would have reduced it. Setting this to false will prevent the output of the modifier from reducing if during an update the value would have gone down.

output-cap:

This will set a cap on the output value of the PVM, regardless of what the output and settings would have produced.

preserve-entity:

This will prevent an entity from receiving a PVM update for the established cooldown period. When the PVM update pass occurs, if the entity is not out of the cooldown period, it will not be considered for updating.

Last updated