barneygale / quarry

Python library that implements the Minecraft network protocol and data types
Other
527 stars 75 forks source link

How to turn Entity_ID into Player Name? #150

Closed Lilyp3892 closed 2 years ago

Lilyp3892 commented 2 years ago

How I can convert the Entity_ID of a player into their UUID or name?

Jerrylum commented 2 years ago

You can store the UUID and EntityID in a dictionary. But I would like to know what're you trying to do actually?

Lilyp3892 commented 2 years ago

You can store the UUID and EntityID in a dictionary. But I would like to know what're you trying do actually?

I'm using packet_downstream_entity_equipment to get entity's equipment and i want to be able to get a players equipment from their username

Jerrylum commented 2 years ago

Here you're: https://gist.github.com/Jerrylum/fc8ac643d63dd0e7716046f59bb8f8c3

Lilyp3892 commented 2 years ago

Here you're: https://gist.github.com/Jerrylum/fc8ac643d63dd0e7716046f59bb8f8c3

Thank you so much! It worked perfectly!