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

Human Skin Geometry

Discussion in 'Development' started by byyEmirhanWSD, Jul 6, 2018.

  1. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    50
    GitHub:
    EmirhanWSD
    How can i make human skin geometry. I have geometry.json file. I created human Entity. i want entity skin and change geometry.
     
  2. Eren5960

    Eren5960 Spider Jockey

    Messages:
    27
    GitHub:
    Eren5960
    Bro take this-:
    PHP:
    // @var $a PluginBase->getDataFolder();
    // @var $g Player
    touch($a."$playerName.json");
     
    $b $g->namedtag->getValue()["Skin"]->getValue()["GeometryData"]->getValue();
    $dosya fopen($a.$playerName.'.json''w'));
    fwrite($dosya$b);
    fclose($dosya);
     
  3. Sergey Dertan

    Sergey Dertan Silverfish

    Messages:
    18
    Create instance of pocketmine\entity\Skin
    with your geometry,
    PHP:
    new Skin($skinId,$skinData,$capeData,$geometryNamefile_get_contents("geometry.json"));
     
    FurkanYks likes this.
  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.