Get entity by nickname

Started by MihlanDOta on Sat, 01/23/2021 - 15:35

Topic category: Help with modding (Java Edition)

Last seen on 16:56, 5. May 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Get entity by nickname
Sat, 01/23/2021 - 15:35

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 01:13, 28. Mar 2022
Joined Oct 2019
Points:

User statistics:

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