Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #207

Closed
Open
Created Dec 03, 2020 by Ashen@AshenGamingDeveloper

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.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking