Skip to content

Instantly share code, notes, and snippets.

@riking
Last active December 16, 2015 04:49
Show Gist options
  • Save riking/5380138 to your computer and use it in GitHub Desktop.
Save riking/5380138 to your computer and use it in GitHub Desktop.

Packet 102

These are the click actions in Packet 102:

  • Shift=0
    • Button 0 = Left Mouse
    • Button 1 = Right Mouse
  • Shift=1
    • Button 0 = Shift + Left Mouse
    • Button 1 = Shift + Right Mouse (identical behavior to shiftleft)
  • Shift=2
    • Button 0-8 = Hotbar key (1-9)
  • ===EVERYTHING BELOW THIS IS NEW IN 1.5 ===
  • Shift=3
    • Button 2 = Middle Mouse (creative copystack)
  • Shift=4
    • Slot = -999
      • Button 0: Left click outside inventory holding nothing (this may not be worthy of supporting)
      • Button 1: Right click outside inventory holding nothing
    • Slot != -999
      • Button 0: Q key (drop item)
      • Button 1: Ctrl-Q key (drop stack)
  • Shift=5
    • Button 0, 4: Left, Right drag start
    • Button 1, 5: Left, Right drag slot pick
    • Button 2, 6: Left, Right drag stop
  • Shift=6
    • Any button: Double left click (collect items)

Packet 109

Packet 109 is sent to edit your creative inventory. It specifies the slot clicked, and an itemstack.
Additionally, there is a packet for editing your Creative hotbar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment