Started by
FireBlox
on
Topic category: Help with MCreator software
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.
if <variable> > <num> then
spawn <creature>
There doesn't seem to be a <spawn> block. I should also probably mention that I am using the 2021.1 snapshot
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
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.
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.