stuggle with tipped arrows

im making a custom bow when shot it modifys the data of the arrow to a bad luck arrow so i can detect if the player hits a player/mob only thing is im havind some trouble with the custompotioneffect because i think it changed since 1.20.2

Continue to help post