0x13 C13PacketPlayerAbilities

Player toggles flying state. Only sent for the flying flag change. The server controls all other ability flags via S39PacketPlayerAbilities.

Serverbound (Client → Server) · PLAY · net/minecraft/network/play/client/C13PacketPlayerAbilities.java

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

playermovementflight
Comprehensive 8/8

Fields

FieldTypeDescription
invulnerablebooleanPlayer is invulnerable (god mode)
isFlyingbooleanTrue if the player is currently flying
allowFlyingbooleanWhether player is allowed to fly
creativeModebooleanTrue if in creative mode
flySpeedfloatFlight speed multiplier
walkSpeedfloatWalk speed multiplier

Wire Encoding

FieldTypeNotes
Flagsbyte (bitmask)0x01=invulnerable, 0x02=flying, 0x04=allowFlying, 0x08=creative
Fly SpeedfloatFlight speed multiplier
Walk SpeedfloatWalk speed multiplier

MCP References

MCPNetHandlerPlayServer.processPlayerAbilities()

Handler Interface

HNDINetHandlerPlayServer

Notes

The client only sends this when the flying state changes (pressing space twice in creative mode). The server ignores all flags except isFlying for non-creative players. Even if you set allowFlying=true, the server won't let you fly unless it sent S39 with allowFlying=true first.

Vanilla Source

C13PacketPlayerAbilities.java135 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
2
3
import java.io.IOException;
4
import net.minecraft.entity.player.PlayerCapabilities;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayServer;
8
9
public class C13PacketPlayerAbilities implements Packet<INetHandlerPlayServer>
10
{
11
    private boolean invulnerable;
12
    private boolean flying;
13
    private boolean allowFlying;
14
    private boolean creativeMode;
15
    private float flySpeed;
16
    private float walkSpeed;
17
18
    public C13PacketPlayerAbilities()
19
    {
20
    }
21
22
    public C13PacketPlayerAbilities(PlayerCapabilities capabilities)
23
    {
24
        this.setInvulnerable(capabilities.disableDamage);
25
        this.setFlying(capabilities.isFlying);
26
        this.setAllowFlying(capabilities.allowFlying);
27
        this.setCreativeMode(capabilities.isCreativeMode);
28
        this.setFlySpeed(capabilities.getFlySpeed());
29
        this.setWalkSpeed(capabilities.getWalkSpeed());
30
    }
31
32
    /**
33
     * Reads the raw packet data from the data stream.
34
     */
35
    public void readPacketData(PacketBuffer buf) throws IOException
36
    {
37
        byte b0 = buf.readByte();
38
        this.setInvulnerable((b0 & 1) > 0);
39
        this.setFlying((b0 & 2) > 0);
40
        this.setAllowFlying((b0 & 4) > 0);
41
        this.setCreativeMode((b0 & 8) > 0);
42
        this.setFlySpeed(buf.readFloat());
43
        this.setWalkSpeed(buf.readFloat());
44
    }
45
46
    /**
47
     * Writes the raw packet data to the data stream.
48
     */
49
    public void writePacketData(PacketBuffer buf) throws IOException
50
    {
51
        byte b0 = 0;
52
53
        if (this.isInvulnerable())
54
        {
55
            b0 = (byte)(b0 | 1);
56
        }
57
58
        if (this.isFlying())
59
        {
60
            b0 = (byte)(b0 | 2);
61
        }
62
63
        if (this.isAllowFlying())
64
        {
65
            b0 = (byte)(b0 | 4);
66
        }
67
68
        if (this.isCreativeMode())
69
        {
70
            b0 = (byte)(b0 | 8);
71
        }
72
73
        buf.writeByte(b0);
74
        buf.writeFloat(this.flySpeed);
75
        buf.writeFloat(this.walkSpeed);
76
    }
77
78
    /**
79
     * Passes this Packet on to the NetHandler for processing.
80
     */
81
    public void processPacket(INetHandlerPlayServer handler)
82
    {
83
        handler.processPlayerAbilities(this);
84
    }
85
86
    public boolean isInvulnerable()
87
    {
88
        return this.invulnerable;
89
    }
90
91
    public void setInvulnerable(boolean isInvulnerable)
92
    {
93
        this.invulnerable = isInvulnerable;
94
    }
95
96
    public boolean isFlying()
97
    {
98
        return this.flying;
99
    }
100
101
    public void setFlying(boolean isFlying)
102
    {
103
        this.flying = isFlying;
104
    }
105
106
    public boolean isAllowFlying()
107
    {
108
        return this.allowFlying;
109
    }
110
111
    public void setAllowFlying(boolean isAllowFlying)
112
    {
113
        this.allowFlying = isAllowFlying;
114
    }
115
116
    public boolean isCreativeMode()
117
    {
118
        return this.creativeMode;
119
    }
120
121
    public void setCreativeMode(boolean isCreativeMode)
122
    {
123
        this.creativeMode = isCreativeMode;
124
    }
125
126
    public void setFlySpeed(float flySpeedIn)
127
    {
128
        this.flySpeed = flySpeedIn;
129
    }
130
131
    public void setWalkSpeed(float walkSpeedIn)
132
    {
133
        this.walkSpeed = walkSpeedIn;
134
    }
135
}

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

Deep Dive

Role in the protocol

C13 announces ability state changes: a 4-bit flag byte (invulnerable, flying, allowFlying, creative) plus fly and walk speed floats. Vanilla sends it only when the flying flag flips, from EntityPlayerSP.sendPlayerAbilities. Despite the full struct, the 1.8.9 server reads exactly one bit: it writes isFlying into the player's capabilities and discards everything else.

Vanilla handling

processPlayerAbilities is a single line: capabilities.isFlying = packetIn.isFlying() && capabilities.allowFlying. The server's own allowFlying flag, set exclusively via S39PacketPlayerAbilities, ANDs out any client claim of flight, which is the core reason ability spoofing is a dead end against vanilla. The float fields are not stored at all in 1.8.9, so a forged flySpeed or walkSpeed never reaches server math.

Why clients touch it

The 8 clients show four families. (1) Disabler modes: Memeware Watchdog sends C13 with NaN flySpeed on Hypixel, Rise 5.99's hypixelSlime and c13 modes send allowFlying/isFlying true, Spicy's Disabler sends creative flags. (2) Rise 6.x AbilitiesDisabler spams C13 every 5 ticks. (3) Flight movement: Spicy LongJump, Fly and BackupFly forge full PlayerCapabilities with random flySpeed. (4) Utility: Rise 6.x Nuker syncs the flying flag before teleport-nuking, and the script PacketAPI exposes sendAbilities. The two new research clients add two more. November Recode 2.0 only maps C13 to id 0x13 for its Lua scripting API, with no dedicated module. LiquidSense Dev declares isFlying on enable in LastestHypixelFly and Tp, and TeleportCommand spams absurd flySpeed and walkSpeed floats (1.0E8F and 1.0E8F minus 1) along its C04 teleport path.

Exploit surface

Because the server ANDs against its own allowFlying, the packet is the safest spoof in the protocol: a forged isFlying claim is dropped silently on any non-creative player, which is why disablers spam it freely. The NaN flySpeed in Memeware targets proxy and anti-cheat parsers that copy the float before the handler drops it. The real signal anti-cheats measure is not C13 but the motion that follows: clients that declare flying then move at fly speed without S39 authorization flag on movement checks, not on the packet itself.

Server-Side Handling

processPlayerAbilities writes capabilities.isFlying = packetIn.isFlying() && capabilities.allowFlying and nothing else. The invulnerable, allowFlying, creativeMode, flySpeed and walkSpeed fields are parsed from the wire and discarded. S39PacketPlayerAbilities is the only way the server-side allowFlying changes.

Protocol Analysis

Flag byte (0x01 invulnerable, 0x02 flying, 0x04 allowFlying, 0x08 creative) + two floats. Vanilla clients emit it on double-tap-space in creative; modules emit it on ticks, strafe events or module enable. The wire format accepts any float, including NaN and values far outside the 0..1 range.

Anti-Cheat Landscape

Anti-cheats treat C13 as a weak signal because vanilla discards most of it. NCP and Verus correlate declared flying with actual vertical motion; a client that spams isFlying=true but moves like a walker is suspicious, and one that moves like a flier without S39 authorization flags on motion. The NaN flySpeed trick only works against layers that deserialize the float before the vanilla handler.

implementation Implementation Cases

The ability-flag packet. The server keeps exactly one bit (isFlying, ANDed against server-side allowFlying); the 8 clients abuse it as a safe desync probe in disablers and as a client-side flight declaration in movement modules.

Disabler (abilities spoof) (Memeware 7.3, Rise 5.99, Spicy)

Send forged C13 payloads as part of anti-cheat disabler mode suites, usually alongside C0F and C00 manipulation.

Memeware's Watchdog mode sends C13 with isFlying=true and NaN flySpeed every 30 ticks on Hypixel. Rise 5.99's hypixelSlime mode sends isFlying=true when the server allows flying; its c13 mode sends a bare C13 with allowFlying and flying set. Spicy's Disabler sends creative-flag capabilities from its own mode logic.

Source: Memeware 7.3, me/memewaredevs/client/module/exploit/Disabler.java

Vanilla hook: PacketOutEvent (Memeware), PacketSendEvent (Rise 5.99), module-specific events (Spicy).
Low risk against vanilla because the handler ANDs the bit away; the NaN float is the only payload that can poison a parsing layer. Motion checks remain the actual flag surface.
Variations: Rise 5.99 uses PacketUtil.sendPacket/sendPacketWithoutEvent; Spicy uses sendPacketNoEvent on the network manager; Memeware uses sendPacketSilent.
AbilitiesDisabler (Rise 6.1.30, Rise 6.2.4)

Spam C13 with a fresh isFlying=true capabilities object to desynchronize anti-cheat ability tracking.

On StrafeEvent, every 5 ticks, builds a PlayerCapabilities (isFlying=true, allowFlying left false) and sends it through PacketUtil.send. Gated on the parent Disabler's deprecated setting.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/exploit/disabler/AbilitiesDisabler.java

Vanilla hook: StrafeEvent.
The default-constructed capabilities leave allowFlying false, so vanilla drops the flying bit; the spam targets packet-level fingerprinting only.
Variations: Byte-identical AbilitiesDisabler exists in Rise 6.1.30.
Nuker (Rise 6.1.30, Rise 6.2.4)

Sync the server-side flying flag before teleport-nuking so airborne path movement is not treated as un-authorized flight.

In Teleport mode, when the player can fly but is not flagged flying, the module mutates the shared capabilities and sends C13 with isFlying=true via sendNoEvent, then path-teleports with C04 packets.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/other/Nuker.java

Vanilla hook: PreMotionEvent.
Only meaningful when the server already granted allowFlying (creative or S39); otherwise the bit is ANDed out and the C04 teleports carry the flag risk.
Variations: Same code in Rise 6.1.30.
Fly / LongJump / BackupFly (ability spoof) (Spicy)

Declare flight abilities client-side and mirror the declaration to the server as part of Hypixel-targeted flight modules.

LongJump's onEnable forges PlayerCapabilities with isFlying, allowFlying, isCreativeMode and a random flySpeed 0.1..9.0 and sends via sendPacketNoEvent. Fly and BackupFly repeat the same construct at fixed points in their damage-fly sequences.

Source: Spicy, info/spicyclient/modules/movement/LongJump.java

Vanilla hook: onEnable, EventMotion/EventUpdate handlers.
The server ignores the forged allowFlying, so these modules still rely on the damage-fly trick for actual flight; C13 is a state declaration that keeps the client's own capabilities and the packet stream consistent.
Variations: Spicy Fly.java and BackupFly.java duplicate the same PlayerCapabilities construction with the random flySpeed and creative flag; Spicy Disabler sends it twice when Fly is enabled.
LuaEventPacket (scripting wrapper) (November Recode 2.0)

Expose C13 (and every other serverbound class) to Lua scripts as a numeric packet id plus direction.

A static map binds each packet class to its protocol id, C13 at 0x13; the LuaEventPacket constructor resolves the incoming EventPacket's class through the map and records 'out' for EventPacket.Out sends, 'in' otherwise. The @DontObfuscate annotation keeps the class name readable so the Lua runtime can reflect it.

Source: November Recode 2.0, scripting/wrapper/event/LuaEventPacket.java

Vanilla hook: EventPacket wrap point in the scripting engine.
This is a scripting surface, not an exploit: it lets user scripts intercept and rewrite C13 traffic; the map is the ground truth the Lua API uses instead of reflection, because obfuscation would break class lookups.
Variations: The same wrapper backs every packet impl in this corpus; November Recode 2.0 has no dedicated C13 module, so this map entry is its only corpus appearance for C13.
LastestHypixelFly / Fly (flight declaration) (LiquidSense Dev)

Declare isFlying to the server with a fresh PlayerCapabilities C13 on enable, and retract it on disable, as part of the Hypixel flight rig.

onEnable builds a PlayerCapabilities with isFlying true, queues C13 through addToSendQueue together with the C0F sentinel and two C04 hops at y+0.17 and y+0.06, then zeroes stepHeight and motion. onDisable sends a fresh C13 with isFlying false, restores stepHeight and sends a bare C04. The flight itself is client-side motion: UpdateEvent drives motionY, MoveEvent computes horizontal velocity, and the send handler cancels all C03 until the first S08 arrives (the go signal), toggling off on a late S08 as a setback.

Source: LiquidSense Dev, me/AquaVit/liquidSense/modules/movement/LastestHypixelFly.java

Vanilla hook: onEnable and onDisable direct sends, PacketEvent (C03 cancel, S08 gate).
The C13 claim is ANDed against server-side allowFlying and dropped for non-creative players, so the declaration is safe; the actual flag surface is the movement that follows, which is why the module cancels C03 until the server's S08 authorizes the position.
Variations: LiquidBounce's stock Fly.java Zoom mode sends the same allowFlying plus isFlying C13 before flushing its blink buffer (line 314 and again at line 752); Tp.java carries an identical onEnable declaration. Spicy's LongJump forges creative-mode capabilities instead.
Tp / TeleportCommand (teleport rig) (LiquidSense Dev)

Send C13 ability packets as part of the path-teleport rig: an isFlying declaration on enable, and per-node ability spam along the C04 path.

Tp's onEnable declares isFlying true (with the C0F sentinel and two C04 hops), then on the first S08 it walks a pathfinding route emitting C04 packets (fall-distance hops of 0.0601, 5.0E-4 and 0.00499999...) plus a C0C input, then snaps the player to the destination. The TeleportCommand twin sends a C13 per path node inside its teleport thread: invulnerable, creative, flying and allowFlying all false, flySpeed 1.0E8F and walkSpeed 1.0E8F minus 1F, absurd values aimed at parsers that read the floats before the vanilla handler discards them.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/command/commands/TeleportCommand.java

Vanilla hook: onEnable (Tp), TickEvent (path walk), command thread (TeleportCommand).
The C13 here is a state declaration that keeps the client's capabilities consistent while the unconfirmed C04 walk carries the actual flag risk; the 1.0E8 flySpeed in TeleportCommand is the absurd-float family trick from Memeware's NaN Watchdog mode.
Variations: Tp.java and LastestHypixelFly.java share the enable declaration block; TeleportCommand is the chat-command variant with the absurd-float spam; the LiquidBounce Fly Zoom mode uses the same C13 before releasing its blink buffer.
StrafeEvent (Rise 6.x), PacketOutEvent/PacketSendEvent (disablers), onEnable (Spicy movement), PreMotionEvent (Rise 6.x Nuker).
Spicy routes through mc.getNetHandler().getNetworkManager().sendPacketNoEvent; Memeware through PacketUtil.sendPacketSilent; Rise 5.99 through PacketUtil.sendPacketWithoutEvent; Rise 6.x through PacketUtil.send/sendNoEvent. November Recode 2.0 only references C13 through its Lua scripting wrapper (LuaEventPacket maps id 0x13). LiquidSense Dev sends C13 through addToSendQueue (LastestHypixelFly, Tp) and NetworkManager.sendPacket (TeleportCommand per path node).

anticheat Anti-Cheat Checks

The abilities packet carries the client's fly toggle and speed multipliers, but the vanilla server ignores every flag except isFlying. Server-side anticheats therefore treat C13 as a state signal: it tells them when the player believes they are allowed to fly, which they must reconcile against the abilities the server actually granted. Movement checks such as creative fly, nofall and vertical speed use this state to decide which physics model applies. Because the client can send the toggle out of order relative to the server abilities packet, modern anticheats confirm the state change with a transaction before trusting it.

Abilities state handler (Grim) (GrimAnticheat-Grim)

Reconciles the client's fly toggle with the server's granted abilities and punishes players who keep flying after the server revoked flight.

Listens for both the inbound PLAYER_ABILITIES packet and the outbound server abilities packet. On the inbound side it sets the player's isFlying flag only if the server allows flight, so a spoofed toggle cannot enable flight. On the outbound side it sends a transaction, and when the server revokes flight it schedules a netty task: if the client has not confirmed the transaction within maxFlyingPing (default 1000 ms), the player is set back for still flying. The comment in the file explains that ability packets can arrive out of order, so the state change is applied on a later tick.

Detects: Flight toggles sent while the server has revoked the ability, fly disablers that keep the client airborne after losing flight, and creative fly abuse.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketPlayerAbilities.java

Variations: NoCheatPlus feeds the same state into CreativeFly and SurvivalFly through MovingFlying, Hydro keeps a ConfirmedAbilities clone in its lag-compensated packet state, and Intave tracks the toggle in its AbilityTracker. FlopAC wraps the packet as WrappedInAbilitiesPacket, and CheaterDeleter reads the Bukkit isCreative and isFallFlying state instead of the raw packet.
CreativeFly (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

Vertical and horizontal envelope check for creative and spectator players, where flying is legal and the survival flight model does not apply.

Runs on every move while the player is in creative or spectator mode or is flying. It builds a ModelFlying from the move data, computes a horizontal limit from the fly speed attribute, the flySpeed sent in the abilities packet, sprint modifiers and air friction, and a vertical limit per direction: ascend, descend and hold altitude. Distance beyond the limits accumulates creativeFlyVL; queued velocity can consume the violation. On cancel it returns a setback location, corrected if it exceeds the world height.

Detects: Creative fly speed hacks, vertical fly cheats in creative and spectator, and flying above the world height.

Source: Updated-NoCheatPlus-NoCheatPlus, NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/player/CreativeFly.java

Variations: Grim handles the same state in its FlightA and NoFall checks via the abilities handler, Hydro in FlightA, and CheaterDeleter in VerticalCheck and SpeedCheck, all keyed off the same can-fly state.
ConfirmedAbilities (Hydro) (Incognitolol-Hydro)

Lag-compensated copy of the client's ability flags used by Hydro's movement and emulation checks.

A small plain class holding godMode, flying, flightAllowed, creativeMode, walkSpeed and flySpeed. Hydro stores a ConfirmedAbilities instance in the packet state, updates it from the inbound abilities packet, and clones it when the server sends abilities so checks read what the client believes its abilities are at a given tick. The clone method lets the emulation engine snapshot state before applying a move.

Detects: Provides the state needed to detect flight abuse and creative fly where the client's view of its abilities diverges from the server's.

Source: Incognitolol-Hydro, src/main/java/integral/studios/hydro/util/lag/ConfirmedAbilities.java

Variations: Grim's PacketPlayerAbilities and Intave's AbilityTracker implement the same idea with transaction confirmation; Hydro's version is a pure state clone.
AbilityTracker (Intave) (intave-intave)

Tracks the abilities state server-side so the movement simulator knows whether flight is legal for the player.

Registers receiveAbilities and sentAbilities handlers. On the inbound abilities packet it stores the requested flying flag and, only if the server had allowed flying, sets the player's flying state; otherwise it records disabledFlying. The sentAbilities side compares the new server state against the previous one and, when flight is revoked, requires the player to confirm the teleport rate limit before treating the player as grounded again. The tracker is consumed by the Physics simulation checks.

Detects: Flying without the server granting the ability, and clients that ignore a flight revocation.

Source: intave-intave, src/main/java/de/jpx3/intave/module/tracker/player/AbilityTracker.java

Variations: Grim confirms the same revocation with a transaction timeout, NCP with the CreativeFly and SurvivalFly envelope, and Hydro with a plain state clone.

Wiki Cross-Reference

Flag byte 0x01 invulnerable, 0x02 flying, 0x04 allowFlying, 0x08 creative, then float flySpeed and walkSpeed.

Vanilla sends it when the flying flag flips; 1.8.9 server keeps isFlying AND server allowFlying only.

Other flags and both floats are parsed then discarded, so forged speeds never reach server physics.

MCP 1.8.9 C13PacketPlayerAbilities implements Packet dispatching to INetHandlerPlayServer.processPlayerAbilities; wire serde is readPacketData/writePacketData via readByte, readFloat.

1.8.9 callers: EntityPlayerSP.sendPlayerAbilities sends new C13PacketPlayerAbilities (line 396): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/entity/EntityPlayerSP.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.

Module Analyses Using C13PacketPlayerAbilities

Full source walkthroughs of the modules and anti-cheats that use this packet.