Mimic knockback

i tried to mimic knockback effect with this command : execute as @e[tag=HitNetheriteHammer] run data modify entity @s Motion set value [1.0,0.0,0.0]

However it does not have the wanted effect, i just want to make the entity go back a few blocks when hit by an item with a custom tag, why not adding a knockback effect ? while we can make the enchant text disappear with commands, we can't make disappear the glint from the enchant, is there another alternative to that ?

Continue to help post