engine lore - magemonkeystudio/divinity GitHub Wiki
lore
๐งพ Engine Config: This section defines how item stats, durability, requirements, and other metadata are visually displayed on item tooltips. It controls both formatting and logic for dynamic item lores.
๐ Sections
The lore
section contains these nested categories:
chars
โ Character symbols used for percent, positive/negative numbers, etc.stats.style.separator
โ Controls how stat values are split and colored.stats.style.durability
โ Format for displaying item durability values or bars.stats.style.damage
โ Format for showing single/double damage ranges.stats.style.charges
โ How charge-based items display usage and limits.stats.style.requirements
โ Visual formatting for level, class, banned-class, and module requirements.stats.style.enchantments
โ Line format for enchantments.fabled-attribute-format
โ Format string for custom attribute lines.
๐งช Example
lore:
chars:
percent: '%'
negative: '&c'
positive: +
multiplier: x
stats:
style:
separator:
value: '&7/'
color: '&f'
durability:
format: default
unbreakable: '&fUnbreakable'
format-list:
default:
'0': '&f%current%&7/&f%max%'
text:
'100': '&aGood &7(%percent%%)'
'70': '&2Pretty good &7(%percent%%)'
'50': '&eDamaged &7(%percent%%)'
'25': '&6Need repair &7(%percent%%)'
'10': '&cAlmost broken &7(%percent%%)'
'0': '&4Broken &7(%percent%%)'
damage:
format:
single: '&f%value%'
double: '&f%min% &7- &f%max%'
charges:
enabled: true
name: Charges
format:
main: '&7%name%: &f%value%'
value:
default: '&f%min%&7/&f%max%'
unlimited: Unlimited
break-items-on-zero:
enabled: true
excluded-modules:
- item_generator
requirements:
user:
dynamic:
enabled: true
format:
'true': '&a&lโ &r&a'
'false': '&c&lโ &r&c'
level:
enabled: true
name: Player Level
format:
main: '&c%state%%name%: &f%value%'
value:
single: '%min%+'
range: '%min%-%max%'
class:
enabled: true
name: Player Class
format:
main: '&c%state%%name%: %value%'
max-classes-per-line: -1
value:
separator: '&7/'
color: '&f'
newline: '&r '
banned-class:
enabled: true
name: Banned Player Class
format:
main: '&c%state%%name%: %value%'
max-classes-per-line: -1
value:
separator: '&7/'
color: '&f'
newline: '&r '
item:
level:
enabled: true
name: Item Level
format:
main: '&cโธ %name%: %value%'
value:
single: '%min%+'
range: '%min% ~ %max%'
module:
enabled: true
name: Item Module
format:
main: '&cโธ %name%: %value%'
value:
separator: '&7/'
color: '&f'
type:
enabled: true
name: Item Type
format:
main: '&cโธ %name%: %value%'
value:
separator: '&7/'
color: '&f'
socket:
name: Socket Type
format:
main: '&cโธ %name%: %value%'
tier:
enabled: true
name: Tier
format:
main: '&cโธ %name%: %value%'
enchantments:
format:
main: '&cโธ %name% %value%'
max-roman: 10
fabled-attribute-format: '&7%attrPre%&3%name%&7%attrPost%'
๐ฌ Notes
- Durability formats (
format-list
) support both numerical and graphical representations like bars or status text. - All placeholders like
%min%
,%max%
,%percent%
, and%name%
will be replaced in-game. โ
andโ
symbols can be customized via thedynamic.requirements.format
section.
๐ Related
- engine-attributes โ Controls how stats apply
- config-tiers โ For tier formatting used in item names
- config-item-definitions โ For item categories and groups