arpruss / raspberryjammod

Raspberry Jam Mod - a Mod Forge Minecraft mod implementing most of Raspberry Juice/Pi API
http://www.instructables.com/id/Python-coding-for-Minecraft/
Other
354 stars 94 forks source link

Implement entity.getName to find entity name? #40

Closed petterreinholdtsen closed 5 years ago

petterreinholdtsen commented 5 years ago

The RaspberryJuice plugin support the entity.getName(entity-d) call to return the name of players or other entities. It is useful in a multiplayer setup. Would you be willing to add this command to RaspberryJam mod?

arpruss commented 5 years ago

If you use my version of mcpi/minecraft.pi, entity.getName() should work fine. Behind the scenes it works differently, though: it uses entity.getNameAndUUID().

arpruss commented 5 years ago

Fixed.

petterreinholdtsen commented 5 years ago

Aha. Thank you very much. I do not use any library, I talk directly, so it did not help to have a remapped library call in your library. :) Will adjust my code to use your method if the other fail.