how to refer to mobs spawned with (spawn entity)

Started by ilikepotatos_ on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 09:01, 21. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to refer to mobs spawned with (spawn entity)

im working on a mod for me and a friend and one of the things that it adds is a command "/zombieapocalypsestart" i want the command to spawn alot of zombies and have all of them target the player who did the command no matter how far they spawned, and i thought i could do this with the "set attack target of _____ to ______" block however i dont know how to specify that i want the zombies that i spawned to target the person who did the command can anyone help?

Last seen on 09:01, 21. Sep 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nevermind i solved the…
Sat, 09/21/2024 - 09:01

nevermind i solved the problem by just using making every entity in a 400 block radius agro to the person who did the command