Started by
Lost_My_Marbles
on
Topic category: Help with Minecraft modding (Java Edition)
The entire premise of my current mod project is that you can place down a certain block, and it'll scare away mobs within a certain radius, like cats do to creepers. I haven't found any existing procedure blocks that can give me a similar effect yet. Is this something I am able to achieve through the code blocks, or should that be coded manually (if manually, I'd also be grateful for help with that).
neither mcreator nor vanilla minecraft provides any specific entity AI to avoid blocks. but mcreator does have a built-in AI block that lets your custom entity avoid certain other entities. so maybe you can create a dummy entity that sits on top of your block, and make your custom mobs avoid that dummy entity.
if you want vanilla mobs to avoid that dummy, then coding is required.
That makes sense. I'll give it a try. Thanks.
If it for entity I have a solution to you but unfortunately not for a block :(