D
Deleted member 5254
i can still hear the sound
help.
i also tried game.player.hurt
I am not sure why you are still hearing the sound, but you can try to further debug the issue:
If you are getting the first broadcast at the same time as game.player.hurt broadcast, then you may have the wrong sound or some similar issue, while if you get the second broadcast at the same time then it's some weirder problem.code_language.skript:on packet event play_server_named_sound_effect: broadcast "%string pinfo 0 of event-packet%" if "%string pinfo 0 of event-packet%" is "game.player.hurt": broadcast "Sound game.player.hurt detected, cancelling event" cancel event else: broadcast "Not game.player.hurt, not cancelling event"
For others here's working code (on 1.8.8):
code_language.skript:
on packet event play_server_named_sound_effect:
if string pinfo 0 of event-packet is "game.player.hurt":
set string pinfo 0 of event-packet to "mob.blaze.hit"