Set Difficulty in Minecraft
In Basic Mode
Access the game configuration and go to “Basic Config” and Game Settings.
In the line Difficulty, select the desired difficulty and save.
In Advanced Mode
Access the game configuration and go to “Configuration Files” and server.properties.
Change the difficulty= variable to the desired value and save.
Values for the difficulty variable in the JAVA Edition:
peacefuleasynormalhard