mojira.dev
MC-207393

Sculk sensor can detect "GameEvent.STEP" before "GameEvent.HIT_GROUND" causing an inconsistent redstone signal output of either 1 or 5 depending on the circumstance

The bug

As mentioned above the Hit Ground frequency does not activate if the player is moving when they hit the ground. Instead it activates the Walk frequency.

Steps to Reproduce

  1. Place a sculk sensor at ground level that outputs it's signal into a command block with the command below (note: "x y z" must be set as the sculk sensor's coordinates):

    tellraw @a {"nbt":"last_vibration_frequency","block":"x y z"}
  2. Build a platform 11 (or more) blocks above the sculk sensor to avoid detection of anything other than the player falling.

  3. Pay attention to the outputs of the sensor in the following two scenarios. Walking off of the platform while not moving in any direction until you hit the ground, and, in the second scenario, walking off the platform, and continuing to move forward until you hit the ground.

An additional command block was placed behind this one to give the player instant health after falling. This last command block is not required for the setup, but recommended for prolonged testing.

Observed Behavior

The redstone signal output of the sculk sensor will be different for the two falling circumstances.

Expected Behavior

The output would remain a consistent number (5 in this case) regardless of how the player fell.

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Comments 4

Can confirm in 20w51a. Relates to MC-210868.

Can confirm in 21w03a.

Still an issue as of 1.19.1

Curtis Phillips

gnembon

Confirmed

Normal

Game Events

20w49a, 20w51a, 21w03a, 1.18.2, 1.19.1

1.20.1

Retrieved