Type /weather in the chat box to rapidly change the weather. This command requires a specific action, though. After typing /weather, click on the space bar to view weather alternatives like clear, rain, thunder, cloudy, and question.
Choose tranquil, easy, normal, or hard. In your chat window, type /difficulty and the desired difficulty.
Minecraft has easy, moderate, tranquil, and hard difficulties. To go to hard difficulty, type /difficulty hard and press enter.