How do I summon multiple mobs at once? [duplicate]

Solution 1:

In 1.13+ versions of minecraft you still cannot /summon multiple entities, BUT you can execute a single command as multiple entities, which basically results in /summon-ing multiple entities with one command.

To summon 3 sheep at your current position you can run this command:

/execute as @e[limit=3] run summon minecraft:sheep ~ ~ ~

Note: There have to be at least 3 entities (including players and items) in the world for this to actually summon 3 sheep

If you want to summon multiple different entities with one command, then you can summon a falling block without specifying a Time, it will disappear after one tick. Set the mobs that you would like to spawn as passengers.
To summon two pigs and one enderman you could then use this command:

/summon minecraft:falling_block ~ ~ ~ {Passengers:[{id:"minecraft:pig"},{id:"minecraft:pig"},{id:"minecraft:enderman"}]}