Started by
Captin_nofoyo
on
Topic category: Advanced modding
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
You can make an stacked event with the number of the summon command that you need.
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
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.
@#3 Thank you so much! :D
-Captin_nofoyo