mojira.dev
MC-92863

/spreadplayers occasionally suffocates players

The spreadplayers command behaves much better than it used to, but it still sometimes suffocates players. Specifically, if you run

/spreadplayers ~10000 ~10000 50000 50001 true @s

about 100 times, about 5 of those times you'll find yourself suffocating in a block.

Every time I was suffocating, the behavior was consistent: the block above my head was a leaf block. I speculate that when spreadplayers sees that the topmost block at the x,z it wants to put you at is a 'leaf' block, it moves you down so that the players head is one block below the bottom-most contiguous leaf. However, leaves can be above wood or the ground, and so sometimes this means the player spawn in solid wood or dirt, suffocating.

(This is a relatively minor bug; the behavior now seems much improved compared to MC-52254 )

Linked issues

Attachments

Comments 8

Why create another issue, it's the same problem, isn't it?

When you say above your head, is your head in the leaves, or below the leaves?

Can't reproduce in 16w42a: you are always spread on top of the leaves

Can confirm in 16w42a. See screenshot

Can this still be reproduced in 1.13.2 and higher?

I have been trying for some time and couldn't reproduce; as @unknown said, you always teleport on top of the leaves.
Note: I'd seek a second opinion before marking this as fixed.

I was also unable to reproduce this in 1.16.

The ticket has now been marked as fixed. Please comment if you're still affected by it.

Brian McNamara

(Unassigned)

Confirmed

(Unassigned)

/spreadplayers

Minecraft 15w46a, Minecraft 16w42a, Minecraft 1.11, Minecraft 1.12.2, Minecraft 18w05a

Retrieved