Skip to content

Commit

Permalink
add entity mech skeleton_arms_raised
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 15, 2021
1 parent 1f97439 commit a6ae52f
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -3285,6 +3285,18 @@ else if (getBukkitEntity() instanceof Creeper) {
NMSHandler.getEntityHelper().setHeadAngle(getBukkitEntity(), mechanism.getValue().asFloat());
}

// <--[mechanism]
// @object EntityTag
// @name skeleton_arms_raised
// @input ElementTag(Boolean)
// @description
// Sets whether the skeleton entity should raise its arms.
// -->
if (mechanism.matches("skeleton_arms_raised") && mechanism.requireBoolean()) {
EntityAnimation entityAnimation = NMSHandler.getAnimationHelper().getEntityAnimation(mechanism.getValue().asBoolean() ? "SKELETON_START_SWING_ARM" : "SKELETON_STOP_SWING_ARM");
entityAnimation.play(entity);
}

// <--[mechanism]
// @object EntityTag
// @name polar_bear_standing
Expand Down

0 comments on commit a6ae52f

Please sign in to comment.