also happens for me, when the player respawn in there base and i need to kill them, for a few seconds, my hits just ignore them, and i just have to trap them in order for me to stop them from distracting me to break their bed :< im on hyperium, optifine