1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Give entity skin from .png file

Discussion in 'Development' started by Kyd, Oct 15, 2017.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Can I give skin from .png file to entity ? I know there's newly added Skin.php in pmmp, but it want Skin name and data that's why I'm asking here.
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110

    this might work
     
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Why isn't it
    PHP:
    $k getimagesize($path)[0];
    for(
    $x 0$x $k$x++)
     
  4. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Probably also works, but i just forked @jasonwynn10 's gist and made it work with the new API.
     
    jasonwynn10 likes this.
  5. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I tried this code , but it still say Human must have valid skin set
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Is it because your skin file does not have the correct dimensions?
     
    jasonwynn10 likes this.
  7. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    It's placed correctly
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.