Skip to content

Documentation settings.yml

Penal Buffalo edited this page Nov 28, 2023 · 35 revisions
This page was last updated for LevelledMobs 3.13.3 b801

Should LM stop sending packets if an entity has died?

assert-entity-validity-with-nametag-packets: true
  • true - Once an entity has reached zero health, packets for that entity will no longer be sent.

  • false - Once an entity has reached zero health, LM may send extra packets to try make sure the entity's nametag data (such as their health) is accurate.

This setting attempts to fix a compatibility issue with ViaBackwards where VB detects LM sending name tag packets of entities which are dead.

It is not recommended that you change this setting unless you understand exactly what you are doing.



Automatic Asynchronous Nametag and Level Updater

async-task-update-period: 6
async-task-max-blocks-from-player: 100

This setting will check the the area within X blocks of a player, where X is the async-task-max-blocks-from-player:, for any entities which should have been levelled, LM nametagged, or are missing attributes for whatever reason.

The async-task-update-period: is counted in seconds.



Customize Summon Command Limit

customize-summon-command-limit: 10

This setting will forcibly limit the number of entities which can be summoned with LM's /lm summon command per use.

This is used to help prevent any accidents or overloading your server with countless entity summons.



Head Drop Multiplier

mobs-multiply-head-drops: false
  • true - Mob head item drops will not be multiplied if they otherwise would be.
  • false - Mob head item drops will be multiplied as if they were any other material drop.

On some servers, heads are considered too valuable of a resource to be multiplied alongside the other drops of an entity. This setting allows you to decide whether you want to allow these drops to multiply alongside everything else that would have dropped.



Customize Command Drop Limiters

customcommand-amount-limit: 100

This helps to prevent any accidental crashes through an entity running more commands than your server can handle upon death. This will set a hard-limit on any custom commands dropped through the Custom Drops system, overriding any set amount: which is above this value.



Mob Processing Delay

mob-process-delay: 0

This will add an additional amount of delay, counted in ticks, before LM begins to process the entity. Adding delay is only useful in situations where other plugins need time to process before LM applies any values.

It is not recommended that you change this setting.



Summon Command Spawn-Distance-from-Player

summon-command-spawn-max-distance-from-player: 5

This will determine the maximum distance from a player an entity will spawn when you utilize /lm summon <quantity> <entity> <level> here.


summon-command-spawn-min-distance-from-player: 3

This will determine the minimum distance from a player an entity will spawn when you utilize /lm summon <quantity> <entity> <level> here.



Kill-Skip Conditions

kill-skip-conditions:
  nametagged: true
  tamed: true
  leashed: true
  convertingZombieVillager: true

For each kill-skip condition above:

  • true - Entities under that condition will be skipped during LM's kill command.
  • false - Entities under that condition will not be skipped during LM's kill command.

These will specify what entities are skipped when you utilize /lm kill.

This is useful to prevent any pets or other unintended entity deaths.

It is recommended that you do not adjust these settings without knowing what you are doing.



Use Translation Components

use-translation-components: true
  • true - Any default entity names will be displayed to the player in the native language used in the players' client.
  • false - Some older and customized clients do not support this feature, so you may disable this if your servers' environment requires this circumvention.

This system provides a quality of life mechanism and should be enabled in most situations; this feature does not exist in older Minecraft clients and some customized clients, and can result in broken names being displayed to the player. Should your server necessitate this kind of circumvention, then by disabling this feature you are instead referencing an internal table of English names. You can still modify the name of entities via the apply-setting: entity-name-override: feature of the rules.yml.



Verify Entities on Chunk Load

ensure-mobs-are-levelled-on-chunk-load: true
  • true - Loaded chunks nearby players will be checked for any entities which are missing a level which should not be.
  • false - Entities which were not levelled for whatever reason will not be double-checked.

This system acts like a janitor, checking loaded chunks nearby players for any entities which should be levelled and are not.

It is recommended that you do not change this setting if you do not understand its effects.



Attributes Use Preset Base-Values

attributes-use-preset-base-values: false
  • true - Use the static, predefined entity attribute values.
  • false - Collect the attributes from the spawned entity itself.

In LM v2, we used a static file to generate the entity attributes. This helped to eliminate compatibility issues that existed at the time. Since then, we have significantly changed how attributes are gathered and modified. With that in mind, we decided to offer the static file as a backup solution in case future issues arise. It is not recommended that you alter this setting.



Use 'CustomName' for Entity Nametags

use-customname-for-mob-nametags: false
  • true - Use the entity's CustomName field for the LM nametag.
  • false - Fake LM's nametag using packets through the ProtocolLib plugin.

Prior to LM v2, we used the real nametag associated with entities when applying the LM nametag. This caused conflicts with other plugins, and was overriden when players put name tags on mobs.

Since LM v2, we now fake the effect using packets through the ProtocolLib plugin. It factors in players using nametags and such.

As a backup solution we have this config which allows you to revert to a very similar process which LM v1 used to process nametags. It is not recommended that you alter this setting.

This setting is irreversible!



Print LM Summon Command Results to Console/Player

print-lm-summon-results: true
  • true - When enabled, use of the LM Summon Command will be output into console.
  • false - When disabled, use of the LM Summon Command will not be output into console.

This setting manages whether the LM Summon Command output text will be displayed in the console or not. Disabling this setting might be useful if you utilize the command regularly or repeatedly which might fill the console with notices.



Level Entities on Spawn

level-mobs-upon-spawn: true
  • true - Once an entity has been spawned into the world, LM will immediately attempt to apply a level to the entity.
  • false - Entities will not receive a level until they either take damage from a player or have targeted a player.



Chunk Kill Count System

exceed-kill-in-chunk-message: true
  • true - When the chunk kill count system is enabled and reaches the threshold for max deaths a chunk, a message will be sent to the player that killed the mob.
  • false - No messages will be sent to any players for the chunk kill count system.



Check Mob Rule Hash

check-mob-hash: true

A new feature as of LM 3.12.0 b770, mobs which have been levelled by LevelledMobs will receive a uniquely generated hash key. This key is unique to the settings and layout of your rules.yml and is generated during server startup and any /lm reload thereafter. This setting handles what the listener will do when it detects a hash key that does not match to the current rules hash key. This task is performed during the automatic asynchronous tasks ping (default of six seconds) as well as when chunks are loaded and the level verification listener is performing. It is recommended that you do not change this setting as this resolves a long-standing issue of out-dated levelled mobs existing in long-forgotten unloaded chunks.

  • true - When an entity is determined to have a missing or invalid hash key, the entity will immediately be re-evaluated using the current rules arrangement and receive an updated hash key.
  • false - Entities will not be re-evaluated if there is a missing or invalid hash key. This means that entities which had become unloaded during a previous hash of the rules will not be re-evaluated once they become reloaded.



Player Levelling Strategy Settings

player-levelling-relevel-min-time: 5000

player-levelling-relevel-min-time: represents the time, in milliseconds, before an entity is updated against the nearest player. Setting this to 0 will prevent any relevelling.

These settings revolve around the levelling strategy known as Player Levelling.



Nametag Placeholder Distance

nametag-placeholder-maxblocks: 30

nametag-placeholder-maxblocks: represents the the maximum distance from the player an entity can be to be registered under %levelledmobs_mob-target%.



Updates and Debug Settings

use-update-checker: true
debug-entity-damage: false
debug-misc: [ '' ]
file-version: 30

use-update-checker: When set to true, this will notify you once at server startup whether you have an up-to-date version of LM.

debug-entity-damage: When set to true, this will display detailed attribute information in-game when you hit an entity.

debug-misc: Refer to settings.yml/Debug-Misc for further details.

file-version: This value represents the config processing version. Do not alter this value, or you may break your plugin and configs.

Clone this wiki locally