Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi guys,

 

In 1.6 I used to add colours to my chat texts by adding a "\247" followed by a colour code. This enabled colouring bits of texts (i.e. a word or two in a line).

 

In 1.7 it still works, except that I can't find a way to get the colour to continue on the next line. This is my code:

 

ChatComponentText cc=new ChatComponentText(s);

Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(cc);

 

If I have a code switching the text to say blue on line one, it will work, but line two will revert to white.

 

I can do multi-line colouring, but with getChatStyle().setColor(colour), and that only works to colour the entire text as far as I can tell.

 

Anybody has some sample code of a way to do this?

 

Thanks

 

K.

Yeah, we all have been having this problem.

 

Even for me, I can't find a fix on how to use color on a seperate line.

You can however do the color code / color enum for it, but changing the GUI scale for chat would make that color discontinue.

 

I'll check back if I ever find a fix for it, or someone finds a fix (in this subject)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.