Started by
MaxiHafnir
on
Topic category: Help with Minecraft modding (Java Edition)
Hey, so, I got back into MCreator after about a year, and wanted to do one of those Horror Mods to get the basics down again.
I have a pretty alright model, texture and everything else, but the AI is very basic. What it does rn is spawn, attack the player and animals and give the player some negative effects, mainly darkness, when he gets to close. What I would lik to do tho is, have him stare at the player from some distance, and if the player either looks at him for to long, or gets to close, give the player the effects and attack them.
Can anyone help me or tell me how I could make this, please?
Thanks a lot in advance!
i m litteraly making that Righ Now XD
So what i did is I made a new mob with same texture models, etc but with 0 speed and in his AI i used the procedure that make it always look at me.
after i made it so when condition are met he spawn in a radius of 50/75 block aound me .
since he can't move because of speed = 0, he is just standing and looking at me .
hope this help : )
image so you can copy : https://drive.google.com/file/d/1Bt1QbpNrE6hmhUasHStEo9EKN9LDsdbI/view?…
Thank you so much!
I've seen others do that, but just to do a chase animation.
But, I can't access the image you sent, because it isn't for public access. I think you have to click on "Insert image via URL" for it to work.
Can you maybe also help me with the effects? Basically, what I want it to do, is give all players in a 16 block radius around it these effects for a specific amount of time and play a sound, if it is aggressive. I'd also like it to have a 320 tick cooldown, so that the sound and effects don't get spammed (The darkness effect stays for 320 ticks, but the others for less time. I can send you how it looks right now, the main roblems are that the cooldown doesn't work, and that it gives the effects to the creature itself. I also don't know how I can link it to the creature itself, because when I put t on Entity tick, it just kept spamming.
Thanks in advance!