No color, boldness, italic and underlined please add

Started by TTrixPlays on

Topic category: Advanced modding

Last seen on 05:59, 8. Jul 2020
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 :)
Last seen on 17:17, 10. Jan 2024
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

Last seen on 05:59, 8. Jul 2020
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

 

Last seen on 05:59, 8. Jul 2020
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

Last seen on 17:17, 10. Jan 2024
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) 

Last seen on 22:55, 14. Mar 2019
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.

Last seen on 05:59, 8. Jul 2020
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!"

Last seen on 17:17, 10. Jan 2024
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 .

Last seen on 05:59, 8. Jul 2020
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...

 

Last seen on 05:59, 8. Jul 2020
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.

Last seen on 17:49, 25. Mar 2021
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?

Last seen on 17:17, 10. Jan 2024
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.
 

Last seen on 19:56, 11. Aug 2019
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 §?

Last seen on 05:59, 8. Jul 2020
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