Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. package com.baggot.plugin;
  2.  
  3.  
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.Location;
  6. import org.bukkit.entity.ArmorStand;
  7. import org.bukkit.entity.EntityType;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9. import org.bukkit.util.EulerAngle;
  10.  
  11.  
  12. public class Main extends JavaPlugin {
  13.  
  14.    
  15.     @Override
  16.     public void onEnable() {
  17.         System.out.println("N WORD");
  18.  
  19.         //Bukkit.getPluginManager().registerEvents(this, this);
  20.         spawnStand(new Location(Bukkit.getWorld("world"), 0, 74, 0));
  21.     }
  22.    
  23.    
  24.     private void spawnStand(Location location) {
  25.         //232f,0f,0f
  26.         ArmorStand stand = (ArmorStand) location.getWorld().spawnEntity(location, EntityType.ARMOR_STAND);
  27.        
  28.         //stand.setArms(true);
  29.       //  stand.setVisible(true);
  30.         stand.setHeadPose(new EulerAngle(Math.toRadians(52), Math.toRadians(125), Math.toRadians(81)));
  31.        // stand.setCustomNameVisible(true);
  32.        // stand.setCustomName(ChatColor.AQUA + "friends");
  33.        // stand.setHelmet(new ItemStack(Material.DIAMOND_HELMET));
  34.        
  35.        
  36.        
  37.        
  38.    
  39.     }
  40.    
  41.    
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement