Detect monsters and flee to safety

This commit is contained in:
tanner committed 2020-12-04 02:49:22 +00:00
1 parent 5a7a2f0113
commit b8952db742
7 files changed
+475 -196

No files matched your search

+13
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},
]