[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs:wiki\u002FGuides\u002FHealth-Displays":3},{"html":4,"title":-1,"frontmatter":5},"\u003Cp>\u003Cstrong>Difficulty: Beginner\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>You may want to display your mobs health to players who are fighting it, there are a few different ways of doing this and this guide will go over them!\u003C\u002Fp>\n\u003Ch1>Boss Bars\u003C\u002Fh1>\n\u003Cp>You can create a Boss Bar for your mob and use it to display your mobs health much like the Ender Dragon or Wither has. The process is simple.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletonKing\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  BossBar\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">    Enabled\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-bool\">true\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">    Title\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-string\">&#39;&amp;cSkeleton King!&#39;\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">    Range\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-number\">50\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">    Color\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">GREEN\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">    Style\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">SEGMENTED_12\u003C\u002Fspan>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch1>Nameplate\u003C\u002Fh1>\n\u003Cp>You can display the mobs health in its nameplate above it, you can do this many different ways, here are 2 examples, one which shows the mobs health as a number (15\u002F20) and another which has a bar that changes as the mob loses health.\u003C\u002Fp>\n\u003Ch3>Number\u003C\u002Fh3>\n\u003Cp>You will need to use the \u003Ca href=\"\u002Fmechanics\u002Fsetname\">SetName\u003C\u002Fa> mechanic and the \u003Ca href=\"\u002Ftriggers\u002Fdamaged\">~onDamaged\u003C\u002Fa> trigger. We will use the mobs display option to set the information. We are using the caster.hp and caster.mhp placeholders to get the current HP and the max HP.\u003C\u002Fp>\n\u003Cpre class=\"language-yaml\">\u003Ccode class=\"language-yaml\">\u003Cspan class=\"yaml-key\">SkeletonKing\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Type\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">WITHER_SKELETON\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Display\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">: \u003C\u002Fspan>\u003Cspan class=\"yaml-string\">&#39;&amp;6Skeleton King &amp;7(&lt;caster.hp&gt;\u002F&lt;caster.mhp&gt;)&#39;\u003C\u002Fspan>\n\u003Cspan class=\"yaml-key\">  Skills\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">:\u003C\u002Fspan>\n  \u003Cspan class=\"yaml-plain\">-\u003C\u002Fspan> \u003Ca class=\"mythic-ref\" data-mythic-ref=\"m:setname\">setname\u003C\u002Fa>\u003Cspan class=\"yaml-punc\">{\u003C\u002Fspan>\u003Cspan class=\"yaml-plain\">n\u003C\u002Fspan>=&lt;\u003Cspan class=\"yaml-plain\">caster.name\u003C\u002Fspan>&gt;;\u003Cspan class=\"yaml-plain\">delay\u003C\u002Fspan>=\u003Cspan class=\"yaml-number\">2\u003C\u002Fspan>\u003Cspan class=\"yaml-punc\">}\u003C\u002Fspan> @\u003Ca class=\"mythic-ref\" data-mythic-ref=\"t:self\">self\u003C\u002Fa> ~\u003Ca class=\"mythic-ref\" data-mythic-ref=\"tr:onDamaged\">onDamaged\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n",{"menu":6},"false",1779063036711]