Mod Config

The mod add several possibility of configuration separated in two sides : the client configuration and the common configuration. Both of these configuration files can be found in the "config" folder of your ".minecraft" **Repertory**.

## Client Configuration

The name of the client configuration file is "***devilfruits-client.toml***".

The client configuration allow the configuration of client only things, such as rendering options. Each player can have a custom client configuration without any issue.

### Player Health Rendering :

#### Overlay

The "*shouldHealthRenderedAsAnOutilineOnHealthBar*" parameter allow to choose if health over 20 points (10 hearts) should be rendered as a blue overlay around the player health bar. By default this parameter is set on true.

#### Additional Row of Hearts

The "*shouldHealthBeRenderedAsAnAdditionalRowOfHeartBar*" parameter allow to choose if health over 20 points (10 hearts) should be rendered as an additional row of orange hearts (while showing the amount of health over 20 points). By default this parameter is set on false.

### Energy Rendering :

#### Overlay

The "*shouldEnergyRenderedAsAnOutilineOnFoodBar*" parameter allow to choose if the amount of **Energy** of the player should be rendered as a green overlay around the player food bar. By default this parameter is set on true.

#### Additional Bar

The "*shouldEnergyBeRenderedAsAnAdditionalBarLikeWillpower*" parameter allow to choose if the amount of **Energy** of the player should be rendered as a bar at the right side of the screen (like the **Willpower** bar). By default this parameter is set on false.

## Common Configuration

The name of the client configuration file is "***devilfruits-common.toml***".

The common configuration allow the configuration of things shared by clients and a server. For this reason, a player joining a server with a different common configuration can have issues.

### Conqueror Haki :

#### The one

The "*isConquerorTheOneModeOn*" parameter allow to choose if Conqueror Haki can randomly be gifted to players when they first join the world. By default this parameter is set on true.

The "*chanceToGetConquerorHakiOnSpawn*" parameter allow to choose what are the chances to be gifted Conqueror Haki if the previous parameter is set to true (this parameter is only took into account if the "*isConquerorTheOneModeOn*" is set on true. By default this parameter is set on 5.0 (5% of chance).

#### Advancements

The "*isConquerorAdvancementModeOn*" parameter allow to choose if Conqueror Haki can be gifted to players that complete every vanilla **Advancement**. By default this parameter is set on true.

#### Haki Mastery

The "*isConquerorHakiMasteryModeOn*" parameter allow to choose if Conqueror Haki can be gifted to players that master at its full extent Armament Haki and Observation Haki. By default this parameter is set on false.

### Maximum Devil Fruits Spawn Chance

The "*maxChanceForDevilFruitToSpawn*" parameter allow to choose the maximum chance for a devil fruit to spawn in a loot chest. This value is not the chance for a devil fruit to spawn, but the maximum chance it can get. For example if this paramter is set on 50.0 (50%), then a devil fruit will never have more than 50% of chance to be generated. By default this parameter is set on 100.0 (100%).

### Haki in survival

The "*canGetHakiInSurvival*" parameter allow to choose if **Haki** can be obtained in survival. By default this parameter is set on true.

### Loosing Devil Fruits on Death

The "*doesDeathRemoveDevilFruit*" parameter allow to choose if **Devil Fruits** should be lost when its user die. If this parameter is set on false, then the user will lost **Mastery Experience** when they die and only lost their fruit if their mastery experience reach 0. By default this parameter is set on false.

### Maximum Edible Devil Fruits in Creative

The "*maxCreativeFruits*" parameter allow to choose how much **Devil Fruits** a creative player can eat. By default this parameter is set on 5.

### Logia Invulnerability

The "*areLogiaInvulnerable*" parameter allow to choose if **Logia** type **Devil Fruits** users have their invulnerability or not. By default this parameter is set on true.

### Entities spawning with Haki

The "*chanceForAnEntityToSpawnWithHaki*" parameter allow to choose what are the chances for a living entity to spawn with Armament Haki (allowing them to hurt **Logia** user with physical attacks). Entities spawning with **Haki** with this configuration can only physically hurt **Logia** user, for example projectiles are not imbued with **Haki**, while their melee attacks still deal damage. By default this parameter is set on 0.0 (0%).

### Additional rows of ability

The "*additionalRowOfAbilityInAbilityInventory*" parameter allow to choose how much additional row of ability players should have in their Ability Inventory. By default this parameter is set on 4.