How to make mobs spawned with spawn eggs fight other mobs for you

Started by WaldenPlaysGames39 on

Topic category: Help with MCreator software

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mobs spawned with spawn eggs fight other mobs for you

Hey everyone! I'm working on a mod that adds fair crafting recipes for uncraftable/operator items and better implements them for survival mode.

I just made spawn eggs for most hostile mobs in the game craftable using the drops of multiple of that mob. i want to know how to make it so if you spawn a mob with a spawn egg in survival mode it fights for you/protects you, follows you, and targets other hostile mobs near you.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could just make it a…
Mon, 11/14/2022 - 13:37

you could just make it a separate mob with the same model, texture and ai which gets tamed upon getting spawned so it would fight mobs that attack you and follow you

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a universal item which…
Thu, 11/17/2022 - 17:03

make a universal item which has an nbt tag which stores the entity it has. when you right click with the item, it spawns and tames that entity based off the nbt tag using a custom procedure