Procedure to Scare Mobs

Started by Lost_My_Marbles on Tue, 05/26/2020 - 13:06

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure to Scare Mobs
Tue, 05/26/2020 - 13:06

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 21:17, 28. Jun 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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.