Entity looks at other invis Entity

Started by DJ_9999 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity looks at other invis Entity

I need desperate help for a mob I´m creating. It´s basically supposed to look at nearby invisible entities, prioritizing the closest one, but I can´t find a way to implement that. 
Does anybody know a procedure that could make that happen?

If there are other ways of making the invis entity(or entities) visible (by making them glow in a radius for example) please tell me! I just need to find a way that the puppet can find nearby invisible entities. Please help!

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeahh so uhh in the ai tasks…
Thu, 09/11/2025 - 19:56

yeahh so uhh

in the ai tasks section of the mob editor, for the "look at nearby entities of type [entity]" block, in the entity selection dropdown menu, there should be an option to just look at all mobs of any type. select that one.

then, in the "Conditions: ∞" dropdown, click on that, then create a new condition procedure to check if the mob currently has the invisibility effect.

if this doesn't work, then you could literally make a procedure that executes upon every mob tick that checks for nearby mobs, checks if they have the invisibility effect, then turns the mob rotation to face that mob. this is complicated and involves trigonometry math stuff though