name tag help

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:
name tag help

ill put it simply, how to check if an entity is name tagged a certain way using if blocks?

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do it by using "Get …
Fri, 08/04/2023 - 00:29

You can do it by using "Get [event/target entity] display name", if the nametag name is not the same as the default name of the entity it should work.
Here's an example of how to do it(strikes fake lightning if player right clicks on a pig nametagged with a tag "Peppa"):