How to detect spawned entity type and spawn a second entity of that type?

Started by chocolate_box43 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to detect spawned entity type and spawn a second entity of that type?

I cant figure out how to spawn a second entity of the same type, anyone got any ideas?

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure wit hthe on…
Sun, 03/16/2025 - 18:09

Make a procedure wit hthe on entity spawned" trigger and add and if-statement with "is event/target entity of type [entity]" then spawn the same one with the spawn entity block.