mojira.dev
MC-97052

Flying into cobwebs with elytra behaves differently across game modes

The bug

When gliding with an elytra into cobwebs, the behavior is different per game mode.

Steps to reproduce

  1. /fill -10 -10 100 10 10 100 minecraft:cobweb

  2. Equip an elytra

  3. /setblock 0 39 1 stone

  4. /tp @s 0 40 2.29 0 34.9

  5. /gamemode survival

  6. Double press space to start gliding, and see if you could go through the cobweb.

  7. /tp @s 0 40 2.29 0 34.9 again

  8. Double press space to start gliding, then F3+F4 to switch to creative mode in the air, and see if you could go through the cobweb.

Expected result

The behavior would be the same between game modes.

Actual result

In creative mode the player glides through the cobwebs (but still get a slow-down)
In survival mode the player is stopped at the start of the cobwebs

Cause

"<player> moved wrongly" is outputted to the log for survival mode, indicating the game believes the cobwebs should not be able to let the player through at all.

Attachments

Comments 11

Screenshot of a wall of web i used to test this.
Flying in survival stops you from getting through the block.
Where creative lets you pass thru part of the block depending on speed.

Confirmed for 1.9-pre1

The enviroment is only supposed to contain pc details.

Can confirm in 1.13-pre3.

Confirmed in 1.16.1.

1 more comments

Requesting ownership as the owner has been inactive since 2016

It doesn't always occurs when player's velocity>1.6m/tick (similar to MC-92875)

I wasn't able to reproduce this in 1.20.5.

I found a more detailed method to reproduce this:

Steps to reproduce

Create a superflat world. then:

  1. /fill -10 -10 100 10 10 100 minecraft:cobweb

  2. Equip an elytra

  3. /setblock 0 39 1 stone

  4. /tp @s 0 40 2.29 0 34.9

  5. /gamemode survival

  6. Double press space to start gliding, and see if you could go through the cobweb.

  7. /tp @s 0 40 2.29 0 34.9 again

  8. Double press space to start gliding, then F3+F4 to switch to creative mode in the air, and see if you could go through the cobweb.

Expected result

The behavior would be the same between game modes.

Actual result

In creative mode the player glides through the cobweb.
In survival mode the player is stopped at the start of the cobweb.

Mention:

Use the same coordinates, but change the Pitch Angle from 34.9° to 36.01° will let players  glide through the cobweb even in survival mode. Change the Pitch Angle from 34.9° to 34° will prevent players from gliding through the cobweb even in creative mode. So this issue doesn't always happen, only happens in some specific situations.

Still in 24w33a but in creative mode player is still slow down by the cobweb (but not at the beginning)

user-39947

COMETC2021A1

(Unassigned)

Confirmed

(Unassigned)

cobwebs, elytra

Minecraft 16w06a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w44a, ..., 1.21.3, 1.21.4, 1.21.5, 1.21.6 Pre-Release 3, 1.21.8

Retrieved