Help with having my mob let multiple versions of itself

Started by Mimikyu-chan on

Topic category: Help with modding (Java Edition)

Last seen on 11:43, 17. May 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with having my mob let multiple versions of itself

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

Photo

Last seen on 15:24, 24. Apr 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
definitely not clear what…
Sun, 12/19/2021 - 18:37

definitely not clear what you need

Send an image and explain

Last seen on 11:43, 17. May 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I meant this, if i spawn the…
Sun, 12/19/2021 - 19:30

I meant this

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

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could set up a sort of…
Mon, 12/20/2021 - 00:30

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.

Last seen on 11:43, 17. May 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait im confused, i cant…
Mon, 12/20/2021 - 11:58

wait im confused, i cant process that, can you explain it a bit more easy?