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

Player Arms Rotation

Discussion in 'General discussion' started by MFD, Apr 22, 2020.

  1. MFD

    MFD Silverfish

    Messages:
    23
    Hello PocketMine-MP Community, is there a way to rotate the player’s arms to make the player get a pose?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    I don't think you can do that without changing the player's geometry
     
  3. MFD

    MFD Silverfish

    Messages:
    23
    I searched in the place you told me but I was a bit confused
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    I dunno how to do this either lol
     
  5. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    Umm, using addon instances plugin is another idea, just need to get first person animation
     
  6. MFD

    MFD Silverfish

    Messages:
    23
    Never mind I know now how to do it
     
  7. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Would you mind telling us?
     
  8. MFD

    MFD Silverfish

    Messages:
    23
    Step1: create the geometry.json file with BlockBench
    Step2: Apply it. You can use my code to do it if you want


    $skin = $player->getSkin();
    $player->setSkin(new Skin($skin->getSkinId(), $skin->getSkinData(), $skin->getCapeData(), "Your.geometry.id", file_get_contents($this->getDataFolder() . "geometry.json")));
    $player->sendSkin();
     
    HimbeersaftLP likes this.
  9. NTT

    NTT Zombie

    Messages:
    311
    GitHub:
    NTT1906
    Fix:
    1. Create the a geometry from blockbench
    2. Recode the format to player geometry
    3. setSkin
     
  10. MFD

    MFD Silverfish

    Messages:
    23
    I personally don’t really count the recoding
     
  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.