Skip to content
SkinnyJeans edited this page Apr 11, 2022 · 9 revisions

Limits, Values and other

If you're not planning to change any config, it's recommended to put the difficulty on hard as the default config was configured based on that.

All values that require a number (not percentages though) can have any size you want, this is to allow players to customize it as much as java allows. (I would not go this high since it may crash the app, but it's possible in some cases)

minimum allowed value: -2147483647

maximum allowed value: 2147483647

if a player is given more affinity than the allowed min and max sizes, it will limit the Affinity of an user to the set limits. (e.g.) User has 600 Affinity, server maximum limit is 1500. If the user is given 1000 Affinity (1000 + 600 = 1600), he will have 1500 Affinity points since that's the limit of the server.

points-per-minute

default: 3

How many points are given to all online players every minute

block-mined

default: 2

How many points are given to players who've mined a block in the blocks section without a custom Affinity value

player-hit

default: -1

How many Affinity points a player loses when hit

affinity-per-heart-loss

default: -1

How many Affinity points a player loses based on how many hearts he has lost. (5 hearts = 5 * -1 = -5 Affinity points)

pvp-kill

default: 20

How many points are gained when you kill a player

pve-kill

default: 2

How many points are given to players who've killed a mob in the mobs section without a custom Affinity value

death

default: -100

How many points are given when a player dies

starting-affinity

default: 600

How many points a player gets when joining a server for the first time after the plugin is installed

starting-min-affinity

default: -1

Minimum starting Affinity for players, this is different from the server limit as this is limited to players. This value is only given when the player joins the server for the first time after installing DynamicDifficulty

starting-max-affinity

default: -1

maximum starting Affinity for players, this is different from the server limit as this is limited to players. This value is only given when the player joins the server for the first time after installing DynamicDifficulty

min-affinity

default: 0

The server limit, no one can get a lower value than the one set here. (min & max affinity swap if you try to be funny)

max-affinity

default: 1500

The server limit, no one can get a highervalue than the one set here. (min & max affinity swap if you try to be funny)

mobs-count-as-pve:

default: list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html

All mobs listed here will give Affinity points when killed, you can add custom values by typing <mobtype>: <number>, will use pve-kill if no custom value is given

  • CREEPER: 3
  • DROWNED

blocks

default: list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html

All blocks listed will give Affinity points when mined, you can add custom values by typing <material>: <number>, will use block-mined if no custom value is given

  • ANCIENT_DEBRIS: 4
  • DIAMOND_ORE

toggle settings

silk-touch-allowed

default: false

Whether players can gain points by mining blocks when they have the silk touch enchant on their tool

prevent-affinity-loss-on-suicide

default: true

Whether players lose points if they do something that is considered as suicide.

no-changes-to-spawned-mobs

default: false

Whether Mobs spawned by spawn eggs and spawners are influenced by Dynamic Difficulty or not

randomize

default: false

Whether it will randomly choose values from each difficulty. (e.g.) you may do 3 hearts damage the first hit and the second hit may do 1.5 based on the difficulty chosen

advanced

Advanced features may need more configuring or may decrease performance

custom-mob-items-spawn-chance

default: false

You're able to change the armor mobs spawn with if this is enabled. You can configure that in the custom-mob-items-spawn-chance section

exact-percentage

default: true

if enabled, will calculate the exact value between 2 difficulties. E.g. easy (0 Affinity required) has 60% chance to hunger, normal has 80% (400 Affinity required). If the user has 200 Affinity and exact-percentage is enabled, the user has a 70% chance to hunger

So if calculate-exact-percentage is disabled the damage chart will look something like this: calculate-exact-percentage-disabled.jpg

And if it's enabled it will look like this: calculate-exact-percentage-enabled.jpg

plugin-support

allow-papi

default: false

Whether to allowe papi implementation or not

use-prefix

default: true

Whether you want to use a custom prefix (allows custom color formatting) in each difficulty or just their standard name (doesn't allow custom color formatting)

unload-leaving-player

default: false

Removes a few issues with not being able to find certain players. Enabling it will improve ram a few kb's, but may cause some problems that were stated earlier.

saving-data

type

default: file

Determines what sort of database you'd like to use, if you want to change database you'll have to restart the server. Restarting only the plugin may break it, but you could try at your own discretion.

The port, host, username, password and database field are only needed if you plan on using a database (not for none and file)

port: 3306

host: localhost

username: root

password:

database: dynamicdifficulty

disabled-words

default: list

add any world you want, you don't need Multiverse for it to work.

disabled-mobs

default: list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html

add any mob here you don't want to be changed by the plugin. This includes Affinity Points, damage received and done and all other changes

difficulty-modifiers

type

default: player

Only player is available as of this moment, this determines if the Affinity is calculated based on the player, biome, world or radius.

Multiplies the default value by these in every difficulty (100% * 1.5 = 150%)

damage-done-by-mobs-multiplier

default: 1.0

damage-done-on-mobs-multiplier

default: 1.0

double-loot-chance-multiplier

default: 1.0

experience-multiplier

default: 1.0

difficulty

affinity-required

default: number

At What affinity this difficulty starts working

damage-done-by-mobs

default: percentage

How much damage mobs do to you

damage-done-on-mobs

default: percentage

How much damage you do on mobs

hunger-drain-chance

default: percentage

Chance that the hunger of a player will drain

damage-done-by-ranged-mobs

default: percentage

How much damage projectiles do

double-durability-damage-chance

default: percentage

Chance to take double damage on item durability

experience-multiplier

default: percentage

Experience Multiplier

double-loot-chance

default: percentage

Chance to double the loot dropped when a mob is killed

allow-pvp

default: bool

Whether the player can attack or be attacked by other players

keep-inventory

default: bool

Whether the player keeps everything on death or not

effects-when-attacked

default: bool

Whether you get poison/wither etc from mob attacks (not including splash potions), works only on normal/hard world difficulty

prefix

default: text

prefix to return if PlaceholderAPI is enabled

commands-not-allowed-on-difficulty

default: list

What commands aren't allowed to be run by players on certain difficulties, spaces not recommended

extra-damage-for-certain-armor-types

default: list

how much damage reduction/increased per armor set worn (full diamond on Hard = 100 + (4 x 4)). Settings include [nothing, leather, golden, chainmail, iron, turtle, elytra, diamond and netherite]

mobs-ignore-player

default: list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html

these mobs will ignore the players unless they're provoked

custom-mob-items-spawn-chance

override-default-limits

default: false

Will allow higher levels than Minecraft's defaults. (E.g. Unbreaking 7 can happen if max-level is higher or equals 7)

override-enchant-conflicts

default: false

Allows conflicting enchants to occur on a single armor (E.g. Protection & Fire Protection)

includes-mobs

default: list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html

Mobs that will change when they're chosen for the difficulty. Is only really supported on humanoid entities. You could add mobs like Creepers, but you probably won't be able to see the armor.

weapons-include

default: list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html

Weapons that will be given to the mobs, may not work on non-humanoid entities

armor-set-weight

default: list armor types [leather, golden, chainmail, iron, diamond, netherite]

The weight/chance an armor has to be given to a mob. Higher values means that it's more likely to be given to a mob.

xxx-enchants-include

make sure to use the items with the __ beneath the names https://www.digminecraft.com/lists/enchantment_list_pc.php <ENCHANT_NAME>: WEIGHT, higher means more likely to occur, no value = weight of 1

helmet-enchants-include

default: list https://www.digminecraft.com/lists/enchantment_list_pc.php (make sure to use the items with the __ beneath the names)

Enchants that have a chance of being added to the helmet

chestplate-enchants-include

default: list https://www.digminecraft.com/lists/enchantment_list_pc.php (make sure to use the items with the __ beneath the names)

Enchants that have a chance of being added to the chestplate

leggings-enchants-include

default: list https://www.digminecraft.com/lists/enchantment_list_pc.php (make sure to use the items with the __ beneath the names)

Enchants that have a chance of being added to the leggings

boots-enchants-include

default: list https://www.digminecraft.com/lists/enchantment_list_pc.php (make sure to use the items with the __ beneath the names)

Enchants that have a chance of being added to the boots

weapon-enchants-include

default: list https://www.digminecraft.com/lists/enchantment_list_pc.php (make sure to use the items with the __ beneath the names)

Enchants that have a chance of being added to the weapon

bow-enchants-include

default: list https://www.digminecraft.com/lists/enchantment_list_pc.php (make sure to use the items with the __ beneath the names)

Enchants that have a chance of being added to the bow

difficulties

the name of the difficulties needs to be EXACTLY the same as in the first general difficulty list (e.g. ExtreMe difficulty needs to be exactly the same here or it won't work)

max-enchants

default: number

maximum enchants allowed on an item

max-level

default: number

maximum level for enchants

chance-to-have-armor

default: percentage

chance for a mob to spawn with armor

chance-to-enchant-a-piece

default: percentage, number

chance for a piece of armor to be enchanted

armor-drop-chance

default: percentage

chance for the armor to drop if a mob with armor is killed

weapon-drop-chance

default: percentage

chance for the weapon to drop if a mob with a weapon is killed

weapon-chance

default: percentage

chance for a mob to have a weapon if they get armor

helmet-chance

default: percentage

chance for a mob to have a helmet if they get armor

chest-chance

default: percentage

chance for a mob to have a chestplate if they get armor

leggings-chance

default: percentage

chance for a mob to have leggings if they get armor

boots-chance

default: percentage

chance for a mob to have boots if they get armor

Clone this wiki locally