Summon Multiple of mobs with a command? {FOUND}

Started by Captin_nofoyo on Mon, 04/04/2016 - 14:06

Topic category: Advanced modding

Last seen on 19:23, 30. Nov 2017
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Summon Multiple of mobs with a command? {FOUND}
Tue, 04/05/2016 - 14:07 (edited)

     Good day fellow modders!

     I am making a mod which will be adding hundreds of new commands that would be useful for map makers. This mod wouldn't add any new blocks, so it won't change the world generation or anything, but just commands. While working, I was thinking of how would I make a custom command that will have a variable to choose how many mobs to spawn.

     *EG: /spawn Mob 5

     /spawn Mob 5 - This part right here will spawn the animal at your cords.

     /spwan Mob 5 - This part will spawn the mob.

     /spawn Mob 5 - This will be how many of the mob it will spawn.

     Any type of help would be helpful! :D

- Captin_nofoyo

Edited by Captin_nofoyo on Tue, 04/05/2016 - 14:07
Last seen on 19:13, 5. Jul 2019
Joined Oct 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You can make an stacked event
Mon, 04/04/2016 - 19:44

You can make an stacked event with the number of the summon command that you need.

Last seen on 19:23, 30. Nov 2017
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I know that, but I just need
Mon, 04/04/2016 - 23:09

I know that, but I just need to know how to make it so the user can choose how many to summon, from 1-20.

-Captin_nofoyo

Last seen on 23:39, 23. Apr 2017
Joined Nov 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Captin for each mob spawned
Tue, 04/05/2016 - 00:34

Captin for each mob spawned and each number of mobs spawned you will need a new Cmd for it...

So for example the command

/Spawn FlyingPig 1 (One Event: Spawn entity FlyingPig)

/Spawn FlyingPig 2 (Two Events: Spawn entity FlyingPig, Spawn entity FlyingPig)

And so on... So I would do more along the lines of

/Spawn FlyingPig 1

/Spawn FlyingPig 5

/Spawn FlyingPig 10

/Spawn FlyingPig 20

To save time, or if you have time to blow through you can make a command for each one.

 

Last seen on 19:23, 30. Nov 2017
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Captin for each mob spawned
Tue, 04/05/2016 - 13:43

@#3 Thank you so much! :D

 

-Captin_nofoyo