Procedure to Scare Mobs

Started by Lost_My_Marbles on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined May 2020
Points:
630

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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).

Active 3 years ago
Joined Nov 2019
Points:
878

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
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.

Active 5 years ago
Joined May 2020
Points:
630

User statistics:

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

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

Active 3 months ago
Joined May 2023
Points:
244

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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 :(