Advertisement
Guest User

Untitled

a guest
Aug 24th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Location loc = block.getLocation();
  2. loc.setX(loc.getX() + 0.5);
  3. loc.setZ(loc.getZ() + 0.5);
  4. loc.setY(loc.getY() + 0.5);
  5. ArmorStand stand = loc.getWorld().spawn(loc, ArmorStand.class);
  6. stand.setVisible(false);
  7. ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1);
  8. skull.setDurability((short)3);
  9. SkullMeta skullMeta = (SkullMeta) skull.getItemMeta();
  10. skullMeta.setOwner("CruXXx");
  11. skull.setItemMeta(skullMeta);
  12. stand.setHelmet(skull);
  13. stand.setArms(false);
  14. stand.setCustomName("§f§lOpen");
  15. stand.setCustomNameVisible(true);
  16. stand.setSmall(true);
  17. stand.setVelocity(new Vector(0, 0.5, 0));
  18. int animate = Bukkit.getScheduler().scheduleAsyncRepeatingTask(this, new Animate(stand), 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement