Exemplo n.º 1
0
def command(thread):
#	print 'Player Position and Look'

	thread.X = tuxcraft_tools.minecraft_read_double(thread.channel)
	thread.Y = tuxcraft_tools.minecraft_read_double(thread.channel)
	thread.Stance = tuxcraft_tools.minecraft_read_double(thread.channel)
	thread.Z = tuxcraft_tools.minecraft_read_double(thread.channel)
	thread.Yaw = tuxcraft_tools.minecraft_read_float(thread.channel)
	thread.Pitch = tuxcraft_tools.minecraft_read_float(thread.channel)
	thread.OnGround = tuxcraft_tools.minecraft_read_byte(thread.channel)
	thread.chunker.trigger_move(thread)
Exemplo n.º 2
0
def command(thread):
	#print 'Player Look'
	thread.Yaw = tuxcraft_tools.minecraft_read_float(thread.channel)
	thread.Pitch = tuxcraft_tools.minecraft_read_float(thread.channel)
	thread.OnGround = tuxcraft_tools.minecraft_read_byte(thread.channel)