MythicStats
MythicAttributes|MythicStats
The MythicAttributes|MythicStats|Stats section is a declarative shorthand for applying MythicMobs stat modifiers without writing full skill line syntax. Each entry generates a pair of synthetic skill lines — one on ~onEquip to apply the modifier, and one on ~onUnequip to remove it.
Unlike Attributes, which writes modifiers into item metadata (visible in tooltips, persistent), MythicAttributes|MythicStats|Stats applies modifiers directly to the entity through MythicMobs' stat system. They are transient — not stored on the item, not visible in the tooltip, and re-applied whenever the item is equipped. You'll notice through the Page We use Stats, MythicStats, or MythicAttributes, Either is applicable as one is an Alias of the other.
Syntax
example_enchant:
Display: "<yellow>Example Enchant"
MythicStats:
- <STAT> <AMOUNT> [TYPE]
Each line follows this format:
| Part | Required | Description |
|---|---|---|
STAT |
Yes | The MythicMobs stat name (see Stats) |
AMOUNT |
Yes | A numeric value or <math:> expression |
TYPE |
No | The modifier type (see Types). Defaults to ADDITIVE |
Example
example_enchant:
Display: "<yellow>Example Enchant"
MythicAttributes:
- POWER 10
- CRITICAL_STRIKE_CHANCE 5
- ATTACK_DAMAGE <math:enchant_level*2>
- MOVEMENT_SPEED 0.1 ADDITIVE_MULTIPLIER
Stats
These are the built-in stats registered by MythicMobs. Custom stats defined in your MythicMobs configuration are also valid.
Damage
| Stat | Description |
|---|---|
BONUS_DAMAGE |
Flat bonus added to outgoing damage |
PERCENT_DAMAGE |
Percentage bonus to outgoing damage |
CRITICAL_STRIKE_CHANCE |
Chance to land a critical hit |
CRITICAL_STRIKE_DAMAGE |
Multiplier applied on a critical hit |
CRITICAL_STRIKE_RESILIENCE |
Reduces incoming critical hit damage |
DODGE_NEGATION |
Reduces target's chance to dodge |
PARRY_NEGATION |
Reduces target's chance to parry |
Defense
| Stat | Description |
|---|---|
DEFENSE |
Flat damage reduction |
DAMAGE_REDUCTION |
Percentage damage reduction |
DODGE_CHANCE |
Chance to completely avoid an attack |
PARRY_CHANCE |
Chance to parry an attack |
PARRY_POWER |
Damage reduction when a parry triggers |
PARRY_COUNTERATTACK |
Damage dealt on a successful parry |
HEALTH_REGENERATION |
Passive health regeneration |
LIFESTEAL_CHANCE |
Chance to lifesteal on hit |
LIFESTEAL_POWER |
Amount of health restored on lifesteal |
General
| Stat | Description |
|---|---|
POWER |
General power stat used in skill scaling |
LOOT_BIAS |
Influences loot roll outcomes |
Vanilla (mapped to Bukkit attributes)
| Stat | Description |
|---|---|
ATTACK_DAMAGE |
Melee attack damage |
ATTACK_SPEED |
Attack speed |
HEALTH |
Maximum health |
ARMOR |
Armor points |
ARMOR_TOUGHNESS |
Armor toughness |
MOVEMENT_SPEED |
Movement speed |
FLYING_SPEED |
Flying speed |
KNOCKBACK_RESISTANCE |
Resistance to knockback |
FOLLOW_RANGE |
Entity follow/detection range |
SCALE |
Entity scale |
STEP_HEIGHT |
Step height (auto-climb) |
JUMP_STRENGTH |
Jump strength |
GRAVITY |
Gravity multiplier |
SAFE_FALL_DISTANCE |
Distance before fall damage begins |
FALL_DAMAGE_MULTIPLIER |
Multiplier applied to fall damage |
BLOCK_BREAK_SPEED |
Block breaking speed |
BLOCK_INTERACTION_RANGE |
Block interaction reach |
ENTITY_INTERACTION_RANGE |
Entity interaction reach |
MOVEMENT_EFFICIENCY |
Movement efficiency on slow blocks |
SNEAKING_SPEED |
Movement speed while sneaking |
WATER_MOVEMENT_EFFICIENCY |
Movement efficiency in water |
OXYGEN_BONUS |
Bonus oxygen/breath |
BURNING_TIME |
Duration of fire on entity |
EXPLOSION_KNOCKBACK_RESISTANCE |
Resistance to explosion knockback |
Modifier Types
Controls how the amount is applied relative to the entity's base stat value.
| Type | Description |
|---|---|
ADDITIVE |
Adds a flat value to the stat. Default. |
ADDITIVE_MULTIPLIER |
Multiplies the base stat — e.g. 0.1 = +10% |
COMPOUND_MULTIPLIER |
Multiplies the running total including other multipliers |
SETTER |
Overrides the stat to the exact value |
Math Expressions
The AMOUNT field supports <math:> expressions for level-scaling modifiers.
Stats:
- ATTACK_DAMAGE <math:enchant_level*2>
- CRITICAL_STRIKE_CHANCE <math:enchant_level*3>
- MOVEMENT_SPEED <math:enchant_level*0.02> ADDITIVE_MULTIPLIER
All standard enchantment variables are available: enchant_level, enchant_maxlevel, etc.
Notes
- Modifiers are identified internally by a stable source key derived from the enchant ID and stat name, ensuring the correct modifier is always removed on unequip.
- Because modifiers are transient, they are lost on server restart and re-applied the next time the item is equipped.
- Unknown stat names will log a warning and produce no effect.
- For item-level attribute modifiers that appear in the item tooltip and persist on the item, use Attributes instead.
Comparison: Attributes vs MythicStats
Attributes |
MythicStats |
|
|---|---|---|
| Mechanic | enchantitemattribute |
playerstat |
| System | Bukkit attribute API | MythicMobs stat system |
| Stored on | Item metadata | Entity (transient) |
| Visible in tooltip | Yes | No |
| Persists across relog | Yes | Reapplied on login |
| Slot group | Required | Not applicable |
| Triggers | ~onEnchant / ~onEnchantRemove |
~onEquip / ~onUnequip |