Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NPC Skin Converter

Comments in 'Tools' started by Samueljh1H8sLag, Jun 22, 2015.

?

Did you Find this Useful?

  1. Yes!

    91.7%
  2. No

    8.3%
  1. Samueljh1H8sLag
    Offline

    Samueljh1H8sLag Active Member

    Joined:
    Jun 20, 2015
    Posts:
    168
    Minecraft User:
    Samueljh1_
    Hi, this api script on my site allows you to convert a png skin into a pocketmine rgb map for skins.

    Simply copy the output and put it in the setSkin() function.

    http://samueljh1.net/samcraft/img.php (For Steve)

    But you can add this to the end of the url to use a custom skin image:

    ?url=http://site.com/link/to/image.png

    Let me know if this helped you or you have any issues with it!
  2. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    What if the site is unreachable some day?
  3. Samueljh1H8sLag
    Offline

    Samueljh1H8sLag Active Member

    Joined:
    Jun 20, 2015
    Posts:
    168
    Minecraft User:
    Samueljh1_
    It shouldn't be. And you can always host it yourself if you like. Check the code on my thread where I discussed this. Also, if your server has the GD extension, you can run it directly through your plugin, with no server calls!
  4. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Yea, actually finally found it. BUT: seems like setting a skindata does nothing for me
  5. fileminecr4fts
    Offline

    fileminecr4fts New Member

    Joined:
    Oct 19, 2016
    Posts:
    1
    Minecraft User:
    RandomMac5
    I think this is good tool, actually finally found it
  6. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    768
    Minecraft User:
    Thunder33345
    i would recommend making the http/https optional default http
    and ONLY allow http and https and respond 403 to others request
    you should be more API like
    base URL http://samueljh1.net/samcraft/img.php
    OPTS
    ?url= (path to image)
    ?format=[json] (so it output in JSON standard making everybody's life easier without counting lines )

Share This Page

Advertisement