Procedure to Scare Mobs

Started by Lost_My_Marbles on

Topic category: Help with Minecraft modding (Java Edition)

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

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.

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.

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If it for entity I have a…
Sun, 05/26/2024 - 23:00

If it for entity I have a solution to you but unfortunately not for a block :(