How do I get the current entity(player)'s username?

Started by jhein48 on

Topic category: Help with MCreator software

Last seen on 00:29, 9. Dec 2018
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I get the current entity(player)'s username?

Hi there,

I am making a Minecraft mod, and I have a certain item. I want it to be that when something happens, it will set a variable to the player holding the item's username. Tons of blocks can find out the player's username, but none can tell me it, or set it to a variable. Can you please help? I am using the latest version of MCreator, and the variable type is a string. Please help!

From,

jhein48

This is not possible yet…
Thu, 12/06/2018 - 15:41

This is not possible yet. You can open a feature request on our issue tracker to get this implemented in the future.

Last seen on 00:29, 9. Dec 2018
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh. Ok, thanks! 
Fri, 12/07/2018 - 06:21

Oh. Ok, thanks! 

Last seen on 20:24, 25. Aug 2020
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this is an old thread…
Sun, 05/17/2020 - 14:17

I know this is an old thread, but for those who are also searching for how to do it, as of 2020.2, you can use the 'Get display name of provided entity' block.

Last seen on 03:06, 7. Nov 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! This will help a lot
Sun, 07/04/2021 - 20:10

Thanks! This will help a lot