Article Categories
- Baldur's Gate 3
- Diablo
- Elder Scrolls
- General
- Hogwarts Legacy
- League of Legends
- Minecraft
- Pokemon Go
- Sims 4
- StarCraft
- Steam Platform
- Xbox Game Console
More Articles
How To Spawn after a specific amount of time
I am currently making a Legend of Zelda themed adventure map. I am struggling to make it, so enemies spawn every few minutes but not spawn large amounts over time. I have tried using things like hopper clocks to time when enemies spawn but after a while it turns into a large swarm of unwanted enemies. I am looking to make it so if an enemy has already spawned another will not spawn.
Example: if there are 5 enemies in a room, there will never be more than 5. So even if a few are killed, a few minutes later more will respawn, but no more than 5 in total.
Question from user Opllusion at gaming.stackexchange.com.
Answer:
You can store the result of the execute if entity subcommand to count how many entities there are and then execute based on that.
You will need a dummy scoreboard objective (let's say count) and a fakeplayer to store the amount in (let's say $zombies).
Now we can count the amount of zombies and only summon another one if there are 4 or less zombies in total:.
execute store result score $zombies count if entity @e[type=zombie].
execute if score $zombies count matches ..4 run summon zombie.
Answer from user Plagiatus at gaming.stackexchange.com.
I am currently making a Legend of Zelda themed adventure map. I am struggling to make it, so enemies spawn every few minutes but not spawn large amounts over time. I have tried using things like hopper clocks to time when enemies spawn but after a while it turns into a large swarm of unwanted enemies. I am looking to make it so if an enemy has already spawned another will not spawn.
Example: if there are 5 enemies in a room, there will never be more than 5. So even if a few are killed, a few minutes later more will respawn, but no more than 5 in total.
Question from user Opllusion at gaming.stackexchange.com.
Answer:
You can store the result of the execute if entity subcommand to count how many entities there are and then execute based on that.
You will need a dummy scoreboard objective (let's say count) and a fakeplayer to store the amount in (let's say $zombies).
Now we can count the amount of zombies and only summon another one if there are 4 or less zombies in total:.
execute store result score $zombies count if entity @e[type=zombie].
execute if score $zombies count matches ..4 run summon zombie.
Answer from user Plagiatus at gaming.stackexchange.com.
Is there any way into the Abandoned the Zelda Hebra Mine forge tower?
Minecraft Texture Pack on Server over FTP
What are the benefits of playing with original game CDs?
Do Squirrel Bits Actually Come From Squirrels in Fallout 4?
Does renaming a pokemon to its original name count as a nickname?
Reset nether but preserve above ceiling in Minecraft?
Where can I find pearls in Witcher 3?
What do the stars under can produce mean in against the storm
Where does this blue cube-shaped object belong in Unpacking?
Does Fallout 4 have a color filter like Fallout 3 and Fallout: New Vegas?