Feature Suggestion - YAML Templating
Summary
It would be cool if MythicMobs supported YAML Templating as a way to substitute various attributes into a YAML preset (YAML inheritance).
Usage
It would allow for creating a base-tier mob/item and then substituting various attributes into mechanics that the template mob has.
Value
It would allow for much greater control over customising preset mobs and heavily reduce filesizes (both in terms of actual file size and also line length), as well as making things easier when using presets.
Priority
Low priority - I realise this is a very niche request, but could be extremely powerful.
Implementation
Say I have a test mob, I could use the following 'preset' like so:
MyMobPreset: &Preset
Type: Husk
Display: "This is a generic template"
Options:
MovementSpeed: 0.1
Template:
MobToSummon: Orange
Skills:
- &summon summon{t=${{MyMob.Template.MobToSummon}}}
This would mean that I can use a YAML inheritance template:
MyMob:
<<: *Preset
Template:
MobToSummon: Apple
Skills:
- &summon
MyMobPreset
could read ${{MyMob.Template.MobToSummon}}
as Orange
, but when using inheritance, MyMob
could read it as Apple
.