Lag spikes

I get annoying about 1 second lag spikes pretty regularly and its quite annoying, if i run away from a zombie, get a lagspike my character will freeze and the zombie can hit me. Same in pvp with other players. Its not only caused by loading new buildings, it also happens when im standing still and dragging stuff around my inventory.