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

Tags in Pose of armor_stand are removed when containing default values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.8.6, Minecraft 1.9, Minecraft 1.12.2, Minecraft 17w48a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w14a, Minecraft 18w20b, Minecraft 1.13-pre1, Minecraft 1.13-pre4, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, 1.14.4, 19w37a, 1.15.2, 20w06a, 20w13b, 1.16.1, 1.17, 1.17.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Low

      Description

      Maybe cause for:

      The bug

      When a tag in the Pose tag of an armor stand contains the default values, it gets removed. This might be useful for saving the NBT data, but this way it is impossible to use NBT comparison to test if one of the tags in Pose has the default values.

      How to reproduce

      1. Place an armor stand
      2. Run this command:
        /data get entity @e[type=armor_stand,limit=1] Pose
        
        Result:
        Pose:{
        	Head:[
        		0:2.8267171f,
        		1:-5.086746f,
        		2:0.0f
        	],
        	Body:[
        		0:0.0f,
        		1:1.7570348f,
        		2:0.0f
        	]
        }
        
      3. Run this command:
        /data merge entity @e[type=armor_stand,limit=1] {Pose:{Body:[0f,0f,0f]}}
        
        Result:
        Pose:{
        	Head:[
        		0:0.702278f,
        		1:1.4992895f,
        		2:0.0f
        	]
        }
        

      Default values (1.9)

      • Head: 0.0f, 0.0f, 0.0f
      • Body: 0.0f, 0.0f, 0.0f
      • LeftArm: -10.0f, 0.0f, -10.0f
      • RightArm: -15.0f, 0.0f, 10.0f
      • LeftLeg: -1.0f, 0.0f, -1.0f
      • RightLeg: 1.0f, 0.0f, 1.0f

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
              Votes:
              30 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: