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 do I make mobs slowly respawn up to a certain cap?
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.
Where can I contact roblox support (a real person)?
In Beat Saber how do I disable TinyTAN avatars on BTS songs?
Why does this solution to 5-3 work? Didnt the Prince get eaten?
Mob Spawning - Despawning in Minecraft
How can I show the map layer ui?
Is there an in-world explanation why Aloy needs to learn skills again?
Are there any Unicorns in Hogwarts Legacy?
What do I do with the mysterious key in Across The Obelisk?
No reward for vault entrance completion in Hogwarts Legacy?
Why are Fallouts computers so backwards?