Question: how to make a command block give effects?
Answer: Type the command in the chat window and press the Enter key to run the command. This /effect command uses a Name value of strength, a duration of 45 seconds, and an amplifier of 3. This will give the player called DigMinecraft the effect of Strength IV for 45 seconds.