Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Location loc = block.getLocation();
- loc.setX(loc.getX() + 0.5);
- loc.setZ(loc.getZ() + 0.5);
- loc.setY(loc.getY() + 0.5);
- ArmorStand stand = loc.getWorld().spawn(loc, ArmorStand.class);
- stand.setVisible(false);
- ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1);
- skull.setDurability((short)3);
- SkullMeta skullMeta = (SkullMeta) skull.getItemMeta();
- skullMeta.setOwner("CruXXx");
- skull.setItemMeta(skullMeta);
- stand.setHelmet(skull);
- stand.setArms(false);
- stand.setCustomName("§f§lOpen");
- stand.setCustomNameVisible(true);
- stand.setSmall(true);
- stand.setVelocity(new Vector(0, 0.5, 0));
- int animate = Bukkit.getScheduler().scheduleAsyncRepeatingTask(this, new Animate(stand), 0, 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement