Started by
Mimikyu-chan
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, im trying to let my mob have multiple versions of itself, but only problem is:
when i spawn it, it spawn multiple versions of itself litterly, so how can i let my mob spawn a different version of itself without multiplying itself?
thanks
definitely not clear what you need
Send an image and explain
I meant this, if i spawn the mob, it instantly dupplicates itself, and i want to make my mob so that if i spawn it, every time, an other mob shows up
I have 8 versions of spamton:
Spamton
Spamton2
Spamton3
Spamton4
Spamton5
Spamton6
Spamton7
And Spamton8
So for example if i want to spawn one of those, i do it with the normal spamton spawn egg, but i dont know how to do that properly
You could set up a sort of chain reaction/domino effect.
So, under the trigger "OnInitialSpawnIn" (might be worded slightly differently) for your first creature you would set it to spawn in your 2nd creature. Your second creature would also have a trigger for "OnInitialSpawnIn", which would then summon your third creature... Do this for all of your creatures, like a domino effect.
If you're going to have each of the creatures be able to spawn naturally, then you'll want to also add a procedure to the last creature in the chain. You'd want to add a procedure (under "OnInitialSpawnIn") where it would check if your first entity is near and if it isn't, then it would spawn in your first entity. This would ensure that if one of your creatures spawns in, the rest of them will spawn in, regardless of the starting order.
To prevent repeats in the chain you'd also want to add an if not statement at the beginning of the rest of your creatures. "If (not) get nearest entity (the next entity in the chain) is sub type of (next entity in the chain)... Then the rest of your procedure inside the if not statement.
You could use wait procedures to stagger the chain reaction also if you'd like.
wait im confused, i cant process that, can you explain it a bit more easy?