mojira.dev
MC-80975

Tags in Pose of armor_stand are removed when containing default values

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

Linked issues

Comments 27

Could you merge this post with MC-80974, this is just twice the same issue under another name, since, as you've described yourself already, a NBT Pose tag does not exist when it is 0.

It is not, in MC-80974 I never said something about lists containing zeros. The are related and this here might be caused by MC-80974 but they aren't the same.

MC-80974 is the expression of this issue, the armorstands are placed with arm and leg poses of 0 and therefore are removed as is described here.

Use

/entitydata @e[r=3] {Pose:{Head:[0.0d,0.0d,0.0d]}}

The correct useage of the Pose tag uses double not float. Make sure you put 0.0 or 0.0d

@unknown like I said in MC-80973 ArmorStand have always pretermined pose values. So they are never 0.
@unknown The values are floats. The data structure I provided is the one you recieve when using /entitydata.

17 more comments

Confirmed for 1.16.1.

Confirmed for 1.17

Confirmed in 1.17.1.

Confirmed in 1.18.2 and 22w13a.

Confirmed in 1.19.2

marcono1234

(Unassigned)

Confirmed

Platform

Low

Commands

NBT, armor_stand, nbt-tags, pose

Minecraft 1.8.6, Minecraft 1.9, Minecraft 1.12.2, Minecraft 17w48a, Minecraft 17w49b, ..., 1.18.2, 22w13a, 1.19.2, 1.20.1, 1.20.2 Pre-Release 4

Retrieved