The Meaning of Life, the Universe, and Everything.
Join Date:
4/20/2013
Posts:
276
Location:
memetopia
Minecraft:
WobbegongWachong
Member Details
Not entirely sure where I should be putting this, so I'll post it here. Please redirect me if I'm incorrect in my placement of this problem. I know a good bit about redstone and commands, so feel free to use advanced terminology.
What I want to do: Working on a mob fighting arena. I want to have it so every time a player kills a mob, they get 50 points.
The problem: The totalKillCount objective only adds a single point each time you kill a mob.
___________________________________________________________________________
What I have already tried:
First, I thought this would be fairly straightforward. I hooked up a clock to a cmd block testing for a score minimum of 1 on the totalKillCount objective. After it got this, it would activate a command block that added 50 points to the Points objective (dummy) I created. The problem with this was that the comparator wouldn't turn off, because after my first kill, because it was constantly detecting a minimum score of 1, so I added a repeater after the "add 50 points" cmd block and, connected to it, another cmd block that set totalKillCount objective to 0.
The problems with this are that:
a) if doing multiplayer, because of the annoying use of the @p command, if 2 players kill zombies at roughly the same time, the circuit may be unable to detect which player killed the zombie,
b )for a reason I don't understand, if many zombies are killed quickly at one time, the "reset totalKillCount score" may not work, and
c) if many zombies are killed very quickly, the circuit may only give you 50 points since it is testing for a score MINIMUM of 1, and cannot directly detect how many kills you made in the time it took to reset.
Any help with any of these problems would be greatly appreciated. Thank you very much!
What I want to do: Working on a mob fighting arena. I want to have it so every time a player kills a mob, they get 50 points.
The problem: The totalKillCount objective only adds a single point each time you kill a mob.
___________________________________________________________________________
What I have already tried:
First, I thought this would be fairly straightforward. I hooked up a clock to a cmd block testing for a score minimum of 1 on the totalKillCount objective. After it got this, it would activate a command block that added 50 points to the Points objective (dummy) I created. The problem with this was that the comparator wouldn't turn off, because after my first kill, because it was constantly detecting a minimum score of 1, so I added a repeater after the "add 50 points" cmd block and, connected to it, another cmd block that set totalKillCount objective to 0.
The problems with this are that:
a) if doing multiplayer, because of the annoying use of the @p command, if 2 players kill zombies at roughly the same time, the circuit may be unable to detect which player killed the zombie,
b )for a reason I don't understand, if many zombies are killed quickly at one time, the "reset totalKillCount score" may not work, and
c) if many zombies are killed very quickly, the circuit may only give you 50 points since it is testing for a score MINIMUM of 1, and cannot directly detect how many kills you made in the time it took to reset.
Any help with any of these problems would be greatly appreciated. Thank you very much!
www.youtube.com/user/dinodude162