Spawn a mob that doesn't attack the player

Started by Kirito2468 on

Topic category: Help with modding (Java Edition)

Last seen on 23:41, 8. Jun 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawn a mob that doesn't attack the player

Mob spawn that doesn't attack the player, but attacks the entities when they attack the player or the player attacks the entity. So as if the player were the creator of the spawned entities and controlled them, like with the Necromancers. (is for a Necromancer Magic Wand.)
(preferably during Procedure)
Thanks in advance!

Last seen on 20:37, 26. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make creatures that…
Fri, 12/29/2023 - 13:16

You can make creatures that are capable of attacking other entities- to the best of my knowledge, the only main difference is how the game deals with spawning, and what iron golems are allowed to target. Mobs also won't attack the player by default unless you specify the player as one of it's attack targets. You can use the 'set attack target of entity' to set an entity's attack target using various conditions. (In your case, you'd probably want this to be a tamed entity so that it follows its owner around.)

Last seen on 23:41, 8. Jun 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, Thanks
Tue, 01/02/2024 - 13:37

Ok, Thanks