0x2B S2BPacketChangeGameState
Changes a global game state: rain toggle, gamemode change, credits, demo messages, elder guardian effect.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| reason | unsigned byte | Reason code: 0=invalidBed, 1=endRain, 2=beginRain, 3=changeGamemode, 4=credits, 5=demo, 6=arrow, 7=fadeValue, 8=fadeTime, 9=elderGuardian |
| value | float | Value associated with reason (gamemode ID, rain strength, fade value) |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Reason | Unsigned Byte | 0=invalidBed, 1=endRain, 2=beginRain, 3=changeGamemode, 4=credits, 5=demo, 6=arrow, 7=fade, 8=fadeTime, 9=elderGuardian |
| Value | float | Reason-dependent |
MCP References
NetHandlerPlayClient.handleChangeGameState()Handler Interface
INetHandlerPlayClientNotes
Vanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
Deobfuscated MCP 1.8.9 source of S2BPacketChangeGameState, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S2BPacketChangeGameState.java) at build time and verified present.
Deep Dive
Role in the protocol
A two-field state toggle: an unsigned byte reason and a float value. It is the server's mechanism for global client state that has no dedicated packet: rain start/stop and strength, gamemode changes, the end-game credits screen, the demo screen and its help messages, arrow-hit feedback, and the elder guardian mob-appearance effect. EntityPlayerMP sends reason 4 on end-game and reason 3 with the new GameType ID on gamemode change; WorldServer and ServerConfigurationManager drive reasons 1, 2, 7 and 8 for weather.
Vanilla handling
NetHandlerPlayClient.handleChangeGameState switches on the reason. Reason 1 sets raining true, 2 sets raining false, 3 calls playerController.setGameType(GameType.getByID(value)), 4 opens GuiWinGame, 5 routes the demo screen (value 0) or demo help messages (101/102/103), 6 plays the successful-hit sound, 7 sets rain strength, 8 sets thunder strength, 10 spawns the mob-appearance particle and guardian curse sound. Reasons with a MESSAGE_NAMES entry also push a translated chat line.
Why clients touch it
Two Rise 6.x handlers, both defensive. Ambience, a render module, cancels reasons 1 and 2 whenever the user has forced a custom weather mode, so server rain toggles cannot override the client's chosen sky. DemoCheck, a security feature, drops reason 5 with value 0, which is the demo-mode screen: a malicious or griefing server can lock a player into the demo overlay, and the check removes that lever. No client in the corpus uses this packet for AutoGG-style game-end detection; reason 4 is ignored everywhere.
Exploit surface
The demo screen (reason 5, value 0) is the abuse vector: it swaps the HUD and movement handling to demo mode, which hostile servers use to grief players. Rain reasons are a nuisance vector on weather-cycling servers, which is exactly why Ambience filters them. Reason 3 gamemode changes are server-authoritative and no client in the corpus fights them; overriding setGameType client-side desyncs the player controller and is a known crash/flag source, which is why it is absent.
Server-Side Handling
Server senders: WorldServer.updateWeather sends reason 7/8 (strengths) per dimension and reason 1/2 (rain stop/start) globally; ServerConfigurationManager sends reason 1 plus 7/8 on player join; EntityPlayerMP sends 4 on end-game and 3 with GameType.getID on gamemode change; EntityArrow sends 6 to the shooter on a successful hit; EntityGuardian sends 10 on the elder guardian effect; DemoWorldManager sends 5 with 0/101/102/103. The client handler applies each reason directly to client world state, with no validation of value ranges.
Protocol Analysis
Encoding: unsigned byte reason, float value. The value is only meaningful for reasons 3 (gamemode id), 5 (demo sub-state), 7 and 8 (weather strengths). Reasons 0, 4, 6, 9, 10 carry value 0.0F. MESSAGE_NAMES maps reasons 1, 3, 4, 5 to chat translations, so some reasons produce both a state change and a chat line. Reason 9 is defined but unused in 1.8.9; reason 10 is the elder guardian variant.
Anti-Cheat Landscape
No anti-cheat measures this packet. Gamemode changes are server-authoritative and instant, so client-side gamemode spoofing is a desync crash rather than a cheat. The defensive angle is server trust: DemoCheck exists because a hostile server can emit reason 5 to disable normal gameplay, and Ambience exists because weather packets fight user-selected ambience. Both are filters on server-controlled state, not evasions.
implementation Implementation Cases
The catch-all state toggle: rain, gamemode, credits, demo, arrow feedback, guardian effect. The 8 clients use it only defensively: Rise 6.x Ambience filters rain toggles under forced weather, and Rise 6.x DemoCheck kills the demo-screen lockout. No game-end (credits) detection exists in this corpus.
Force a chosen weather and stop server rain toggles from overriding it.
When the Weather mode is not Unchanged, the PacketReceiveEvent handler cancels every S2B whose reason is 1 or 2 (begin/end rain). A PreMotionEvent branch re-applies the forced state every 20 ticks via WorldInfo setters, and onDisable resets rain strength and weather flags to defaults.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/render/Ambience.java =====
package com.alan.clients.module.impl.render;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.motion.PreMotionEvent;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import com.alan.clients.event.impl.render.Render3DEvent;
import com.alan.clients.module.Module;
import com.alan.clients.module.api.Category;
import com.alan.clients.module.api.ModuleInfo;
import com.alan.clients.value.impl.ColorValue;
import com.alan.clients.value.impl.ModeValue;
import com.alan.clients.value.impl.NumberValue;
import com.alan.clients.value.impl.SubMode;
import lombok.Getter;
import net.minecraft.network.play.server.S03PacketTimeUpdate;
import net.minecraft.network.play.server.S2BPacketChangeGameState;
import net.minecraft.util.BlockPos;
import net.minecraft.world.biome.BiomeGenBase;
import java.awt.*;
@Getter
@ModuleInfo(aliases = {"module.render.ambience.name"}, description = "module.render.ambience.description", category = Category.RENDER)
public final class Ambience extends Module {
private final NumberValue time = new NumberValue("Time", this, 0, 0, 22999, 1);
private final NumberValue speed = new NumberValue("Time Speed", this, 0, 0, 20, 1);
private final ModeValue weather = new ModeValue("Weather", this) {{
add(new SubMode("Unchanged"));
add(new SubMode("Clear"));
add(new SubMode("Rain"));
add(new SubMode("Heavy Snow"));
add(new SubMode("Light Snow"));
add(new SubMode("Nether Particles"));
setDefault("Unchanged");
}};
public final ColorValue snowColor = new ColorValue("Snow Color", this, Color.WHITE,
() -> !weather.getValue().getName().equals("Heavy Snow") && !weather.getValue().getName().equals("Light Snow"));
@Override
public void onDisable() {
mc.theWorld.setRainStrength(0);
mc.theWorld.getWorldInfo().setCleanWeatherTime(Integer.MAX_VALUE);
mc.theWorld.getWorldInfo().setRainTime(0);
mc.theWorld.getWorldInfo().setThunderTime(0);
mc.theWorld.getWorldInfo().setRaining(false);
mc.theWorld.getWorldInfo().setThundering(false);
}
@EventLink
public final Listener<Render3DEvent> onRender3D = event -> {
mc.theWorld.setWorldTime((time.getValue().intValue() + (System.currentTimeMillis() * speed.getValue().intValue())));
};
@EventLink
public final Listener<PreMotionEvent> onPreMotionEvent = event -> {
if (mc.thePlayer.ticksExisted % 20 == 0) {
switch (this.weather.getValue().getName()) {
case "Clear": {
mc.theWorld.setRainStrength(0);
mc.theWorld.getWorldInfo().setCleanWeatherTime(Integer.MAX_VALUE);
mc.theWorld.getWorldInfo().setRainTime(0);
mc.theWorld.getWorldInfo().setThunderTime(0);
mc.theWorld.getWorldInfo().setRaining(false);
mc.theWorld.getWorldInfo().setThundering(false);
break;
}
case "Nether Particles":
case "Light Snow":
case "Heavy Snow":
case "Rain": {
mc.theWorld.setRainStrength(1);
mc.theWorld.getWorldInfo().setCleanWeatherTime(0);
mc.theWorld.getWorldInfo().setRainTime(Integer.MAX_VALUE);
mc.theWorld.getWorldInfo().setThunderTime(Integer.MAX_VALUE);
mc.theWorld.getWorldInfo().setRaining(true);
mc.theWorld.getWorldInfo().setThundering(false);
}
}
}
};
@EventLink
public final Listener<PacketReceiveEvent> onPacketReceiveEvent = event -> {
if (event.getPacket() instanceof S03PacketTimeUpdate) {
event.setCancelled();
} else if (event.getPacket() instanceof S2BPacketChangeGameState && !this.weather.getValue().getName().equals("Unchanged")) {
S2BPacketChangeGameState s2b = (S2BPacketChangeGameState) event.getPacket();
if (s2b.getGameState() == 1 || s2b.getGameState() == 2) {
event.setCancelled();
}
}
};
public float getFloatTemperature(BlockPos blockPos, BiomeGenBase biomeGenBase) {
if (this.isEnabled()) {
switch (this.weather.getValue().getName()) {
case "Nether Particles":
case "Light Snow":
case "Heavy Snow":
return 0.1F;
case "Rain":
return 0.2F;
}
}
return biomeGenBase.getFloatTemperature(blockPos);
}
public boolean skipRainParticles() {
final String name = this.weather.getValue().getName();
return this.isEnabled() && name.equals("Light Snow") || name.equals("Heavy Snow") || name.equals("Nether Particles");
}
}
// NOTE (AI): The S2B branch (lines ~90-96) only filters reasons 1 and 2. Time updates are filtered separately via S03PacketTimeUpdate, and the forced weather is re-asserted on a 20-tick cadence to survive server-side refreshes.Drop the demo-mode packet so a server cannot lock the client into the demo screen.
A SecurityFeature on the packet receive chain. It drops any S2B where reason is 5 and value is 0, which is exactly the packet DemoWorldManager sends to open GuiScreenDemo. The demo help messages (values 101-103) are not blocked, only the screen-opening state.
// ===== FILE: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/security/impl/DemoCheck.java =====
package com.alan.clients.security.impl;
import com.alan.clients.security.SecurityFeature;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S2BPacketChangeGameState;
public final class DemoCheck extends SecurityFeature {
public DemoCheck() {
super("Demo Check", "Server attempted to prevent gameplay with a demo screen");
}
@Override
public boolean handle(final Packet<?> packet) {
if (packet instanceof S2BPacketChangeGameState) {
final S2BPacketChangeGameState wrapper = ((S2BPacketChangeGameState) packet);
return wrapper.getGameState() == 5 && wrapper.func_149137_d() == 0;
}
return false;
}
}
// NOTE (AI): Precise filter: reason 5 with value 0.0F. The value check is what distinguishes the lockout screen from the harmless demo help messages.anticheat Anti-Cheat Checks
Server-side anticheats treat the change-game-state packet as authoritative world metadata, not as a cheat surface. Grim listens on the send path to keep its simulated gamemode and death-screen state transaction-ordered with the client, and feeds the rain reasons into the compensated world; Intave subscribes to the outbound game-state change to track the pending gamemode for its ability metadata. Artemis registers the packet in its wrapper repository. No anticheat uses it to flag the player, because the server controls both the reason and the value.
Keep Grim's simulated gamemode and death-screen state in sync with server-sent game-state changes.
PacketSendListener on CHANGE_GAME_STATE. For CHANGE_GAME_MODE it sends a transaction and applies the new gamemode in a real-time task ordered after that transaction, clamping invalid plugin values (below 0 or past the enum) to SURVIVAL and notifying the spectate manager when leaving spectator. For ENABLE_RESPAWN_SCREEN (1.15+) it records whether the death screen is shown.
// ===== FILE: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketChangeGameState.java =====
package ac.grim.grimac.events.packets;
import ac.grim.grimac.GrimAPI;
import ac.grim.grimac.checks.Check;
import ac.grim.grimac.checks.type.PacketSendListener;
import ac.grim.grimac.player.GrimPlayer;
import com.github.retrooper.packetevents.event.PacketSendEvent;
import com.github.retrooper.packetevents.manager.server.ServerVersion;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.protocol.player.ClientVersion;
import com.github.retrooper.packetevents.protocol.player.GameMode;
import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerChangeGameState;
public class PacketChangeGameState extends Check implements PacketSendListener {
public PacketChangeGameState(GrimPlayer playerData) {
super(playerData);
}
@Override
public void onPacketSend(final PacketSendEvent event) {
if (event.getPacketType() != PacketType.Play.Server.CHANGE_GAME_STATE) return;
WrapperPlayServerChangeGameState packet = new WrapperPlayServerChangeGameState(event);
switch (packet.getReason()) {
case CHANGE_GAME_MODE -> {
player.sendTransaction();
player.latencyUtils.addRealTimeTask(player.lastTransactionSent.get(), () -> {
// Bukkit's gamemode order is unreliable, so go from int -> packetevents -> bukkit
GameMode previous = player.gamemode;
int gamemode = (int) packet.getValue();
// Some plugins send invalid values such as -1, this is what the client does
if (gamemode < 0 || gamemode >= GameMode.values().length) {
player.gamemode = GameMode.SURVIVAL;
} else {
player.gamemode = GameMode.values()[gamemode];
}
if (previous == GameMode.SPECTATOR && player.gamemode != GameMode.SPECTATOR) {
GrimAPI.INSTANCE.getSpectateManager().handlePlayerStopSpectating(player.uuid);
}
});
}
case ENABLE_RESPAWN_SCREEN -> {
if (player.getClientVersion().isOlderThan(ClientVersion.V_1_15)
|| event.getServerVersion().isOlderThan(ServerVersion.V_1_15)) return;
player.sendTransaction();
final boolean enabled = packet.getValue() == 0f;
player.addRealTimeTaskNow(() -> player.packetStateData.showsDeathScreen = enabled);
}
}
}
}
// NOTE (AI): The gamemode is applied only after a transaction round-trip, which orders the simulated gamemode against the client's own processing. Invalid values are clamped to SURVIVAL rather than flagged.Track the pending gamemode on outbound game-state changes so ability metadata (flight, speed) matches what the client actually sees.
PacketSubscription on outbound GAME_STATE_CHANGE with the GameStateChangeReader. If the reason is CHANGE_GAME_MODE, the value is mapped through GameStateChangeReader.GameState and stored as a pending gamemode on AbilityMetadata; the active gamemode only flips on the next tick feedback, which keeps ability state aligned with the client's processing order. The rest of the module consumes that metadata for the critical-flying-disallow mitigation.
// ===== FILE: intave-intave, src/main/java/de/jpx3/intave/module/tracker/player/AbilityTracker.java =====
package de.jpx3.intave.module.tracker.player;
import com.comphenix.protocol.events.PacketEvent;
import de.jpx3.intave.IntavePlugin;
import de.jpx3.intave.executor.Synchronizer;
import de.jpx3.intave.module.Module;
import de.jpx3.intave.module.Modules;
import de.jpx3.intave.module.linker.packet.ListenerPriority;
import de.jpx3.intave.module.linker.packet.PacketId;
import de.jpx3.intave.module.linker.packet.PacketSubscription;
import de.jpx3.intave.packet.reader.AbilityInReader;
import de.jpx3.intave.packet.reader.AbilityOutReader;
import de.jpx3.intave.packet.reader.EntityReader;
import de.jpx3.intave.packet.reader.GameStateChangeReader;
import de.jpx3.intave.share.Motion;
import de.jpx3.intave.user.MessageChannel;
import de.jpx3.intave.user.User;
import de.jpx3.intave.user.meta.AbilityMetadata;
import de.jpx3.intave.user.meta.MetadataBundle;
import de.jpx3.intave.user.meta.MovementMetadata;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import static de.jpx3.intave.module.linker.packet.PacketId.Client.*;
import static de.jpx3.intave.module.linker.packet.PacketId.Server.*;
import static de.jpx3.intave.packet.reader.GameStateChangeReader.GameState.CHANGE_GAME_MODE;
public final class AbilityTracker extends Module {
@PacketSubscription(packetsOut = CAMERA)
public void receiveCamera(User user, EntityReader reader) {
int entityId = reader.entityId();
user.tickFeedback(() -> synchronizedCameraUpdate(user, entityId));
}
private void synchronizedCameraUpdate(User user, int entityId) {
AbilityMetadata abilityData = user.meta().abilities();
abilityData.hasViewEntity = entityId != user.player().getEntityId();
}
@PacketSubscription(
priority = ListenerPriority.HIGH,
packetsIn = {ABILITIES_IN}
)
public void receiveAbilities(User user, AbilityInReader reader) {
AbilityMetadata abilityData = user.meta().abilities();
MovementMetadata movementData = user.meta().movement();
boolean flying = reader.requestedFlying();
if (abilityData.allowFlying()) {
if (flying) {
abilityData.setFlying(true);
} else {
abilityData.disabledFlying = true;
}
}
}
@PacketSubscription(
priority = ListenerPriority.HIGH,
packetsOut = {
ABILITIES_OUT
}
)
public void sentAbilities(User user, AbilityOutReader reader, PacketEvent event) {
MetadataBundle meta = user.meta();
MovementMetadata movement = meta.movement();
AbilityMetadata abilityData = meta.abilities();
float flyingSpeed = reader.flyingSpeed();
float walkingSpeed = reader.walkingSpeed();
boolean allowedFlight = reader.flyingAllowed();
boolean critical = abilityData.allowFlying() && !allowedFlight && movement.criticalTeleportRateLimiter.tryAcquire();
if (critical /*&& movement.lastTeleport < 20*/) {
// Teleport again to force transaction synchronization
Synchronizer.synchronizeDelayed(() -> {
MovementMetadata moovement = user.meta().movement();
if (moovement.criticalFlyingDisallowStacks > 0) {
Location position = moovement.verifiedLocation().clone();
Player player = user.player();
position.setWorld(player.getWorld());
player.teleport(position);
moovement.criticalFlyingBlockMovementStacks++;
if (user.receives(MessageChannel.DEBUG_TELEPORT)) {
player.sendMessage(IntavePlugin.prefix() + "Teleport to " + player.getLocation().getBlockX() + " " + player.getLocation().getBlockY() + " " + player.getLocation().getBlockZ() + " " + " as " + ChatColor.RED + " not responding to critical flight disallow");
}
}
}, 20);
}
if (critical) {
if (movement.criticalFlyingDisallowStacks++ == 0) {
movement.criticalEnterPosX = movement.verifiedLastPositionX;
movement.criticalEnterPosY = movement.verifiedLastPositionY;
movement.criticalEnterPosZ = movement.verifiedLastPositionZ;
}
}
user.packetTickFeedback(event, () -> {
abilityData.setWalkSpeed(walkingSpeed);
abilityData.setFlySpeed(flyingSpeed);
abilityData.setAllowFlying(allowedFlight);
if (critical) {
if (movement.criticalFlyingDisallowStacks > 0) {
movement.criticalFlyingDisallowStacks--;
}
movement.criticalFlyingBlockMovementStacks = 0;
}
});
}
@PacketSubscription(
priority = ListenerPriority.HIGH,
packetsIn = {FLYING, PacketId.Client.POSITION, LOOK, POSITION_LOOK}
)
public void incomingFlyingUpdate(User user, Player player) {
MovementMetadata movementData = user.meta().movement();
if (movementData.criticalFlyingDisallowStacks > 0 &&
!movementData.criticalFlyingDisallowWasTeleported
) {
double deltaX = movementData.verifiedLastPositionX - movementData.criticalEnterPosX;
double deltaY = movementData.verifiedLastPositionY - movementData.criticalEnterPosY;
double deltaZ = movementData.verifiedLastPositionZ - movementData.criticalEnterPosZ;
double distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ);
if (distance > 3 && movementData.criticalTeleportRateLimiter.tryAcquire()) {
Modules.mitigate().movement().emulationSetBack(player, Motion.newEmpty(), 3, 2, false);
if (user.receives(MessageChannel.DEBUG_TELEPORT)) {
player.sendMessage(IntavePlugin.prefix() + "Teleport to " + player.getLocation().getBlockX() + " " + player.getLocation().getBlockY() + " " + player.getLocation().getBlockZ() + " " + " for " + ChatColor.RED + " critical flying disallow protection");
}
movementData.criticalFlyingDisallowStacks = 0;
}
} else if (movementData.criticalFlyingBlockMovementStacks > 0 && movementData.criticalTeleportRateLimiter.tryAcquire()) {
Synchronizer.synchronize(() -> {
player.teleport(player.getLocation());
});
if (user.receives(MessageChannel.DEBUG_TELEPORT)) {
player.sendMessage(IntavePlugin.prefix() + "Teleport to " + player.getLocation().getBlockX() + " " + player.getLocation().getBlockY() + " " + player.getLocation().getBlockZ() + " " + " for " + ChatColor.RED + " critical flying disallow protection (movement block)");
}
}
}
@PacketSubscription(
packetsOut = PacketId.Server.POSITION
)
public void outgoingPositionUpdate(User user) {
MovementMetadata movementData = user.meta().movement();
movementData.criticalFlyingDisallowWasTeleported = movementData.criticalFlyingDisallowStacks == 1;
}
@PacketSubscription(
priority = ListenerPriority.NORMAL,
packetsOut = {
GAME_STATE_CHANGE
}
)
public void outgoingGameModeUpdate(
User user, GameStateChangeReader reader
) {
if (reader.type() != CHANGE_GAME_MODE) {
return;
}
GameMode gameMode = gameModeOf(reader.valueAsInt());
AbilityMetadata abilityData = user.meta().abilities();
abilityData.setPendingGameMode(gameMode);
user.tickFeedback(() -> abilityData.setGameMode(gameMode));
}
private GameMode gameModeOf(int id) {
for (GameMode value : GameMode.values()) {
if (value.id == id) {
return value;
}
}
throw new IllegalStateException("Unable to resolve gamemode with id " + id);
}
public enum GameMode {
NOT_SET(-1),
SURVIVAL(0),
CREATIVE(1),
ADVENTURE(2),
SPECTATOR(3);
private final int id;
GameMode(int id) {
this.id = id;
}
public static GameMode fromBukkit(org.bukkit.GameMode gameMode) {
switch (gameMode) {
case SURVIVAL:
return SURVIVAL;
case CREATIVE:
return CREATIVE;
case ADVENTURE:
return ADVENTURE;
case SPECTATOR:
return SPECTATOR;
default:
throw new IllegalArgumentException("Unable to resolve game mode " + gameMode);
}
}
public int id() {
return id;
}
}
}
// NOTE (AI): The outgoingGameModeUpdate subscription is the S2B hook. The pending gamemode flips to active only on tick feedback so ability checks never run against a gamemode the client has not applied yet.Register the outbound game-state packet in Artemis' packet abstraction so checks can listen to it.
The packet API declares PacketPlayServerGameStateChange and PacketRepository maps SERVER_PLAY + 36 to it. This is framework registration only; no check in the corpus consumes the wrapper.
// ===== FILE: artemisac-artemis-minecraft-anticheat, ac.artemis.packet.api/src/main/java/ac/artemis/packet/wrapper/server/PacketPlayServerGameStateChange.java =====
package ac.artemis.packet.wrapper.server;
import ac.artemis.packet.wrapper.PacketServer;
public interface PacketPlayServerGameStateChange extends PacketServer {
}
// NOTE (AI): Six-line interface, registration only. Artemis maps SERVER_PLAY + 36 to this class in PacketRepository; no check in the corpus consumes it.Related Packets
Wiki Cross-Reference
Reason 0 signals that no valid respawn block is available, reason 6 is sent when a player is struck by an arrow, and rain and thunder levels range from 0 to 1 with thunder rendering requiring active rain.
MCP 1.8.9 S2BPacketChangeGameState implements Packet
1.8.9 callers: EntityGuardian.apply sends new S2BPacketChangeGameState (line 451) +5 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/monster/EntityGuardian.java
Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.
Vanilla Internals
Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.