Skip to content

Don't map player attack sounds to arrow sounds in 1.9->1.8 - #149

Open
lllupin wants to merge 1 commit into
ViaVersion:mainfrom
lllupin:patch-1
Open

lllupin wants to merge 1 commit into
ViaVersion:mainfrom
lllupin:patch-1

Conversation

@lllupin

@lllupin lllupin commented Sep 26, 2026

Copy link
Copy Markdown

Follow-up to #128.

#128 mapped the 1.9 entity.player.attack.* sounds to arrow sounds for 1.8 clients:

  • attack.crit, knockback, strong, sweep, weak → random.successful_hit (the arrow-hit "ding")
  • attack.nodamage → random.bowhit (arrow landing)

Since these are sent on every melee hit, 1.8 clients now hear arrow sounds constantly during PvP. Hits in creative, or any other hit that deals no damage, sound like arrows landing nearby, and the arrow-hit "ding" no longer tells you whether a bow shot actually hit.

1.8 has no attack sounds. The only sound on a hit is the victim's hurt sound, which is still sent separately as entity.player.hurt → game.player.hurt. This PR sets the six entity.player.attack.* entries back to "", as they were before #128, so melee hits sound like vanilla 1.8 again.

Only mappings/diff/mapping-1.9to1.8.json is changed. I didn't recompile the output files.

Tested on a 1.12.2 server with ViaVersion/ViaBackwards 5.12.0 and ViaRewind 4.2.0, using a 1.8 client.

Fixes ViaVersion/ViaRewind#726

Follow-up to ViaVersion#128.

ViaVersion#128 mapped the 1.9 `entity.player.attack.*` sounds to arrow sounds for 1.8 clients:

- `attack.crit`, `knockback`, `strong`, `sweep`, `weak` → `random.successful_hit` (the arrow-hit "ding")
- `attack.nodamage` → `random.bowhit` (arrow landing)

Since these are sent on every melee hit, 1.8 clients now hear arrow sounds constantly during PvP. Hits in creative, or any other hit that deals no damage, sound like arrows landing nearby, and the arrow-hit "ding" no longer tells you whether a bow shot actually hit.

1.8 has no attack sounds. The only sound on a hit is the victim's hurt sound, which is still sent separately as `entity.player.hurt` → `game.player.hurt`. This PR sets the six `entity.player.attack.*` entries back to `""`, as they were before ViaVersion#128, so melee hits sound like vanilla 1.8 again.

Only `mappings/diff/mapping-1.9to1.8.json` is changed. I didn't recompile the output files.

Tested on a 1.12.2 server with ViaVersion/ViaBackwards 5.12.0 and ViaRewind 4.2.0, using a 1.8 client.

Fixes ViaVersion/ViaRewind#726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.9→1.8: melee hits play arrow sounds since 4.2.0

2 participants