Exemplo n.º 1
0
def command(thread):
	print 'Click Window'
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Window id
	tuxcraft_tools.minecraft_read_short(thread.channel)  # Slot
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Right-click
	tuxcraft_tools.minecraft_read_short(thread.channel)  # Action number
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Shift
	tuxcraft_tools.minecraft_read_slot(thread.channel) # The item that was picked
Exemplo n.º 2
0
def command(thread):
	print 'Player Block Placement'
	tuxcraft_tools.minecraft_read_int(thread.channel) # X
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Y, Should be unsigned, but meh
	tuxcraft_tools.minecraft_read_int(thread.channel) # Z
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Direction
	tuxcraft_tools.minecraft_read_slot(thread.channel) # Held item
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Cursor X
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Cursor Y
	tuxcraft_tools.minecraft_read_byte(thread.channel) # Cursor Z