Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-99540

CommandStat Doesn't Work On Marker ArmorStand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 1.9.1 Pre-Release 3
    • None
    • Unconfirmed

      First summon a marker stand.

      /summon ArmorStand ~ ~ ~ {Marker:1b}
      

      And setup an objective to store command stats (use SuccessCount as example.)

      /scoreboard objectives add success dummy
      /scoreboard objectives setdisplay sidebar success
      /scoreboard players set @e[type=ArmorStand] success 0
      

      Then make a RCB chain running following commands.

      /stats entity @e[type=ArmorStand] set SuccessCount @e[type=ArmorStand,c=1] success
      /execute @e[type=ArmorStand] ~ ~ ~ testfor @a[r=3]
      /stats entity @e[type=ArmorStand] clear SuccessCount
      

      (No need to loop stats command actually, I did this just to make sure no other commands except the middle one could affect "success")

      Once it's settle, stand in the range of the marker stand and you will find that success value remains at 0.

      Now change it into normal armor stand.

      /entitydata @e[type=ArmorStand] {Marker:0b}
      

      And walk into the range again, success value becomes 1.

      I'm not sure this is caused by the /stats command function or the data stored in marker armor stand.

            Unassigned Unassigned
            ChichaST ChichaST
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: