Changes the world's difficulty level.
/difficulty <peaceful|easy|normal|hard>
/difficulty hard
Available in both Java and Bedrock editions.