0x1F S1FPacketSetExperience

Updates the player's experience bar (level, total XP, progress).

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

Published 2026-06-18 · Updated 2026-10-14

playerxp
Comprehensive 7/8

Fields

FieldTypeDescription
experienceBarfloatProgress to next level (0.0-1.0)
totalExperienceVarIntTotal accumulated XP
levelVarIntCurrent XP level

Wire Encoding

FieldTypeNotes
XP Progressfloat0.0-1.0
Total XPVarInt
LevelVarInt

MCP References

MCPNetHandlerPlayClient.handleSetExperience()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S1FPacketSetExperience.java67 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
8
public class S1FPacketSetExperience implements Packet<INetHandlerPlayClient>
9
{
10
    private float field_149401_a;
11
    private int totalExperience;
12
    private int level;
13
14
    public S1FPacketSetExperience()
15
    {
16
    }
17
18
    public S1FPacketSetExperience(float p_i45222_1_, int totalExperienceIn, int levelIn)
19
    {
20
        this.field_149401_a = p_i45222_1_;
21
        this.totalExperience = totalExperienceIn;
22
        this.level = levelIn;
23
    }
24
25
    /**
26
     * Reads the raw packet data from the data stream.
27
     */
28
    public void readPacketData(PacketBuffer buf) throws IOException
29
    {
30
        this.field_149401_a = buf.readFloat();
31
        this.level = buf.readVarIntFromBuffer();
32
        this.totalExperience = buf.readVarIntFromBuffer();
33
    }
34
35
    /**
36
     * Writes the raw packet data to the data stream.
37
     */
38
    public void writePacketData(PacketBuffer buf) throws IOException
39
    {
40
        buf.writeFloat(this.field_149401_a);
41
        buf.writeVarIntToBuffer(this.level);
42
        buf.writeVarIntToBuffer(this.totalExperience);
43
    }
44
45
    /**
46
     * Passes this Packet on to the NetHandler for processing.
47
     */
48
    public void processPacket(INetHandlerPlayClient handler)
49
    {
50
        handler.handleSetExperience(this);
51
    }
52
53
    public float func_149397_c()
54
    {
55
        return this.field_149401_a;
56
    }
57
58
    public int getTotalExperience()
59
    {
60
        return this.totalExperience;
61
    }
62
63
    public int getLevel()
64
    {
65
        return this.level;
66
    }
67
}

Deobfuscated MCP 1.8.9 source of S1FPacketSetExperience, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S1FPacketSetExperience.java) at build time and verified present.

Deep Dive

Role in the protocol

S1FPacketSetExperience synchronizes the player's XP bar: experienceBar float (0.0-1.0 progress to next level), totalExperience VarInt, level VarInt. The server sends it from EntityPlayerMP when XP changes (line 401 in the corpus) and from ServerConfigurationManager on respawn/join (line 477). It is a pure display-state push: the client stores the three values and the HUD renders from them; the client never reports XP back, so the server's XP math is the only authoritative copy.

Vanilla handling

NetHandlerPlayClient.handleSetExperience calls thePlayer.setXPStats(progress, totalXp, level), which writes the player's experience, experienceTotal and experienceLevel fields. GuiIngame draws the bar and the level number from those fields every frame. Unlike health (S06) there is no client-side regeneration model behind it: the packet is the entire state.

Why clients touch it

Exactly one module in the 8 clients references S1F: Rise 5.99 Disabler, whose Hypixel Slime mode cancels the packet in onPacketReceive. Rise 6.1.30/6.2.4 only register the class in NetworkAPI (clientbound index 74). The XPHUD/AutoEnchant entries from older packet docs have zero corpus hits in the reference clients: XP is read from the player object, not from the packet.

Exploit surface

Cancelling S1F freezes the client-side XP bar while the server continues its own XP bookkeeping. Because the client never acknowledges XP, the divergence is invisible in the packet stream, and enchanting/anvil costs are computed server-side so nothing gameplay-relevant is gained. The Rise 5.99 usage is a state-freeze side effect of the Hypixel Slime disabler mode, which cancels the XP sync together with slime sound and particle packets so the client's stored minigame state stays static during the bypass window.

Server-Side Handling

EntityPlayerMP sends S1F at line 401 whenever the player's XP fields change (addExperience, addExperienceLevel, onEnchant, the level-up path). ServerConfigurationManager sends it at line 477 when a player joins or respawns so the bar starts correct. There is no inbound validation because the packet is clientbound; the server trusts its own XP math entirely.

Protocol Analysis

Three fields in order: float progress (0.0-1.0), VarInt total XP, VarInt level. The float is written as a 32-bit IEEE value, so progress is exact to the wire format. The client stores all three as player fields; GuiIngame renders progress as the bar fill and level as the number. A cancelled S1F leaves the previous values in place, which is the freeze the Rise 5.99 mode relies on.

Anti-Cheat Landscape

No anti-cheat measures S1F. XP is never echoed by the client, so a frozen bar cannot be distinguished from a laggy one by packet inspection alone. Servers that need XP for gameplay (enchanting, anvils, spawners) compute it server-side, which is why cancelling the packet is safe and why no bypass value exists beyond cosmetics or minigame state sync.

implementation Implementation Cases

A three-field display push for the XP bar with a single module hit in the reference set: Rise 5.99 Disabler's Hypixel Slime mode cancels it to freeze client state. Everything else is vanilla or the Rise 6.x script registry.

Disabler (Rise 5.99)

The Hypixel Slime mode cancels S1FPacketSetExperience so the client's stored XP state stays frozen while the rest of the mode's state-freeze bypass runs.

In onPacketReceive, when the hypixelSlime toggle is enabled, the handler rewrites S02PacketChat type-2 messages that contain 'UNAVAILABLE', cancels S29PacketSoundEffect with sound name 'mob.slime.big', cancels S2APacketParticles of type SLIME, and cancels S1FPacketSetExperience. The XP cancel keeps the minigame's XP sync from mutating client state mid-bypass.

Source: Rise 5.99, dev/rise/module/impl/other/Disabler.java

Vanilla hook: PacketReceiveEvent (onPacketReceive); the module also uses PreMotionEvent, TeleportEvent, AttackEvent, StrafeEvent, PacketSendEvent and WorldChangedEvent.
Low risk: the server never sees a response to S1F and XP is never echoed, so the cancel is indistinguishable from packet loss. The visible side effect is a frozen XP bar in the HUD.
Variations: Rise 6.1.30 and 6.2.4 ship their own exploit/Disabler.java but the corpus shows no S1F reference in it; those versions only touch S1F through NetworkAPI's script registration. No other reference client has any S1F module hit.
PacketReceiveEvent on Rise 5.99. The single real module hit for this packet is a cancel inside a multi-mode disabler, not a dedicated XP module.
Rise 5.99 uses a boolean-toggle mode matrix inside one Disabler class. Rise 6.x replaces the module structure entirely (component system) and only lists the packet in NetworkAPI.

anticheat Anti-Cheat Checks

The experience packet has no detection story. The corpus shows one functional use: Intave writes S1F itself as a telemetry channel, packing ping and simulation data into the level field, and Artemis registers a PacketPlayServerExperience interface in its wrapper tree. The other hits are incidental: Negativity lists the packet in a type enum, NCP prints the player's exp in an admin inspect command, and the Photon hit is a keyword collision with SPAWN_EXPERIENCE_ORB (S11), not S1F. No anticheat reads S1F to detect anything.

Experience telemetry channel (Intave) (intave-intave)

Reuse the experience packet as a covert data channel: Intave sends S1F with the level field packed with telemetry instead of real XP.

sendPacketWithExperience builds an EXPERIENCE packet with progress 0 and total XP 0, writes the level field to a packed value, and sends it to the player. ConnectionMetadata encodes ping averages (ping times 1000 plus short ping) when LATENCY_PING_AS_XP_LEVEL is on; Physics.java sends the simulation rate limiter counter; StorageLoader replays a storage tag as a recurring level set.

Detects: Nothing. This is the only functional S1F usage in the corpus and it is outbound telemetry, not detection.

Source: intave-intave, src/main/java/de/jpx3/intave/user/meta/ConnectionMetadata.java

Variations: Artemis registers PacketPlayServerExperience as a wrapper interface (repository entry at SERVER_PLAY + 34); Negativity lists EXPERIENCE in its packet-type enum; NCP prints the player's exp in the admin inspect command; the Photon corpus hit is a keyword collision with SPAWN_EXPERIENCE_ORB, which is S11, not S1F.

Wiki Cross-Reference

Clientbound 0x1F: float bar progress 0.0-1.0, VarInt level, VarInt total XP.

Pure display sync for HUD bar and level number; server keeps authoritative XP.

Sent on XP change, join and respawn; client never echoes XP back.

MCP 1.8.9 S1FPacketSetExperience implements Packet dispatching to INetHandlerPlayClient.handleSetExperience; wire serde is readPacketData/writePacketData via readFloat, readVarIntFromBuffer.

1.8.9 callers: EntityPlayerMP.onUpdateEntity sends new S1FPacketSetExperience (line 422) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/player/EntityPlayerMP.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.