PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
10.04k stars 2.34k forks source link

spigot.yml-"wither-spawn-sound-radius:" Doesn't work #10272

Closed CatTeaA closed 9 months ago

CatTeaA commented 9 months ago

Expected behavior

wither-spawn-sound-radius: 256 Only players within 256 blocks can hear the sound

Observed/Actual behavior

wither-spawn-sound-radius: 256 I was 300 blocks away, but I still heard a voice

Steps/models to reproduce

spigot.yml-wither-spawn-sound-radius: 256 Then test it

Plugin and Datapack List

null

Paper version

This server is running Paper version git-Paper-430 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 4939f87) You are running the latest version

Other

When I used spigot to test "wither-spawn-sound-radius:", it works When I tested "wither-spawn-sound-radius:" with paper, it didn't work as expected

end-portal-sound-radius: dragon-death-sound-radius: Not tested......

electronicboy commented 9 months ago

The logic looks fine, I'd imagine that you've got globalSoundEvents gamerule (noting that these are per world) set to true

electronicboy commented 9 months ago

which is true by default, and will override spigots config; This seems to work as intended

CatTeaA commented 9 months ago

The logic looks fine, I'd imagine that you've got globalSoundEvents gamerule (noting that these are per world) set to true

I don't seem to have changed these, and the rules remain default

CatTeaA commented 9 months ago

which is true by default, and will override spigots config; This seems to work as intended

I'm now using the directive /gamerule globalSoundEvents false "wither-spawn-sound-radius:" works as expected

CatTeaA commented 9 months ago

the setting where the rules of the game take precedence over the spigot.yml-"wither-spawn-sound-radius" Is paper the logic that was modified as intended? 图片

electronicboy commented 9 months ago

Yes, paper modified the logic so that the gamerule would work as expected in order to align with vanilla

CatTeaA commented 9 months ago

Yes, paper modified the logic so that the gamerule would work as expected in order to align with vanilla

Ok thanks