ArcanePlugins / LevelledMobs

Level-up mobs on your Spigot/Paper server, RPG-style!
https://www.spigotmc.org/resources/levelledmobs.74304/
GNU Affero General Public License v3.0
206 stars 43 forks source link

Original Hex-Color from entity changes to default Minecraft Color #496

Open 4L0N50asd opened 1 month ago

4L0N50asd commented 1 month ago

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

stumper66 commented 1 month ago

@4L0N50asd Thanks for reporting this issue. It it fixed with LevelledMobs v4.1.0 b45 which can be found in the #dev-builds channel on our discord. This version will be released this week some time.

stumper66 commented 1 month ago

image

4L0N50asd commented 1 month ago

Thank you!