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

Started by WaldenPlaysGames39 on Sun, 11/13/2022 - 00:31

Topic category: Help with MCreator software

Last seen on 22:22, 20. Dec 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make mobs spawned with spawn eggs fight other mobs for you
Sun, 11/13/2022 - 00:31

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.

Last seen on 00:12, 24. Jan 2023
Joined Oct 2022
Points:

User statistics:

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

Last seen on 13:00, 6. Feb 2023
Joined Jan 2022
Points:

User statistics:

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