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 = Cape.Texture(PHPSESSID)
cape_texture.update("<PATH_TO_PNG>")

Valid LabyMod cape texture

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:
Cape sprite sheet

Cape.Template()

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>")

Valid LabyMod cape templates

Cape Name Cape Name Cape Name
labymod "LABYMOD" prismarine "PRISMARINE" newyear "NEWYEAR"
minecon2011 "MINECON2011" christmas2010 "CHRISTMAS2010" scrolls "SCROLLS"
minecon2012 "MINECON2012" cobalt "COBALT" translator "TRANSLATOR"
minecon2013 "MINECON2013" julianclark "JULIANCLARK" turtle "TURTLE"
minecon2015 "MINECON2015" mapmaker "MAPMAKER" winner "WINNER"
minecon2016 "MINECON2016" mojira "MOJIRA"
minecon2019 "MINECON2019" mrmessiah "MRMESSIAH"

Example program

Cape.Visibility()

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

⚠️ **GitHub.com Fallback** ⚠️