2

Summary: I am making a mini game in Minecraft where you kill the other teams which you can select from either a wolf or ocelot (it's already tamed).

Question: How can I set it up to teleport all the players and say the team that won.

What I tried: I tried using /scoreboard objectives add leader_stat stat.killEntity.Ozelot. Then in another command block I typed /testfor @a[score=leader_stat=1] so when 1 kill happens it will activate but I can't add the two teams, then I get all lost.

6
  • You spelled ocelot wrong.
    – Caleb
    Commented Jun 16, 2014 at 2:19
  • 2
    @caleb its spelled ozelot in the commands Commented Jun 16, 2014 at 2:49
  • 1
    Oh really? I learn something everyday!
    – Caleb
    Commented Jun 16, 2014 at 2:55
  • 1
    @caleb I use /summon ozelot to summon them Commented Jun 16, 2014 at 3:32
  • The question is somewhat vague. Obviously these aren't Vanilla commands. So which server / plugins are you using? Am I missing something? Commented Jun 17, 2014 at 4:54

1 Answer 1

1

The command to check if anyone on team red has killed an ocelot is

/testfor @a[score_leader_stat=1, team=red]

Note that there's an underscore between score and leader_stat, not an equal sign! Get the output of that command block and hook it into two other command blocks with

/tp @a[team=red] x y z
/tellraw @a {text:"Red Team has slain the Ocelot!", color:red}

In a 1.8 snapshot, you could also use

/title @a title {text:"Red Team has slain the Ocelot!", color:red}

to get a large text display. You will need a set of such command blocks for every team and every possible leader. Note that if red team's leader is an Ocelot as well, they will also win the game by killing their own leader.

1
  • Can you help with my new scoreboard question Commented Jun 18, 2014 at 2:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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