0

[Public Server - v1.10 - Vanilla]

I have a chain of commands that I'm running, which includes a command block that increments an armor stand's scoreboard value (used as a counter) when a player is with a specific set of scoreboard values is within a 5 block radius. If I stand at the command block while the player stands there, and change it between Chain/Always Active to Impulse/Always Active (back and forth), the command will eventually execute. Otherwise, the error I get is this:

Failed to execute 'scoreboard players add @e[type=ArmorStand,name=Counter] Count 1' as playername

The command I'm trying to run is:

execute @a[score_param1_min=1,score_param1=1,score_param2_min=1,score_param2=1,score_counter_min=0,score_counter=0] ~ ~ ~ scoreboard players add @e[type=ArmorStand,name=ASCounter] counter 1

Changing the command block from Conditional to Unconditional has not made a difference, and I can confirm that the player is standing in the right spot at the right time.

I also tried changing the command block to a Repeating/Always Active, and no difference either.

I'm at a loss, so any help would be really appreciated. I don't want to remove the /execute as because that could cause some issues for other players down the road if the conditions were just right, and the command needs to be run reliably, or also major potential issues down the road.

12
  • If you run scoreboard players add @e[type=ArmorStand,name=Counter] counter 1 in chat by itself, do you get any error messages? Make sure you have an ArmorStand called Counter, and that it's in loaded chunks.
    – SirBenet
    Commented Sep 6, 2016 at 13:58
  • I think that the cmd bloxk thinks that "@e[type=ArmorStand,name=ASCounter] counter 1" is the name of the armour stand Commented Sep 6, 2016 at 14:43
  • @HarounMohamed-Fakier That's not correct. His syntax is fine. The only ways the command itself can fail are if the armor stand doesn't exist or the "counter" objective doesn't exist.
    – Skylinerw
    Commented Sep 6, 2016 at 14:51
  • @Skylinerw The armor stand and the scoreboard objective exist and I can confirm that the player is in the right spot (within 1 block, actually). I'm using an alt account to test. And the command does execute eventually if I change it to impulse/always active and back a few times.
    – theBeaks
    Commented Sep 6, 2016 at 15:01
  • @theBeaks An Impulse block is intended to only activate a single time. You should be using an unconditional Repeating block instead.
    – Skylinerw
    Commented Sep 6, 2016 at 15:02

1 Answer 1

1

What is most likely happening is that you don't have an armor stand named ASCounter. The best way to test what is actually happening is by doing the command separate from the execute, so /scoreboard players add @e[type=ArmorStand,name=ASCounter] counter 1 Then it will tell what is happening wrong.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .