Procedure to Scare Mobs

Started by Lost_My_Marbles on

Topic category: Help with modding (Java Edition)

Last seen on 13:27, 28. May 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure to Scare Mobs

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).

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
neither mcreator nor vanilla…
Tue, 05/26/2020 - 20:34

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.

Last seen on 13:27, 28. May 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That makes sense. I'll give…
Tue, 05/26/2020 - 21:44

That makes sense. I'll give it a try. Thanks.