How do I set up Spawn Condition Procedures

Started by FireBlox on

Topic category: Help with MCreator software

Last seen on 16:50, 24. Oct 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I set up Spawn Condition Procedures

How am I supposed to construct a spawn condition procedure for a custom entity? The goal is to only allow it to spawn when a specific global variable is at a certain value. I looked around on this site and didn't find anything particularly helpful on this. A screenshot of a functional procedure would be helpful if possible.

Last seen on 17:59, 7. Jan 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if <variable> > <num> then…
Tue, 01/26/2021 - 19:17

if <variable> > <num> then
spawn <creature>

 

Last seen on 16:50, 24. Oct 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There doesn't seem to be a …
Wed, 01/27/2021 - 12:58

There doesn't seem to be a <spawn> block. I should also probably mention that I am using the 2021.1 snapshot

Last seen on 14:26, 12. Jan 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Correct me if I'm wrong, but…
Tue, 12/21/2021 - 16:51

Correct me if I'm wrong, but it think you would set it up using the Summon block, and always return false at the end? like

If(value = 1){

Summon Thing

}

Return False

Last seen on 06:15, 11. Jul 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is easy, Here; Feel…
Fri, 12/24/2021 - 16:03

This is easy, Here;

Feel free to change the conditions to your liking, this is just the most simplest best. The most important thing is the ones inside the "do" and below it.
https://i.imgur.com/yaqCGnp.jpg

NOTE:

1. Spawn chance is handled by your living entity settings,  just make sure that "Enable spawning is checked"

2. Return True, False is 100% required, removing it will make the procedure not work.

3. you can use alternative "Spawn at, like the one wth vx vy vz" if you want to spawn it on specific location, for ex: vy=128 then the cow is spawned on 128 high, most likely droping it and killing it.

4.For every living entity, you'll have to do a specific procedure for it.

--For example, my 15m Titan, i have to set the "Spawn at xyz living entity=15Titan", then for my 15MAbnormal Titan, I have to create an almost duplicate of it but with living entity=15MAbnormalTitan

5. removing the "Spawn at" command will not spawn your living entiy, it's 100% required per living entity.