Minecraft is commonly described as a ‘sandbox game’. Keep away from preventing mobs if doable. Minecraft just isn’t a fight-centric game; when you have the means to craft gadgets with which you’ll defend yourself, actively going out and attempting to kill mobs is more more likely to lead to your dying than in you surviving the night. While there’ll always be exceptions to this rule (e.g., if you have to kill a spider for some string), working away from battle is at all times better than entertaining it in Minecraft.