How to make a mob that scares away vanilla mobs?

Started by Zoe'sUsername on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob that scares away vanilla mobs?

In my mod (which is a mod for 1.16.5), I'm adding a scarecrow mob. I want to make it so the scarecrow will scare away vanilla hostile mobs, like how cats scare away creepers. I am willing to do some coding (if you can tell me what to do haha) Thank you for the help!!

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know I'm late to the post…
Wed, 08/31/2022 - 16:07

I know I'm late to the post. However I found this concept interesting. You could bind the item and model to an entity, and give it the AI traits that both a cat and dog have. Then use a zombie AI tweak to make it afraid of either dogs or cats. As for spiders and endermen I'm not entirely sure. I'll attempt this myself if there are no updates. I don't want to steal the ideas of other devs.