name tag help

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

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

Last seen on 14:53, 23. Aug 2023
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"):