Spigot Armorstand posing not same as plain minecraft?

Discussion in 'Spigot Plugin Development' started by twanneke8, May 28, 2017.

  1. Ok so when I pose an armorstand through spigot it goes really weird, though the angles are the same as with the summon command, where the armorstand look good:


    Code (Text):
     ArmorStand as = location.getWorld().spawn(location, ArmorStand.class, armorStand ->{
                    armorStand.setHeadPose(new EulerAngle(15, 0, 0));
                    armorStand.setLeftLegPose(new EulerAngle(8, 164, 0));
                    armorStand.setRightLegPose(new EulerAngle(42, 242, 0));
                    armorStand.setLeftArmPose(new EulerAngle(130, 149, 0));
                    armorStand.setRightArmPose(new EulerAngle(81, 266, 0));

    /summon armor_stand ~ ~ ~ {ShowArms:1b,Pose:{Head:[15f,0f,0f],LeftLeg:[8f,164f,0f],RightLeg:[42f,242f,0f],LeftArm:[130f,149f,0f],RightArm:[81f,266f,0f]}}

    The minecraft pose is obviously what I want but why is the spigot one so misformed?
  2. Got it... Minecraft is in degrees, spigot in radians.
    • Agree Agree x 1