Stalking Entity

Started by BryAstro on

Topic category: Help with modding (Java Edition)

Last seen on 10:54, 26. Jul 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 20:18, 25. Jul 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 10:54, 26. Jul 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 20:18, 25. Jul 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 10:54, 26. Jul 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 20:18, 25. Jul 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 10:54, 26. Jul 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 10:54, 26. Jul 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?

Last seen on 08:57, 25. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, I am trying to create my…
Sun, 07/07/2024 - 12:41

Hi, I am trying to create my own version of "The Knocker". It's a forge stalker mod if you don't know the mod.

But here is my problem, like BryAstro is that I don't know how to make the procedures, actually how to make my mob works !

Please, can somebody help me ?

Thanks for the reply, see ya

Last seen on 20:18, 25. Jul 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's what I've got:   …
Sun, 07/07/2024 - 17:06

Here's what I've got:  

dfgh

Make two entities, one with one of these AIs, and the other with the other. One should only look at the player and run away if hurt, the other should attack the player.

fghj

By putting the first if part in the attacking ones tick update, it should randomly go invisible. The second if statement should make it randomly attack other monsters nearby. The last one would need to be put in both entities tick update, you could use this to randomly spawn the other one and switch modes.

 

I think that this should work, let me know if you need more help or if it doesn't, and I'll try my best.

Last seen on 08:57, 25. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, first, thank you for…
Sun, 07/07/2024 - 17:43

Hi, first, thank you for your reply, it's really useful, but there is a problem, when I try to save the procedure (the last one you gave me) let me show you 

https://files.fm/u/9btherh299

Last seen on 20:18, 25. Jul 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see the issue. Where it…
Sun, 07/07/2024 - 20:25

I see the issue. Where it says spawn entity, you need to click that and select the other entity that stalks or attacks. It is giving you an error because you haven't selected that. Sorry that I didn't put that in the image, I didn't know what you were going to name the other entity.

Last seen on 08:57, 25. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks Bro, you're the best …
Sun, 07/07/2024 - 20:55

Thanks Bro, you're the best ! It works perfectly !

So now I have two entities and the next step is to set up the events like when the mob spawn, what sounds he makes and what stalk abilities he has.

Would you help me for these tasks ?

I know I'm a novice on mcreator like for the mobs making especially, but I’m ready to learn if you agree to teach me

 

By the way, do you have Discord ? So we can talk easily

See ya and thank you again

Last seen on 20:18, 25. Jul 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'll totally help you more!…
Sun, 07/07/2024 - 22:23

I'll totally help you more! Unless there is a lot more you want to do, I don't think we need Discord, but I do have it. For mob spawn, just pick one of the entities and put in the spawn stuff, I can try to explain that but you might be better off with online guides. Maybe just set it as a monster entity so it spawns at night. Let me know what abilities you want help with. For sounds, try to find some free ones that you can use online, or maybe record some.

Last seen on 20:18, 25. Jul 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's a few ideas I could…
Sun, 07/07/2024 - 22:29

Here's a few ideas I could help you with:

Random teleportation.

Hiding from the player.

Giving them random effects if it is near.

And maybe stealing items from the player.

Oh, and maybe something like it is faster in the dark.

And maybe it removes light sources.

Let me know if you want these or any others.