Started by
BryAstro
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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.
Could you put it into images so I could see the procedures?
Everything? Sure, I can but it might take me a bit.
How are you going with it so far?
Sorry! I am helping a lot of people at once, I promise I will get it done soon, hopefully tomorrow.
No worries.
Did you manage to figure it out yet?
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
Here's what I've got:
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.
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.
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
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.
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
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.
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.