Detect monsters and flee to safety
This commit is contained in:
@@ -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},
|
||||
]
|
||||
|
Reference in New Issue
Block a user