Mojira Archive
MC-87997

Execute Command works not as intended

If i type in this Command to give every ArmorStand(CAS) a score when they succesfully do a command it only saves it in the ArmorStand data that is the nearest to the command bock which is doing the execute command.

execute @e[name=CAS,type=ArmorStand] ~ ~ ~ stats entity @e[name=CAS,c=1] set SuccessCount @e[name=CAS,c=1] Success

i want to to customcrafting and my commands are the following:

scoreboard players set @e[name=CAS] Success 0
execute @e[name=CAS] ~ ~ ~ testforblock ~ ~ ~ minecraft:dropper -1 {Items:[{Slot:0b,id:"minecraft:sandstone",Count:1b}]}
execute @e[name=CAS,type=ArmorStand] ~ ~ ~ stats entity @e[name=CAS,c=1] set SuccessCount @e[name=CAS,c=1] Success
execute @e[score_Success_min=1] ~ ~ ~ say Heyo1
execute @e[name=CAS,score_Success_min=1] ~ ~ ~ blockdata ~ ~ ~ {Items:[{Slot:0b,id:"minecraft:air",Count:1b},{Slot:1b,id:"minecraft:air",Count:1b},{Slot:2b,id:"minecraft:air",Count:1b},{Slot:3b,id:"minecraft:air",Count:1b},{Slot:4b,id:"minecraft:air",Count:1b},{Slot:5b,id:"minecraft:air",Count:1b},{Slot:6b,id:"minecraft:air",Count:1b},{Slot:7b,id:"minecraft:air",Count:1b},{Slot:8b,id:"minecraft:air",Count:1b}]}

it just says Heyo1 for testing reasons.

If you wanna see how the command blocks are built look at the photo.

thank you if you can help me!

Invalid

Johann Bartel

2015-09-03, 06:27 PM

2015-09-21, 07:33 PM

2015-09-21, 07:33 PM

0

1

Unconfirmed

Minecraft 15w36c

-