0x08 C08PacketPlayerBlockPlacement

Player places a block or uses an item. Can also be used for empty-hand interactions (e.g., pressing buttons).

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

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

playerblockiteminteractworld
Comprehensive 7/8

Fields

FieldTypeDescription
positionBlockPosPosition where the block/item is used
placedBlockDirectionintFace of the target block (0-5). 255 if no block face targeted.
stackItemStackThe item stack being used/placed
facingX/Y/ZfloatCursor position on block face (0-1). Present when direction != 255.

Wire Encoding

FieldTypeNotes
Block PosPositionEncoded as long
Directionbyte0-5 for face, 255 for no face
Item In HandSlotItemStack being placed/used
Cursor XbyteCursor x (0-1 mapped to byte)
Cursor YbyteCursor y
Cursor ZbyteCursor z

MCP References

MCPNetHandlerPlayServer.processPlayerBlockPlacement()

Handler Interface

HNDINetHandlerPlayServer

Vanilla Source

C08PacketPlayerBlockPlacement.java111 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
2
3
import java.io.IOException;
4
import net.minecraft.item.ItemStack;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayServer;
8
import net.minecraft.util.BlockPos;
9
10
public class C08PacketPlayerBlockPlacement implements Packet<INetHandlerPlayServer>
11
{
12
    private static final BlockPos field_179726_a = new BlockPos(-1, -1, -1);
13
    private BlockPos position;
14
    private int placedBlockDirection;
15
    private ItemStack stack;
16
    private float facingX;
17
    private float facingY;
18
    private float facingZ;
19
20
    public C08PacketPlayerBlockPlacement()
21
    {
22
    }
23
24
    public C08PacketPlayerBlockPlacement(ItemStack stackIn)
25
    {
26
        this(field_179726_a, 255, stackIn, 0.0F, 0.0F, 0.0F);
27
    }
28
29
    public C08PacketPlayerBlockPlacement(BlockPos positionIn, int placedBlockDirectionIn, ItemStack stackIn, float facingXIn, float facingYIn, float facingZIn)
30
    {
31
        this.position = positionIn;
32
        this.placedBlockDirection = placedBlockDirectionIn;
33
        this.stack = stackIn != null ? stackIn.copy() : null;
34
        this.facingX = facingXIn;
35
        this.facingY = facingYIn;
36
        this.facingZ = facingZIn;
37
    }
38
39
    /**
40
     * Reads the raw packet data from the data stream.
41
     */
42
    public void readPacketData(PacketBuffer buf) throws IOException
43
    {
44
        this.position = buf.readBlockPos();
45
        this.placedBlockDirection = buf.readUnsignedByte();
46
        this.stack = buf.readItemStackFromBuffer();
47
        this.facingX = (float)buf.readUnsignedByte() / 16.0F;
48
        this.facingY = (float)buf.readUnsignedByte() / 16.0F;
49
        this.facingZ = (float)buf.readUnsignedByte() / 16.0F;
50
    }
51
52
    /**
53
     * Writes the raw packet data to the data stream.
54
     */
55
    public void writePacketData(PacketBuffer buf) throws IOException
56
    {
57
        buf.writeBlockPos(this.position);
58
        buf.writeByte(this.placedBlockDirection);
59
        buf.writeItemStackToBuffer(this.stack);
60
        buf.writeByte((int)(this.facingX * 16.0F));
61
        buf.writeByte((int)(this.facingY * 16.0F));
62
        buf.writeByte((int)(this.facingZ * 16.0F));
63
    }
64
65
    /**
66
     * Passes this Packet on to the NetHandler for processing.
67
     */
68
    public void processPacket(INetHandlerPlayServer handler)
69
    {
70
        handler.processPlayerBlockPlacement(this);
71
    }
72
73
    public BlockPos getPosition()
74
    {
75
        return this.position;
76
    }
77
78
    public int getPlacedBlockDirection()
79
    {
80
        return this.placedBlockDirection;
81
    }
82
83
    public ItemStack getStack()
84
    {
85
        return this.stack;
86
    }
87
88
    /**
89
     * Returns the offset from xPosition where the actual click took place.
90
     */
91
    public float getPlacedBlockOffsetX()
92
    {
93
        return this.facingX;
94
    }
95
96
    /**
97
     * Returns the offset from yPosition where the actual click took place.
98
     */
99
    public float getPlacedBlockOffsetY()
100
    {
101
        return this.facingY;
102
    }
103
104
    /**
105
     * Returns the offset from zPosition where the actual click took place.
106
     */
107
    public float getPlacedBlockOffsetZ()
108
    {
109
        return this.facingZ;
110
    }
111
}

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

Deep Dive

Role in the protocol

C08 is the serverbound use/place packet. With placedBlockDirection == 255 it is a pure item use (eating, blocking, throwing), otherwise it is a block placement against the BlockPos + face with a cursor offset. The stack field lets the server verify the client's inventory state. This dual role makes it the single most-abused packet for movement and combat bypasses: it is how scaffold places blocks, how killaura holds a shield or sword block, how noslow keeps the use-item state alive, and how item-spam modules (AutoPot, AutoSoup) consume consumables at inhuman speed.

Vanilla handling

NetHandlerPlayServer.processPlayerBlockPlacement branches on the direction byte. For 255 it calls theItemInWorldManager.tryUseItem, which starts the item's use-tick state server-side. For a face it checks build limit, distance (hasMoved and 8-block radius), world border, then calls func_180236_a to place. The server compares packetIn.getStack() against the real inventory slot and re-sends S2FPacketSetSlot on mismatch, which is why clients that spoof the stack field get desynced slots.

Why clients touch it

All ten clients construct C08 directly. Scaffold modules (Rise 5.99, Rise 6.x, Sigma 4.11) send placements with computed BlockPos + face; Memeware and Nekoware auras send the autoblock form (new BlockPos(-1, -1, -1), 255) to start blocking mid-aura; NoSlow modules (Rise 5.99 NoSlow, Rise 6.x IntaveNoSlow/LegitNoSlow/NCPNoSlow/NewNCPNoSlow/WatchdogNoSlow, Sigma NoSlowdown, Spicy NoSlow) re-send the item-use C08 to keep the server believing the player is using the item; AutoPot/AutoSoup/AutoGap/AutoHead (Memeware, Rise 5.99, Rise 6.x, Sigma) spam the item-use form to consume faster than vanilla allows. Rise 6.2.4 even wraps placement in PlayBlockPlacementC2SPacket for its script/NetworkAPI layer. November Recode 2.0 drives AutoPot, autoblock and noslow through C08 and clicks the BLOCKS_MC paper with it in AutoPlay; LiquidSense Dev eats heads and equips armor with the C09/C08/C09 packet triple.

Exploit surface

The 255-use form has no cooldown server-side in 1.8.9, so item-use spam is only throttled by client ticks; anti-cheats flag the resulting consumption rate. The invalid-position form (pos -1,-1,-1, face 255) is silently accepted by vanilla (it falls into the item-use branch when direction == 255) but stands out to anti-cheats that track block-place patterns around the player's head. Scaffold places at the feet with yaw-derived face values, which NCP and Vulcan correlate against the player's rotation. C08 is also sent at 20+ per second by Rise 6.2.4 WatchdogDisabler as a fake water-bucket placement to reset watchdog's fall tracking, and by Speed/Fly modules to place blocks under the player mid-air.

Server-Side Handling

processPlayerBlockPlacement: if direction == 255, tryUseItem (no position checks); else enforce build limit, 8-block distance from the last confirmed position, world border and block protection before placing. Stack mismatch with the real inventory triggers an S2FPacketSetSlot resync. The server never validates that the client's held item matches the packet's stack for the 255 path beyond the slot resync.

Protocol Analysis

Fields: BlockPos (long), direction byte (255 = no face), ItemStack, three cursor bytes (0-16 mapped from floats). The item-use form still carries a position (usually BlockPos.ORIGIN or (-1,-1,-1)); vanilla ignores it when direction == 255. ViaVersion clients (Rise 6.2.4 BlockPlacementFixComponent) translate this to newer protocol versions where the packet was split into UseItemOn/UseItem.

Anti-Cheat Landscape

NCP flags scaffold rotations vs placement faces, Verus tracks placement frequency, Watchdog detects fake water-bucket placements when the inventory does not contain a bucket (Rise 6.2.4 WatchdogDisabler guards with BadPacketsComponent checks). AutoPot spam is caught by consumption-rate checks on popular servers; Noslow C08 spam is a classic Intave/Verus detection vector, hence the many per-AC modes in Rise 6.x.

implementation Implementation Cases

The use/place workhorse. Clients split it into three dialects: the item-use form (direction 255) for AutoPot/NoSlow/autoblock, the placement form for Scaffold, and the invalid-position form as a fake-use trick for disablers and speed modules.

Scaffold (Rise 5.99, Rise 6.2.4, Rise 6.1.30, Sigma 4.11, November Recode 2.0)

Place a block under the player every tick while moving, using silent rotations and silent item switching.

On each pre-motion tick, raycast or brute-force a BlockPos below/around the player, pick the best block slot, send C09 to switch if needed, then send C08 with the target pos, the face, the held ItemStack and cursor offsets. Rise 5.99 additionally cancels incoming C09PacketHeldItemChange so the visible hotbar never moves, sends START/STOP_SNEAKING C0B for eagle mode, and releases the placement via PacketUtil.sendPacket.

Source: Rise 5.99, dev/rise/module/impl/player/Scaffold.java

Vanilla hook: PreMotionEvent for placement, PacketSendEvent to cancel C09, onDisable to release sneak.
Placement frequency and rotation-vs-face mismatch are the main flags. Rise 6.x splits scaffold into sprint/tower/downwards sub-modes (VulcanSprint, WatchdogJumpSprint, NCPTower, VerusDownwards) each tuned to a specific AC's rotation and timing checks.
Variations: Rise 6.2.4/6.1.30 Scaffold.java routes placement through PlayBlockPlacementC2SPacket and Slot component; Sigma 4.11 Scaffold.java (1232 lines) has its own rotation and switch logic referencing C09 and C0B; Tenacity ScaffoldModule does not construct C08 directly. November Recode 2.0's ScaffoldModule places through playerController.onPlayerRightClick after a C09 silent switch, swings via swingItem() or a C0A packet, and adds tower modes; its VULCAN tower mode double-sends C08(null) as a fake placement.
KillAura (Autoblock) (Memeware 7.3, Nekoware v1 private, Rise 5.99, Rise 6.2.4, Rise 6.1.30, Sigma 4.11, Spicy, Tenacity 6.0, November Recode 2.0)

Send the invalid-position C08 (pos -1,-1,-1, face 255) so the server starts the item-use (blocking) state while the aura attacks.

Inside the aura's attack tick, before or after the C02 attack packet, send new C08PacketPlayerBlockPlacement(new BlockPos(-1, -1, -1), 255, heldItem, 0, 0, 0). The server's direction==255 branch runs tryUseItem, which sets isBlocking/isUsingItem on the player entity, giving damage reduction. Memeware's SingleAura sends it via PacketUtil.sendPacket with the current held item.

Source: Memeware 7.3, me/memewaredevs/client/module/combat/aura/SingleAura.java

Vanilla hook: UpdateEvent / attack loop; PacketUtil.sendPacket for the C08.
The (BlockPos.ORIGIN, 255) pattern is a well-known autoblock signature; anti-cheats that count invalid placements flag it. Modern auras toggle between blocking and attacking with C07 RELEASE_USE_ITEM to look like legit sword play.
Variations: Nekoware SingleAura/SwitchAura do the same; Rise 5.99 Aura.java and Rise 6.2.4/6.1.30 KillAura.java send it from their own packet paths; Sigma Killaura and InfiniteAura; Spicy Killaura; Tenacity KillAuraModule and TPAura reference C08 for the same trick. November Recode 2.0's KillAuraModule blocks by sending C08 with the held item (BASIC and VANILLA autoblock), sends C08(null) while the target hurtTime is above 2 (WATCHDOG), and releases with C07 RELEASE_USE_ITEM.
NoSlow (Rise 5.99, Rise 6.2.4, Rise 6.1.30, Sigma 4.11, Spicy, November Recode 2.0)

Keep the server-side item-use state alive so eating/blocking does not slow the player, or cancel the slowdown server-side by re-sending C08.

While mc.thePlayer.isUsingItem(), repeatedly send new C08PacketPlayerBlockPlacement(currentEquippedItem) (the 255 item-use form) so the server keeps the use state and the client's movement speed is not reduced. Rise 5.99 NoSlow sends it from the motion event and cancels the vanilla slowdown; Rise 6.x splits into per-AC modes (NCP, Intave, Watchdog, Grim, Legit) that vary the packet rate and whether the item-use C08 or a click-window trick is used.

Source: Rise 5.99, dev/rise/module/impl/movement/NoSlow.java

Vanilla hook: PreMotion/Motion event; PacketUtil.sendPacket.
Spamming the use C08 every tick is detected by Intave and Verus unless the rate matches legit eat patterns (hence Rise 6.x's GrimNoslow, OldIntaveNoSlow, NewNCPNoSlow, WatchdogNoSlow variants). Tenacity 6.0's NoSlowModule takes a different route: it sends C0EPacketClickWindow against the armor slot instead of C08.
Variations: Sigma NoSlowdown.java and Spicy NoSlow.java send the same item-use C08; Rise 6.2.4/6.1.30 ship 5+ named modes sharing the C08 use form. November Recode 2.0's NoSlowDownModule in NEW_NCP mode sends C08(null) twice while blocking, or switches slots with C09 away and back for other items; WATCHDOG mode adds a trailing C08(null); GRIM mode multiplies the input instead of sending packets.
AutoPot / AutoSoup (fast item use) (Memeware 7.3, Rise 5.99, Rise 6.2.4, Rise 6.1.30, Sigma 4.11, November Recode 2.0)

Consume potions, soup, gaps or heads faster than vanilla allows by spamming the item-use C08.

Scan the hotbar/inventory for the consumable, switch to its slot with C09, then send the C08 item-use form every tick (or on a cooldown) so the server processes the consumption without waiting for the client's use-tick timer. Rise 5.99 AutoPot switches to the potion slot with C09 and sends new C08PacketPlayerBlockPlacement(itemStack); Memeware AutoPotion does the same with the raw stack from the slot.

Source: Rise 5.99, dev/rise/module/impl/combat/AutoPot.java

Vanilla hook: PreMotionEvent loop with a TimeUtil cooldown; PacketUtil.sendPacket.
The consumption rate is the giveaway; servers with eat-tick validation (checks that the item use duration elapsed) flag instant potion spam. On servers without it, this is a pure DPS gain.
Variations: Memeware AutoPotion/AutoSoup, Rise 5.99 AutoSoup/AutoGap/AutoHead/FastBow/Infinite, Rise 6.2.4/6.1.30 AutoHead/AutoPot, Sigma AutoPot/AutoSoup/AutoGApple/AutoEat all follow the C09-switch + C08-use pattern. November Recode 2.0's AutoPotModule runs a three-stage machine: C09 to the potion slot, C08 with the potion stack, then a wait for S1DPacketEntityEffect before syncing the slot back; the look is spoofed to pitch 90 through RotationManager.
AutoHead (LiquidSense Dev)

Eat golden heads faster than vanilla allows using the C09 + C08 + C09 packet triple, with a key-binding path for golden apples.

Below the health threshold with no mouse held, find a head (id 397) or apple (id 322) in the hotbar. For heads, send C09(slot), C08(use, current item), C09(back) with a delay gate. For apples, set inventory.currentItem and press the real use-item key, restoring the slot on release.

Source: LiquidSense Dev, me/AquaVit/liquidSense/modules/combat/AutoHead.java

Vanilla hook: MotionEvent with a TimeUtils delay gate; the packets go through sendQueue.addToSendQueue.
The packet triple skips the client's use-tick timer entirely, which is exactly what consumption-rate checks measure; the 750 ms default delay keeps it near human eat speed.
Variations: Same triple in the C09 impl; November's AutoPotModule adds the S1D effect wait between use and slot restore.
AutoArmor (LiquidSense Dev)

Equip the best armor automatically; the hotbar path equips through the C08 placement form with a C09 switch pair around it.

On Render3D, compute the best piece per armor type with ArmorComparator. move() for hotbar items sends C09(item), C08(placement with the slot's stack), C09(current); other items go through C16 open-inventory, windowClick and C0D close, all gated by InventoryUtils.CLICK_TIMER and a random delay.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/combat/AutoArmor.java

Vanilla hook: Render3DEvent; C09/C08/C09 via getNetHandler().addToSendQueue.
The C08-equip trick does not open the inventory, so the server never sees a GUI transition; the click-timer gate keeps the equip rate inside click-window plausibility.
Variations: Same slot pair in the C09 impl; November has no AutoArmor in the corpus.
Blink (LiquidSense Dev)

Hold C08 (and the whole movement and action set) while blinking, replaying the queue on pulse or disable.

PacketEvent cancels C03 plus the C04/C06/C08/C0A/C0B/C02 set and parks them in a LinkedBlockingQueue; pulse mode flushes on a 500-5000 ms timer, disable flushes everything through the network manager with a disableLogger guard so the flush does not re-trigger the listener.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/features/module/modules/player/Blink.java

Vanilla hook: PacketEvent (cancel and queue), UpdateEvent (pulse bookkeeping), onDisable (flush).
Holding C08 during a blink hides the item-use state change along with the movement gap; the pulse window bounds the freeze so the server never sees a long silent stretch.
Variations: The same file backs the C03 entry; the C08 inclusion is part of the all-packets freeze, not a placement trick.
AutoPlay (November Recode 2.0)

Auto-join the next game: BLOCKS_MC mode finds the paper item in the hotbar, clicks it with the C09/C08 pair, and restores the slot.

Scan the hotbar for Items.paper, send C09(paperSlot) and the item-use C08 silently, then InventoryManager.sync(). The HYPIXEL and MUSH_MC modes instead re-send the play command extracted from the win/lose chat click event, and never touch C08.

Source: November Recode 2.0, feature/module/impl/player/AutoPlayModule.java

Vanilla hook: EventUpdate with a delay timer; addToSendQueueSilent for the packets.
The paper click is a single legitimate right-click, so it reads as a player action; the silent send queue is what keeps the module's own listeners from seeing it.
Variations: Only November Recode 2.0 in the corpus; the same module handles C01 and S45 elsewhere.
PreMotionEvent / UpdateEvent for the send loop; PacketSendEvent in Rise 5.99 Scaffold to silence C09; direct PacketUtil.sendPacket or sendQueue.addToSendQueue everywhere else.
Rise 5.99/6.x use PacketUtil.sendPacket and can replace packets on the event (event.setPacket). Memeware/Nekoware/Spicy construct C08 directly and push via sendQueue or PacketUtil. Sigma routes through playerController for clicks but constructs C08 raw for use spam. Tenacity sends via NetHandler.addToSendQueueNoEvent in ScaffoldModule and references C08 in PacketUtil.

anticheat Anti-Cheat Checks

The block placement packet reports a position, face, cursor vector and held item, and it doubles as the use-item packet. Anticheats use it to validate placement reach and rotation (Grim FarPlace), the hit vector of scaffold clicks (FlopAC ScaffoldA), placement speed and direction (NCP blockplace suite), and the item actually held (Negativity Scaffold). Because scaffolding cheats click the top face center of the block below at full speed, placement checks are the server-side counter to scaffold modules.

FarPlace (Grim) (GrimAnticheat-Grim)

Reach check for block placement: verifies that the placed block is within the player's block interaction range.

A BlockPlaceCheck listening on the BlockPlace update produced from the packet. It iterates every possible eye height, cuts a collision box for the placed block to the player position vector, and takes the minimum squared distance. The threshold is the BLOCK_INTERACTION_RANGE attribute plus the movement threshold hypot component, with scaffolding blocks exempt. On a flag it resyncs the player when packet modification is allowed.

Detects: Scaffold and far-place cheats that place blocks beyond the interaction range, including clients that fake the placement position.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/scaffolding/FarPlace.java

Variations: The rest of Grim's scaffolding package (RotationPlace, PositionPlace, InvalidPlaceA/B, MultiPlace) validates the same packet on rotation, position and face; Kauri and Artemis run analogous placement checks through their emulator pipelines.
Scaffold (Negativity) (Elikill58-Negativity)

Silent-scaffold detection through item mismatch: the placed block must match the block held at click time.

On BlockPlaceEvent it schedules a deferred task one tick later and compares the placed block type against the item in hand. If the hotbar slot changed or the held item is not a block matching the placement, it alerts with a confidence score derived from the player ping and, when a setback is configured, removes the placed block and refunds the item.

Detects: Silent scaffold and instant block placement cheats that place blocks without actually holding them, including rapid hotbar switching.

Source: Elikill58-Negativity, src/com/elikill58/negativity/spigot/protocols/ScaffoldProtocol.java

Variations: Negativity's FastPlaceProtocol and AirPlaceProtocol cover placement speed and placing against air; CheaterDeleter's VerifyBlockPlace module and Frequency's ScaffoldA cover the same domains on other stacks.
BlockPlaceListener suite (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

The classic dispatcher for NCP's placement checks: direction, fast place, reach, no swing and against-world.

Registers Direction, FastPlace, Reach, NoSwing and AgainstWorld checks with per-player config and data classes, listening to Bukkit placement events plus the PacketPlayInBlockPlace stream via the ProtocolLib UseItemAdapter. FastPlace tracks placement timing per block, Reach measures the distance to the placed position, and Direction validates the face against the player's look vector.

Detects: Fast place, scaffold, placement reach abuse, placing while looking away, and placement into invalid world state.

Source: Updated-NoCheatPlus-NoCheatPlus, NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/blockplace/BlockPlaceListener.java

Variations: AntiCheatPlus and DynamicDev's BlockListener expose the same fastplace/direction checks; Rammelkast's BlockListener and Arc's BlockActionListener are the 1.8-generation equivalents.
ScaffoldA (FlopAC) (JTXOfficial-FlopAC)

Hit-vector scaffold check: a real scaffold click sequence must vary the face and cursor vector as the player moves.

On BLOCK_PLACE it reads the cursor vector (vecX, vecY, vecZ) and the face ordinal from the wrapped packet. When the yaw is changing and the block below the target position is air, it expects a non-constant click pattern: a face between 0 and 3 with a perpetual 0.5/0.5 vector is the scaffold signature, accumulating a violation level that flags at 4 consecutive hits, otherwise the level decays.

Detects: Scaffold cheats that always click the same face center, and tower/scaffold modules that keep a constant hit vector while moving.

Source: JTXOfficial-FlopAC, src/main/java/me/jtx/flopac/checks/misc/scaffold/ScaffoldA.java

Variations: The ScaffoldB through ScaffoldM checks in the same package add rotation, position, speed and raycast variants; Frequency ScaffoldA and Truthful's scaffold family use the same hit-vector idea on their own wrappers.

Wiki Cross-Reference

The cursor position fields range from 0 to 1 across the block face, increasing west to east on X, bottom to top on Y and north to south on Z, so for example the Y value decides whether a slab against a face becomes a bottom slab or a top slab. The inside-block flag is true when the player eyes are inside a block collision box.

MCP 1.8.9 C08PacketPlayerBlockPlacement implements Packet dispatching to INetHandlerPlayServer.processPlayerBlockPlacement; wire serde is readPacketData/writePacketData via readBlockPos, readItemStackFromBuffer, readUnsignedByte.

1.8.9 callers: PlayerControllerMP.onPlayerRightClick sends new C08PacketPlayerBlockPlacement (line 424): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/multiplayer/PlayerControllerMP.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.