Minecraft wiki entry for Managing_slimes_in_superflat_mode, associated text: Visit the game menu and change the Difficulty box near the top-right corner by clicking on it. Note: this only works if the difficulty is not locked.