How do I get a hostile mob to follow me from long distances or how do I get it to randomly teleport to attack me?

Started by DeropManz on

Topic category: User side tutorials

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I get a hostile mob to follow me from long distances or how do I get it to randomly teleport to attack me?

I'm trying to get my Herobrine entity to be able to lock on to me and keep chasing me but I really don't know how to do that because he loses you if you're at a different height level or if you're too far away so if I can't do that I want him to teleport near the player at random times but I'm not sure if MCreator could do that. 
 

 

P.S. I'm trying to do something similar to Kiterosma's 1.4.7 Herobrine Mod but with a few twists

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There are a few things I can…
Sat, 07/18/2020 - 03:18

There are a few things I can think of trying:
-Increase the tracking distance on the Behaviour tab of the mob
-Set the "Do melee/contact attack..." so that it chases after sight
If this doesn't work, you could always make a procedure on the entity tick update to check if the player is not within a X by X square cube(there's a block for it so you wouldn't need to write any code) and if it runs as there not being a player in-range it would teleport to the player. Lmk if you need more help on this as I think I could help you get something figured out.

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've already have done the…
Sat, 07/18/2020 - 10:30

I've already have done the first 2 and I'm not really sure how to make a procedure in general

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have trouble making my mob…
Tue, 04/27/2021 - 07:52

I have trouble making my mob see and attack from far away, changing the render distance doesn't actually effect it as it changes the player's view but not the mob's. I need my mob to carry out long ranged attacks and see the player from really far away. Like how zombies can detect players from long distances.