Entity one time targeting

Started by THR-Benjamin on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity one time targeting

So i've been trying to fix an issue with my parasite mob.The issue is that the parasite only targets a mob, once the targeted entity is dead, it just stops targetting entirely.

Any help is appreciated.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how are you making it target?
Sun, 10/12/2025 - 06:29

how are you making it target?

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Via a procedure so it could…
Sun, 10/12/2025 - 09:13

Via a procedure so it could attack anything that is alive, including other mod's entity. And here it is https://ibb.co/M5C27YpH

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try using an ai goal instead…
Sun, 10/12/2025 - 09:50

try using an ai goal instead,

 

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried it already, sure, it…
Sun, 10/12/2025 - 13:58

i tried it already, sure, it works but it also kills its own and when im adding more mobs, they WILL also attack those new mobs.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a tag for the entities…
Sun, 10/12/2025 - 14:03

make a tag for the entities you don't want it to target

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it still doesn't work. Now…
Sun, 10/12/2025 - 14:41

it still doesn't work. Now they just quit attacking anything

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you show how you set it…
Sun, 10/12/2025 - 14:42

can you show how you set it up?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this worked for me,   but…
Mon, 10/13/2025 - 11:06

this worked for me,

 

but the entity will sometimes get "stuck" just staring at another entity without attacking it.

using this block seems to fix that,

 

but also try just reording the blocks,

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I had finally fix it and…
Tue, 10/14/2025 - 09:38

I had finally fix it and figured out the problem with your AI condition. The Event / Target Entity IS the parasite, not the target so I mixed it with my first procrdure and now I got what I need.

 

Anyway, thank you for your help.