Upgrade pyCraft
This commit is contained in:
@@ -7,6 +7,7 @@ from itertools import count
|
||||
from panda3d.core import LPoint3f
|
||||
|
||||
from minecraft.networking.packets import Packet, clientbound, serverbound
|
||||
from minecraft.networking.types import BlockFace
|
||||
|
||||
from protocol.packets import TimeUpdatePacket, SetSlotPacket, PlayerDiggingPacket, BlockBreakAnimationPacket, AcknowledgePlayerDiggingPacket, HeldItemChangePacket, PickItemPacket
|
||||
|
||||
@@ -261,7 +262,7 @@ class Game:
|
||||
raise
|
||||
|
||||
if command == 'break':
|
||||
self.break_block((616, 78, 496))
|
||||
self.break_block(blocks.TEST_BLOCK)
|
||||
reply = 'ok'
|
||||
|
||||
if command == 'gather' and data:
|
||||
@@ -312,6 +313,9 @@ class Game:
|
||||
else:
|
||||
reply = 'not found'
|
||||
|
||||
if command == 'open':
|
||||
self.place_block(blocks.TEST_BLOCK, BlockFace.TOP)
|
||||
|
||||
if reply:
|
||||
print(reply)
|
||||
self.g.chat.send(reply)
|
||||
|
||||
Reference in New Issue
Block a user