Skip to content

Add sendsClientTickEndPacket feature flag for 1.21.2+#1208

Open
iiroak wants to merge 1 commit into
PrismarineJS:masterfrom
iiroak:feature/sends-client-tick-end
Open

Add sendsClientTickEndPacket feature flag for 1.21.2+#1208
iiroak wants to merge 1 commit into
PrismarineJS:masterfrom
iiroak:feature/sends-client-tick-end

Conversation

@iiroak

@iiroak iiroak commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Adds a new PC feature flag sendsClientTickEndPacket describing that the client sends a tick_end packet at the end of every tick, starting in Minecraft 1.21.2.

{
  "name": "sendsClientTickEndPacket",
  "description": "client sends a tick_end packet at the end of every tick",
  "versions": ["1.21.2", "latest"]
}

Motivation

This is the accompanying minecraft-data PR requested for PrismarineJS/mineflayer#3948, which fixes GrimAC TickTimer failures (PrismarineJS/mineflayer#3800) by emitting a tick_end packet each physics tick on 1.21.2+. Per project convention, mineflayer must gate this behavior on a named feature flag via supportFeature instead of a hardcoded version check.

Verification

  • JSON validates and conforms to schemas/features_schema.json.
  • supportFeature('sendsClientTickEndPacket') resolves to false on 1.21.1 and true on 1.21.2, 1.21.3, 1.21.4, 1.21.11.

Related: PrismarineJS/mineflayer#3948, PrismarineJS/mineflayer#3800

iiroak added a commit to iiroak/mineflayer that referenced this pull request Jul 21, 2026
Replace the hardcoded 1.21.2 version check with the
sendsClientTickEndPacket feature flag from minecraft-data, matching the
project convention of driving protocol behavior via supportFeature.

Depends on PrismarineJS/minecraft-data#1208.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant