No results
2
Cape
Victor Westerlund edited this page 2021-01-23 03:26:07 +01:00
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.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.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


















