0

So I'm currently working on a Minecraft minigame where the goal is for Team A to collect all the torches and Team B's goal is to kill Team A (basically Pac-Man(or dark deception)) and I'm asking: How do I tell when the torches are all gone within a certain radius?

0

While my command block skills are outdated at best, I suppose having an invisible armour stand or an AoE cloud at the location of each torch could work. You could then have a scoreboard var that is set to 0, and have each entity that doesn't detect a torch increment that. If the var is smaller than the number of torches, reset the var, else the torch team wins. Note that this is only viable if you control the location of all torches and torches can't be placed.

Another way is to keep track of torch-related statistics. This is the most difficult but most flexible approach, as this could allow free placing and breaking of the torches.

The third way would be to clear picked up torches from the inventory, incrementing a scoreboard var on success. This allows for free placement, but not for placing torches.

Nice idea, post a link if you ever finished this!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.