TransWikia.com

In Minecraft how can I track how many mobs are alive?

Arqade Asked by CiurkitboyN on June 8, 2021

I’ve been building a Minecraft map where you fight bees(yes I know I’m a cold-hearted person) and I’m trying to figure out a way so it stops spawning more bees when there is a certain amount(I don’t want the player to get overwhelmed) here is a video of some gameplay if this helps:

It seems that some people have misunderstood so I will elaborate on some points:

1.each bee is summoned by a command block every 24 Redstone ticks (~2.4 seconds)

2.I am planning on publishing this map

3.This is a very early prototype with plenty of room for improvement

Here is a video showing the redstone:

3 Answers

I figured out that if I summon an armor stand on a pressure plate(heavy) every time a bee is summoned it tells me how many bees there and once a certain amount of bees are summoned I can make things happen:

Correct answer by CiurkitboyN on June 8, 2021

If you could simply be watching while people played this you could turn off mob spawning once a certain number of mobs spawn. However, this only works if you are not intending to publish this creation.

I’d look it up and see if there is a way to use command blocks to do this, because I am not the best at the technical side of Minecraft.

Edit: I realized my answer doesn’t make sense. If you were going to be there you could just as easily break the beehives or use a /kill command and teleport the players. You could do some calculations and figure out how long it takes, on average, for that many bees to spawn and run a command block to break the beehives after that amount of time, but this method seems very difficult. As a last resort you could change your mini game so that this isn’t a problem.

Answered by Zyxilef on June 8, 2021

I think the best option would be to utilize dummy scoreboards to to keep track of the bees count (you could also make it decrease if a bee is killed) and then have a check before you spawn new bees to make sure the count is below a certain number.

https://minecraft.fandom.com/wiki/Scoreboard

Answered by Marmiketin on June 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP