check if an entity is named a certain way

Started by Mopru on

Topic category: Help with Minecraft modding (Java Edition)

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?

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!

Joined Jan 2023
Points:

User statistics:

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

thanks!