No color, boldness, italic and underlined please add

Started by TTrixPlays on

Topic category: Advanced modding

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No color, boldness, italic and underlined please add

I made it when i type /test in chat it comes up with test but i want it to come up with dark red, bold, italic and underlined does anyone know how to do that it would be lovely here is the code on it.

 

var1.sendMessage(new TextComponentString("Test!"));   if (true) { System.out.println("&aCommands Working!");   Can someone just add the color and other things please :)
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You just need to use
Sun, 08/20/2017 - 00:39

You just need to use TextFormatting

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you please edit it
Sun, 08/20/2017 - 00:43

Can you please edit it because I don't know how to do that

 

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do i use &, % or the weird s
Sun, 08/20/2017 - 00:59

Do i use &, % or the weird s

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just use TextFormatting
Sun, 08/20/2017 - 00:59

Just use TextFormatting.FORMATING+YOUR_TEXT , for example, TextFormatting.RED+"I am a pretty red text!"
Also, you can not parse the formatting to System.out PrintStream (Ok, technically you can, but is quite hacky, probably working only under specific conditions, and also practically you have not any reason to do so as end-user will not have some specific reason to look for it) 

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use the wierd S.
Sun, 08/20/2017 - 01:01

Use the wierd S.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm bad at this
Sun, 08/20/2017 - 01:11

I'm bad at this

C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_test.java:100: error: not a statement
         TextFormatting.RED+"I am a pretty red text!"
                           ^
C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_test.java:100: error: ';' expected
         TextFormatting.RED+"I am a pretty red text!"

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Next time please post your
Sun, 08/20/2017 - 01:26

Next time please post your code (and by that I mean to post it somewhere on pastebin with correct syntax highlight).
However, I guess you have just written TextFormatting.RED+"I am a pretty red text!". It does not work in this way. You have to use it as a parameter for TextComponentString .

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't understand that sorry
Sun, 08/20/2017 - 01:28

I can't understand that sorry...

 

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It just keeps saying cannot
Sun, 08/20/2017 - 01:39

It just keeps saying cannot find symbol.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can be used the §x in the
Sun, 08/20/2017 - 05:10

Can be used the §x in the text input instead of these codes?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First of all, if you expect
Sun, 08/20/2017 - 09:27

First of all, if you expect from me that I will just write the whole code for you, you have the wrong person. 2nd, you did not do what I have said. You have to do just one thing, use it as a parameter for TextComponentString, that you already have in the very first generated code. 
An example of parameter : worldObj.getBlockState(pos) , or new ItemStack(Items.stick)
The bold part from both of these is a paramter.
 

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't you just use §?
Sun, 08/20/2017 - 10:31

Can't you just use §?

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You cant It dosnt work
Sat, 09/02/2017 - 01:09

You cant

It dosnt work