Started by
AmLukas
on
Topic category: Help with Minecraft modding (Java Edition)
Hey folks, I want to make a potion effect that I would call something like "warding." I want to then make certain mobs that run away from entities with this effect. How would I be able to do this?
Only possible with AI related Manipulation.
Check the Plugins Page. There are Plugins that are really helpful, also I think there was a Plugin that adds some AI related Procedure Blocks.
Oh okay! Thanks a ton!
This doesn't exactly make mobs avoid the afflicted entity, but it does keep them a certain distance away from them.
I thought about the interdiction torches from the Equivalent Exchange/Project E mods and set up a procedure to behave similarly.
This procedure runs on the status effect's "On effect active tick", and it checks for nearby entities without the effect and overrides their velocity on specific axes to prevent them from moving too close to the entity with the effect.
Depending on how exactly you want the effect to function, you may want to check for- and include or exclude specific types of entities.
Woah man, thanks a bunch! I will certainly look into adding this :D