• 0

    posted a message on Detecting team kills
    Quote from Robified»

    You can also use a fake player to track the value, if you wanted. Also removes the need for an entity in the world to track it.


    The problem with this is that i cannot detect that excact value with a different commandblock, because in my minigame you are going to have to kill 10 zombies to go to the next wave. but i see what you mean
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detecting team kills
    Quote from FarmsNeedHelp»

    You can get it to do that by having astat.killEntity.Zombie scoreboard criterion, and if you want to transfer all the player points to one, you can have an armor stand that holds all the value. So, you could create an armor stand named "points" or anything you want basically, and then have a command block chain to remove them one by one and add them to there. So, have one command block test for the value - /testfor @p[score_(ObjectiveName)_min=1], and either a redstone comparator the older versions, or a chain command block in the newer versions removing the points and adding them onto the armor stand. This would be done with one command block removing and one adding - /scoreboard players remove @p (ObjectiveName) 1 and the other one scoreboard players add @e[name=(Name of the armor stand)] (ObjectiveName) 1. Let's do an example


    Startup :

    /scoreboard objectives add ZombieKills stat.killEntity.Zombie

    /summon armor_stand ~ ~1 ~ {CustomName:"KillValue"}


    1st command block (dependent one) :

    /testfor @p[score_ZombieKills_min=1]


    Run on command blocks after the dependent command block :

    /scoreboard players remove @p ZombieKills 1

    /scoreboard players add @e[name=KillValue] 1


    The colored ones you can name whatever you want, just make sure the matching colors correspond. If you'll need help, or are confused by this explanation, I can create this contraption and show it to you in action.


    I think this works i'll try it with a friend this evening and tell you the results. Thanks for replying!
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detecting team kills

    How can i add them together? I already have a scoreboard running for @a but just need to add them up.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detecting team kills

    Thanks for replying i'll try it!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detecting team kills

    I'm making a map where i need to detect a total zombies dying. But it needs to be multiplayer compatible. That means that when i kill a zombie and my friend kills a zombie, the total score is raised by 2. This number needs to be a scoreboard value that i can display. I cant seem to work it out... is it impossible? or can you guys help?

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .