check if an entity is named a certain way

Started by Mopru on

Topic category: Help with modding (Java Edition)

Last seen on 21:51, 28. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check if an entity is named a certain way

how do i make so if i name an entity using a name tag, something will happen?

Last seen on 11:10, 24. Jun 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! Go on your desired…
Sat, 07/29/2023 - 18:46

Hello! Go on your desired entity, create an "On Entity Tick Update" procedure.

Inside the procedure, create an if statement and use the "get display name of entity" block and compare it to the string text you want.

Here is a short tutorial image!

[Tutorial Image]

Hope this helps!

Last seen on 21:51, 28. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks!
Mon, 07/31/2023 - 22:39

thanks!