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

Hey,

 

in 1.6 (first line below) the color formatting worked fine in console. Now switching to 1.7 (second line) it doesn't work anymore. I couldn't find anything specific on this topic. Do I need to do something else or has the color support on console been dropped?

 

sender.sendChatToPlayer(ChatMessageComponent.createFromText(EnumChatFormatting.RED + "text goes here");
sender.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "text goes here");

sender.sendChatToPlayer(ChatMessageComponent.createFromText(EnumChatFormatting.RED + "text goes here");
sender.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "text goes here");

 

I don't know know what "sender" is, but looking at the code it should work.

  • Author

Sender is the normal ICommandSender.

when using colors it looks like this in the console, while it was displayed properly with 1.6:

?eEntityTFDeer ?7twilightforest.entity.passive.EntityTFDeer

What do you mean by console? This should work fine for the in-game chat gui, but it won't work in the application console (you can only have two colours depending on whether you use System.out or System.err)

BEFORE ASKING FOR HELP READ THE EAQ!

 

I'll help if I can. Apologies if I do something obviously stupid. :D

 

If you don't know basic Java yet, go and follow these tutorials.

  • Author

here an example:

1.6 with the code I referenced above:

RELpkRb.png

1.7 with the code I referenced above:

6EZ6Uno.png

I'm just gonna ask - were you (then) and are you now using normal server? (clean forge with just your mod, counting dev. env.)

Judging from output 1st picture looks like cauldron which had support for colored console msgs.

1.7.10 is no longer supported by forge, you are on your own.

  • Author

I'm just gonna ask - were you (then) and are you now using normal server? (clean forge with just your mod, counting dev. env.)

Judging from output 1st picture looks like cauldron which had support for colored console msgs.

ohh, didn't know that, thanks.

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.