MC Toolkit / Commands / Player Command Builder / Difficulty Command Generator
Difficulty Command Generator
Build a /difficulty command to switch world difficulty between peaceful, easy, normal, and hard — exact Java Edition syntax, copy and paste.
5 argument paths · Minecraft 26.3 · from Mojang's own command tree
/difficulty/difficulty easy/difficulty hard/difficulty normal/difficulty peaceful
Most of these need operator permission — run them from an op's chat, a command block, or the server console.