Skip to content

[1.16+] Difficulty Modifier

Alberto edited this page Dec 5, 2022 · 9 revisions

The Difficulty Modifier object is used in Range and Modifiable Value, and lets you change the value of those two objects based off the world difficulty.

Difficulty Modifier

  • difficulty_modifier: (Object) the object that contains the modifier's parameters.
    • operation: A string value (allowed values: "add", "multiply") representing if the modifiers should affect the value additively or multiplicatively
    • easy: the modifier if the difficulty is easy
    • normal: the modifier if the difficulty is normal
    • hard: the modifier if the difficulty is hard
    • affects_max_only: currently used in the Range Object, a true or false value which makes the modifier affect only the max value. Defaults to false if omitted

Example

Check properties pages for examples.

Clone this wiki locally