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

Started by jhein48 on Thu, 12/06/2018 - 09:20

Topic category: Help with MCreator software

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I get the current entity(player)'s username?
Thu, 12/06/2018 - 09:20

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

Last seen on 19:31, 21. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.