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
  • #1580

Closed
Open
Created Apr 28, 2024 by Mikhail@KazraZeed

Double placeholders don't work

Summary

The placeholder in the placeholder (double placeholder) works only if you specify it inside of the mob file

MM v.5.6.2

Working code (Packs/packname/Mobs/DebugMob.yml):

DebugMob:
  Type: HUSK
  Skills:
  - setvar{var=caster.XpDropLv1;v=50} @self ~onSpawn
  - setvar{var=caster.XpDropLv2;v=100} @self ~onSpawn
  - m{m=Exp is <caster.var.XpDropLv<caster.level>>} @world ~onTimer:100

Double placeholders work in this case. Lv.1 mob writes to the chat "Exp is 50". But it does not work if you make a set of skills with variables in Packs/packname/skills

This code should work, but it doesn't:

(Packs/packname/Mobs/DebugMob.yml)

  DebugMob:
  Type: HUSK
  Skills:
  - skill{s=ExpVarSkil} @self ~onSpawn
  - m{m=Exp is <caster.var.XpDropLv<caster.level>>} @world ~onTimer:100

(Packs/packname/skills/DebugMobSkills.yml)

ExpVarSkill:
  Skills:
  - setvar{var=caster.XpDropLv1;v=50}
  - setvar{var=caster.XpDropLv2;v=100}

!!!But the most terrible thing is that it doesn't work with custom placeholders!!!

Packs/packname/DebugMob.yml:

DebugMob:
  Type: HUSK
  Skills:
  - m{m=Exp is <placeholder.XpDropLv<caster.level>>} @world ~onTimer:100

Packs/packname/placeholders.yml

XpDropLv1: '50'
XpDropLv2: '100'
Edited Apr 28, 2024 by Mikhail
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking