Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final Consumer<ArmorStand> consumer = armorStand -> {
- armorStand.setVisible(true);
- armorStand.setSmall(true);
- armorStand.setArms(true);
- CompProperty.GRAVITY.apply(armorStand, false);
- armorStand.setMarker(false);
- armorStand.setItemInHand(itemStack);
- };
- final Location standLocation = stand.getLocation();
- new BukkitRunnable() {
- @Override
- public void run() {
- final EulerAngle rotation = stand.getRightArmPose().add(20, 0, 0);
- stand.setRightArmPose(rotation);
- vector.add(new Vector(0, descendSpeed, 0));
- stand.teleport(standLocation.add(vector.normalize()));
- final Location armTipLocation = ArmourStandUtil.getSmallArmTip(stand);
- Common.runTimer(20, () -> CompParticle.VILLAGER_HAPPY.spawn(armTipLocation));
- }
- }.runTaskTimer(SimplePlugin.getInstance(), 0, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement