engine attributes - magemonkeystudio/divinity GitHub Wiki
attributes
𧬠Engine Config: This section controls how Divinity handles item durability, offhand behavior, and whether mobs and players are affected by attribute effects.
π Options
Key | Description |
---|---|
durability.break-items-on-zero |
Whether items break when durability reaches 0 (like vanilla). |
durability.effective-for.mobs |
If true, mob equipment is affected by durability usage. |
durability.effective-for.skill-api-skills.* |
Controls whether casting or using skills applies durability loss. |
effective-for-mobs |
If true, mobs can use custom damage/defense stats from plugins like MythicMobs. |
effective-in-offhand |
If true, offhand items can apply attribute effects. |
allow-hold-items-you-cant-use |
If true, players can hold gear that doesn't meet requirements (but no effects will apply). |
π§ͺ Example
attributes:
durability:
break-items-on-zero: true
effective-for:
mobs: true
skill-api-skills:
cast: true
left_click: true
right_click: true
initialize: false
cleanup: false
effective-for-mobs: true
effective-in-offhand: false
allow-hold-items-you-cant-use: false
π§ Breakdown
-
Durability Hooks:
Skill usage can wear down items ifskill-api-skills
options are enabled.
Perfect for servers where durability matters in PvP or combat skill usage. -
Mob Support:
Mobs can inherit full stat logic ifeffective-for-mobs
is true, including custom defense, damage types, and buffs. -
Offhand Attributes:
Enables or disables attributes from shields, tomes, or custom offhand tools. -
Holding Restricted Items:
Settingallow-hold-items-you-cant-use
to true lets players hold gear they donβt qualify for, but it will have no stat effect.
π Related
- engine-combat β For PvP modifiers and shield behavior
- engine-lore β For formatting durability and requirements visually