Detect monsters and flee to safety

This commit is contained in:
2020-12-04 02:49:22 +00:00
parent 5a7a2f0113
commit b8952db742
7 changed files with 475 additions and 196 deletions

View File

@@ -361,3 +361,16 @@ class DestroyEntitiesPacket(Packet):
for _ in range(self.count):
eid = VarInt.read(file_object)
self.entity_ids.append(eid)
class EntityActionPacket(Packet):
# Sent by the client when it performs an action
# https://wiki.vg/Protocol#Entity_Action
id = 0x1C
packet_name = 'entity action'
definition = [
{'entity_id': VarInt},
{'action_id': VarInt},
{'jump_boost': VarInt},
]