Stalking Entity

Started by BryAstro on

Topic category: Help with modding (Java Edition)

Last seen on 13:20, 16. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Stalking Entity

2023.3 (1.20.1 Forge).

I would like to know how to make an entity that stalks you and does other things such as

  • Running away/going invisible when looked at.
  • Switch between different modes, sometimes just stalking, and other times attacking.
  • Being overall unpredictable.

This is a hard enemy to make, but if you could help me, that would be greatly appreciated. 

 

Last seen on 21:06, 14. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To make it follow the player…
Tue, 12/12/2023 - 11:42

To make it follow the player, on update tick, check for nearby players, and if found, attempt to make them find a path there. In ai make them look at player. When the player is nearby, give them a potion effect that checks if the raycasting block from the player has the entity nearby. If it finds it, set it to invisible and make it find a random path to somewhere else. Make one entity that attacks, and when that stalks. Have them switch every so often. Have it randomly get speed for short amounts of time and randomly teleport nearby.

Last seen on 13:20, 16. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you put it into images…
Wed, 12/13/2023 - 02:19

Could you put it into images so I could see the procedures?

Last seen on 21:06, 14. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Everything? Sure, I can but…
Wed, 12/13/2023 - 09:11

Everything? Sure, I can but it might take me a bit.

Last seen on 13:20, 16. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How are you going with it so…
Fri, 12/15/2023 - 06:14

How are you going with it so far?

Last seen on 21:06, 14. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry! I am helping a lot of…
Sat, 12/16/2023 - 22:02

Sorry! I am helping a lot of people at once, I promise I will get it done soon, hopefully tomorrow.

Last seen on 13:20, 16. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No worries.
Sun, 12/17/2023 - 04:14

No worries.

Last seen on 13:20, 16. Apr 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you manage to figure it…
Wed, 12/27/2023 - 08:37

Did you manage to figure it out yet?