How to stop lag spikes in minecraft?

I just got minecraft and i really like it but i can't play if there's lag spikes that are so annoying i can't do anything. For Example i break a wood with my hand its broken but it comes back a second later. Please help me i just got minecraft and i need help bad

Change some of the settings.
First: Go to video settings and change graphics to fast, smooth lighting off, clouds off, particles minimum, and brightness moody