LevelledMobs icon indicating copy to clipboard operation
LevelledMobs copied to clipboard

Original Hex-Color from entity changes to default Minecraft Color

Open 4L0N50asd opened this issue 7 months ago • 3 comments

Describe the bug The original Hex-Color from a Custom Name of an entity changes to default Minecraft Color Codes.

I'm wanted to do some custom mobs using Skript. I wanted to use Spawn Event, then i change their Custom Name using a Hex Colored name.

Inmediatly Levelled Mobs changes their display name and adds the level and health indicator, and also changes the color of the entity, which originally was Hex color code, turns into the Minecraft Color Code (&0-9, &a-f).

This issue can also be replicated summoning any entity with a Custom Name using Hex Code.

Steps to Reproduce

  1. Summon any entity with a Custom Name and using Hex Color Code
/summon minecraft:phantom ~ ~ ~ {NoAI:1b,CustomName:'{"text":"","extra":[{"text":"Hello World XD","color":"#F0E689"}]}'}

This will generate a phantom named "Hello World" in yellow color. 2. Wait until Levelled Mobs updates their display name and adds the Level and Health

Expected behavior I should see the mobs i generated with the correct hex color code i wrote.

Screenshots Phantom before LevelledMobs updates it image

Phantom after Levelled Mobs updates it image

Config section where Levelled mobs changes their display name: image

Server software Paper version git-Paper-496 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 7ac24a1 on ver/1.20.4)

LevelledMobs version LevelledMobs version 4.0.6 b35

Config files, if applicable Rules: https://paste.gg/p/defkta/b6688dd0e6da4ad3baea503cfe857ec8/files/506ea47e2f1247798db6dc69858f56f4/raw Settings: https://paste.gg/p/defkta/2c8fc39f6ebc4be2b6d18cdfed89f8bf/files/7046c03675c64f5898455b2ebcfd72d5/raw

4L0N50asd avatar Jul 20 '24 20:07 4L0N50asd