I need help with nbt tags and targets

Started by @Zyrex on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with nbt tags and targets

hi again, i'm making a procedure that it's put in the AI of the mobs. especifically the blocks of "attack all entities of type (). conditions [oo]".

the procedure detecs the tags of the entity and the entity being targeted. if both of them have the same nbt text tag "team" then it set the attack target to (null entity).

the problem is that it crashes with the "get attack target of event/target entity".

i tried again but replacing the nbt custom text tags with actual "element tags".i used the procedure block "entity is tagged as (minecraft:generic name)" but it still didnt work so i can confirm that is the "get attack target of event/target entity" procedure block.

and i know that its better to just use the Scoreboard teams with commands but that is completely useless for my mod because it needs to also tag Blocks.

if anyone has any way to make this work or to repair the "get attack target of event/target entity" i would be very gratefull.

thanks to anyone trying to help!