Get entity by nickname

Started by MihlanDOta on

Topic category: Help with modding (Java Edition)

Last seen on 19:18, 16. Jan 2024
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get entity by nickname

Hello, everyone. Could you tell me how to get an entity by nickname? The bottom line is that I have the nickname of a player in a variable of type string, and to this player you need to add points to the scoreboard. How can this be done? Thank you all in advance!

You could do entity in range…
Sun, 01/24/2021 - 09:11

You could do entity in range check and then use additional if to check if the name matches.

Last seen on 15:38, 1. Dec 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
U can create an Entity…
Fri, 02/12/2021 - 13:45

U can create an Entity Iteration, the procedure block is in "World Management" tab.