0x41 S41PacketServerDifficulty

Informs client of the server's difficulty setting.

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S41PacketServerDifficulty.java
worlddifficulty

Fields

FieldTypeDescription
difficultyunsigned byte0=peaceful, 1=easy, 2=normal, 3=hard
difficultyLockedbooleanWhether difficulty is locked

Wire Encoding

FieldTypeNotes
Difficultyunsigned byte0-3
Lockedbool

MCP References

MCPNetHandlerPlayClient.handleServerDifficulty()

Handler Interface

HNDINetHandlerPlayClient

implementation Implementation Cases

DifficultyDetector

Detect server difficulty for module configuration.

Vanilla hook: EventReceivePacket
← Back to all packets