Cape - VictorWesterlund/labylib GitHub Wiki
from labylib import Cape
What you can change:
Class | Function |
---|---|
Cape.Texture |
Custom texture |
Cape.Template |
Template texture |
Cape.Visibility |
Cosmetic visibility |
cape_texture = Cape.Texture(PHPSESSID)
cape_texture.update("<PATH_TO_PNG>")
A valid LabyMod cape texture must be a sprite sheet of type image/png
with the exact dimensions of 355x275 pixels.
Here's the official sprite layout from labymod.net:
LabyMod provides a set of cape templates. You can use these templates by passing their name formatted as-seen on labymod.net to update()
:
cape_templ = Cape.Template(PHPSESSID)
cape_templ.update("<Name>")
Cape | Name | Cape | Name | Cape | Name |
---|---|---|---|---|---|
"LABYMOD" | "PRISMARINE" | "NEWYEAR" | |||
"MINECON2011" | "CHRISTMAS2010" | "SCROLLS" | |||
"MINECON2012" | "COBALT" | "TRANSLATOR" | |||
"MINECON2013" | "JULIANCLARK" | "TURTLE" | |||
"MINECON2015" | "MAPMAKER" | "WINNER" | |||
"MINECON2016" | "MOJIRA" | ||||
"MINECON2019" | "MRMESSIAH" |
cape_vis = Cape.Visibility(PHPSESSID)
cape_vis.update("<VALUE>")
Hide or show the cosmetic.
Action | Value |
---|---|
Show | "show" |
Hide | "hide" |
an int
can also be passed as Visibile = True/False