mojira.dev
MCPE-166446

Player's sneaking animation doesn't match Java Edition

Since on the latest preview player’s hitbox height now reduces to 1.5 blocks the sneaking animation doesn't match java its still the old bedrock sneaking animation

Heres the differences:

Java:

[media]

Java sneaking animation is sinking the 2 pixels of the legs making it matches the height of the slab

Bedrock (Latest Preview/Release):

[media]

Bedrock Sneaking animation Still has the old animation making it 2 pixel of the head being a little big on the slab

Linked issues

Attachments

Comments 9

I believe Java has the bug here: MC-48191

I fixed the Bedrock Vanilla code yesterday. I don't know if it's accurate or not, but it almost matches the Java sneaking animation.

here is the code:

Bedrock codebase(vanillaBedrock)

"animation.player.sneaking" : {
"loop" : true,
"bones" : {
"body" : {
"position" : [ 0.0, -2.0, 0.0 ]
},
"head" : {
"position" : [ 0.0, -1.0, 0.0 ]
},
"leftarm" : {
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"leftleg" : {
"rotation" : [ -28.0, 0.0, 0.0 ]
},
"rightarm" : {
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"rightleg" : {
"rotation" : [ -28.0, 0.0, 0.0 ]
},
"root" : {
"position" : [ 0.0, 1.25, 9.0 ],
"rotation" : [ "28.0 - this", 0.0, 0.0 ]
}
}
},

Bedrock codefixed(to match to Java)

"animation.player.sneaking": {
"loop" : true,
"bones" : {
"body" : {
"position" : [ 0.0, -2.0, 0.75 ]
},
"head": {
"position" : [ 0.0, -1.25, -0.55 ]
},
"leftarm" : {
"position" : [ 0.0, 0.0, -1.0 ],
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"leftleg" : {
"rotation" : [ -30.0, 0.0, 0.0 ]
},
"rightarm" : {
"position" : [ 0.0, 0.0, -1.0 ],
"rotation" : [ -5.7, 0.0, 0.0 ]
},
"rightleg" : {
"rotation" : [ -30.0, 0.0, 0.0 ]
},
"root": {
"position" : [ 0.0, -0.5, 9.0 ],
"rotation" : [ "30.0 - this", 0.0, 0.0 ]
}
}
},

If you want to see every difference between the codebase and codefixed, please look at the attachment files. I also uploaded the resourcepack.

The sneaking animation resouse pack codefixed is accurate except the head The Heads position should be "[ 0.0, -1.25, -0.55 ]" instead of "[ 0.0, -2.0, 0.0 ]" (I just playing around and edit the resouse pack and checked it properly if the codefixed resouse pack matches on java)

man, thanks for your coding my mistakes; it should be accurate now that I've uploaded the new resource pack.

Here's an animation that actually perfectly matches Java Edition, with added compatibility for custom skin heights:

"animation.player.sneaking" : {
			"loop" : true,
			"bones" : {
				"body" : {
					"position" : [ 0.0, "(query.get_default_bone_pivot('body',1) - query.get_default_bone_pivot('rightleg',1)) * -0.12241 - 1.73108", 0.0 ],
					"rotation" : [ 28.64788, 0.0, 0.0 ]
				},
				"head" : {
					"position" : [ 0.0, -0.87758, -0.47942 ]
				},
				"leftarm" : {
					"position" : [ 0.0, 0.24483, -0.95885 ],
					"rotation" : [ -5.72957, 0.0, 0.0 ]
				},
				"leftleg" : {
					"position" : [ 0.0, -0.2, "(query.get_default_bone_pivot('body',1) - query.get_default_bone_pivot('leftleg',1)) * 0.47942 - 1.75304" ]
				},
				"rightarm" : {
					"position" : [ 0.0, 0.24483, -0.95885 ],
					"rotation" : [ -5.72957, 0.0, 0.0 ]
				},
				"rightleg" : {
					"position" : [ 0.0, -0.2, "(query.get_default_bone_pivot('body',1) - query.get_default_bone_pivot('rightleg',1)) * 0.47942 - 1.75304" ]
				},
				"root" : {
					"position" : [ 0.0, "query.get_default_bone_pivot('body',1) / -12.0", 0.0 ]
				}
			}
		}

@LateLag sir, can I have the old sneaking Java animation code? It is 'bout the 1.8 blocks above?

In my opinion with the new ability to sneak through 1.5 blocks gap, the Java version should be considered the correct one

@unknown - You can check the animation attached to the related report MCPE-170342, it matches what Java used to look like before the crouch offset.

I had previously observed this issue even before the 1.20 preview. I noticed it back in version 1.16 and was quite surprised by it.

Skycrafter9253

(Unassigned)

969438

Confirmed

Multiple

Windows 11

Animation, sneaking, vanilla-parity

1.20.40.20 Preview, 1.20.30.22 Preview, 1.20.30.21 Preview, 1.20.30.20 Preview, 1.20.20.23 Preview, ..., 1.21.60.24 Preview, 1.21.60.28 Preview, 1.21.70.22 Preview, 1.21.70.20 Preview, 1.21.51 Hotfix

Retrieved