Wiki 9Minecraft Wiki 9Minecraft
Minecraft Legends › Entities › badger:difficulty_modifier_resistance

badger:difficulty_modifier_resistance

Minecraft Legends

Entities
Official docs

Modifiers for damage resistances based on difficulty

TypeNameDefault ValueDescription
JSON Objectcustom_game_settingsDefines what custom game settings affect this numeric modifier.<br/><h5><p id="numeric_modifier_type">numeric_modifier_type</p></h5>What type of modifier the named custom game setting will apply on this entity. Valid values are pre_multiply, pre_add, pre_subtract, pre_divide, and their corresponding 'post_' counterparts. The effects of multiple game settings set to the same modifier WILL stack.</br><br><h5><p id="scaling_factor">scaling_factor</p></h5>A multiplier that changes how much the custom game setting will affect this numeric modifier. This is useful for when multiple numeric modifiers need to use the same custom game setting, but scale with it differently. The formula for this is: '((CustomGameSettingValue - 1.0) * ScalingFactor) + 1.0'</br><br><h5><p id="setting_name">setting_name</p></h5>Name of the custom game setting to read from.</br><br>
Arraydamage_typesThe modifiers for specified damage types as json key names. Modifiers not specified in this array will affect damage resistance across all types.<br/><h5><p id="append_resistance_to_entities">append_resistance_to_entities</p></h5>Boolean to append the resistance to entities if absent from the mob data.</br><br><h5><p id="custom_game_settings">custom_game_settings</p></h5>Defines what custom game settings affect this numeric modifier.</br><br><h5><p id="numeric_modifier_type">numeric_modifier_type</p></h5>What type of modifier the named custom game setting will apply on this entity. Valid values are pre_multiply, pre_add, pre_subtract, pre_divide, and their corresponding 'post_' counterparts. The effects of multiple game settings set to the same modifier WILL stack.</br><br><h5><p id="scaling_factor">scaling_factor</p></h5>A multiplier that changes how much the custom game setting will affect this numeric modifier. This is useful for when multiple numeric modifiers need to use the same custom game setting, but scale with it differently. The formula for this is: '((CustomGameSettingValue - 1.0) * ScalingFactor) + 1.0'</br><br><h5><p id="setting_name">setting_name</p></h5>Name of the custom game setting to read from.</br><br><h5><p id="difficulties">difficulties</p></h5>The settings for each difficulty.</br><br><h5><p id="Custom">Custom</p></h5>Custom difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Easy">Easy</p></h5>Easy difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Hard">Hard</p></h5>Hard difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Normal">Normal</p></h5>Normal difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Peaceful">Peaceful</p></h5>Peaceful difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="name">name</p></h5>Name of damage type.</br><br>
JSON ObjectdifficultiesThe settings for each difficulty.<br/><h5><p id="Custom">Custom</p></h5>Custom difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Easy">Easy</p></h5>Easy difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Hard">Hard</p></h5>Hard difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Normal">Normal</p></h5>Normal difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br><h5><p id="Peaceful">Peaceful</p></h5>Peaceful difficulty modifiers</br><br><h5><p id="post_add">post_add</p></h5>Amount to add after all other modifier values.</br><br><h5><p id="post_multiply">post_multiply</p></h5>Percentage to multiply the value by after all pre modifier values are applied.</br><br><h5><p id="pre_add">pre_add</p></h5>Amount to add after pre multiply values, but before any other modifier values.</br><br><h5><p id="pre_multiply">pre_multiply</p></h5>Percentage to multiply the value by before any other modifier values are applied.</br><br>