How to track an entity with an nbt tag.

Started by mdpotato on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to track an entity with an nbt tag.

i have an item that when you hit an entity it gives them a logic nbt variable for true and i want to make a procedure to explode at every entity with that nbt tag.

how would i do this?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
anyone who finds this, you…
Thu, 03/24/2022 - 12:56

anyone who finds this,

you can just use the global trigger to add the nbt tag and use the same nbt tag check to explode them

my issue was that i wanted to do it in a command and didnt add the ForgeData parent tag