How to set a GUI text label to players name

Started by derpy588 on Mon, 06/07/2021 - 23:58

Topic category: Help with modding (Java Edition)

Last seen on 20:20, 15. Jun 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to set a GUI text label to players name
Mon, 06/07/2021 - 23:58

Hello,

I am new to MCreator, but I am creating a GUI and made a text label and I want to set the label to the players name. How can I do that. Thank you!

 

Last seen on 01:59, 30. Jul 2021
Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use a global variable with a…
Tue, 06/08/2021 - 11:44

Use a global variable with a player scope and then, set this variable to the player’s name when the action you want is executed.

Last seen on 20:20, 15. Jun 2021
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay thank you. It worked.
Tue, 06/08/2021 - 19:14

Okay thank you. It worked.