mojira.dev
MC-61821

Digging Snow Layer yields one snow ball too much

If you dig up snow covers with a shovel, you should get a snowball. The bug is that you get two snowballs instead of one. Works with all shovels.


Further information provided by @unknown:

Looking at the code, it seems to be a simple oversight. Previously, the thickness of snow was stored in its data value, using the range 0-7, so the number of snowballs dropped was (thickness + 1). With the transition to block states, the thickness is now internally represented as 1-8, but the formula for snowballs dropped wasn't changed, so it gives one extra.

Linked issues

Attachments

Comments 11

Digging 8 layered snow yields 9 snow balls

Confirmed for 14w31a because MC-64555 describes it for 14w31a

Confirmed for 1.8

Still an issue in 1.8.1 pre-release 3. Each snow layer gives one more snowball than expected.

1 more comments

Confirmed for 1.10-pre1

Confirmed for 16w39c

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Interestingly, this behavior means that snow layers can be obtained losslessly if all layers are one-high (6 layers -> 12 snowballs -> 3 blocks -> 6 layers), but snow is lost when stacked (stack of 6 -> 7 snowballs)

Confirmed for 1.12.

Baconplayer

(Unassigned)

Confirmed

shovel, snow, snow_layer, snowball

Minecraft 14w28b, Minecraft 14w29b, Minecraft 14w31a, Minecraft 14w34c, Minecraft 1.8, ..., Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w43b

Minecraft 17w47a

Retrieved