Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Specifying a color at the beginning of a string using [ ] string formatting sets the entire string to that color #1452

Open
LegendaryRylex opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
1: Bug Problem with the usage of a mod. FTB Quests

Comments

@LegendaryRylex
Copy link

Mod

FTB Quests

Mod version

ftb-quests-neoforge-2102.1.7

NeoForge / Forge / Fabric version

NeoForge - 21.1.93

Modpack & version

FTB Evolution

What issue are you having?

When editing text using string formatting [ ], setting the color on the first string using {"color": "#HEX"} changes the default string color.

Having an empty string "" at the start of the [ ] retains the default string color (white).

FTB Quest Example string edit
FTB Quest Example text

Crashlogs

No response

Steps to reproduce

Create a new quest and edit its description with the following examples:

[{"text": "This is", "color": "#55ffff"}, " example one."]
["", {"text": "This is", "color": "#55ffff"}, " example two."]
[{"text": "This is", "color": "#55ffff"}, {"text": " example", "color": "#ffffff"}, " three."]

Anything else to note?

This could be a default minecraft feature with how they handle string manipulation but would require more testing in an unmodded client.

@LegendaryRylex LegendaryRylex added the 1: Bug Problem with the usage of a mod. label Jan 7, 2025
@MichaelHillcox MichaelHillcox moved this to Backlog in Mods Backlog Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1: Bug Problem with the usage of a mod. FTB Quests
Projects
Status: Backlog
Development

No branches or pull requests

3 participants