minecraft-bot/packet_handlers.py

17 lines
359 B
Python
Raw Normal View History

2020-09-08 20:07:09 +00:00
from panda3d.core import *
def handle_join_game(packet, g):
print('Connected.')
print(packet)
g.info = packet
def handle_block_change(packet, g):
print('block change:')
2020-09-08 20:07:09 +00:00
print(packet)
def handle_position_and_look(packet, g):
print('pos and look:')
print(packet)
p = LPoint3f(x=packet.x, y=packet.y, z=packet.z)
g.pos = p