Topic category: Help with Minecraft modding (Java Edition)
Hello Modders! Today I made a small tutorial to get a Staff that summon Minions! ( The Minions will always follow you and attack your ennemy ! )
Step 1 :
Create the Item you want to be the staff
Step 2 :
Create the minion mob. To make him follow you, put in the AI Tasks :
The Block used for the mob to follow me is " block.Air ". This is the first element of the Block Picker.
Step 3 :
Add thoses 2 Blocks in the Mob's AI, else he won't attack ennemy mobs
Note : It is important to tick or untick the things I tick/untick else it won't work
Step 4 :
Add theses blocks to make the Minion attack the selected mobs ( Make sure to untick In sight only and Nearby only! )
I selected Skeleton, Zombies & Creepers, but you can put more mobs by adding more of theses blocks !
Step 5 :
Now, save the minion and create a procedure called " Summon_Minions " ( or However you'd like ). Put this code in it!
Note : the Dark Steve is the minion I made, so don't search for it xD
Step 6 :
Go back in the code of your summoning staff, and on the " When right clicked on block ( hand loc. ) ", put the " Summon_Minions " procedure.
Step 7 :
Tadaa! Enjoy your new minion w/ summoning staff!
Nice tutorial :)
Thx :D
good tutorial :D
Thanks :)
really cool tutorial made me realise i was overcomplicating my minion plan so thanks for the easy tutorial also is there a way to make the staff summon only a certain amount of minions and only follow the summoner?
For following the summoner (if you mean, the item in your hand) all you have to do is change the follow item in hand from Air to the item you want. For the minion number limit, you could add a variable to control them. This would be a player lifetime variable that initializes on 0 and grows by 1 everytime you use the summoning staff. You can add a condition that checks if the summoning number is less than 3 for example, and if it is you can summon new minions. To clear the variable you can add like a timer that each 10 seconds, despawns the entity and removes 1 from the Minion count, this can also be applied if your summon gets killed. Hope this helps
am I the only one that gets an error?