- Баллы
- 66
- Имя в Minecraft
- DieF
@EventHandler
public void onEntitySpawnSkeletons(CreatureSpawnEvent e)
{
LivingEntity ent = e.getEntity();
if(e.getEntityType() == EntityType.SKELETON)
{
byte s = (byte) rng.nextInt(3);
if(s == 0)
{
ent.setCustomName("Ghost1");
ent.setCustomNameVisible(true);
ent.setMaxHealth(30);
ent.setHealth((int) 30.0D);
ent.getEquipment().setItemInHand(new ItemStack(Material.IRON_HOE));
ent.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
ent.getEquipment().setHelmet(new ItemStack(Material.SKULL_ITEM, (short)1));
}
как сделать так что бы Material.Leather_Chestplate при спауне был черный ?
public void onEntitySpawnSkeletons(CreatureSpawnEvent e)
{
LivingEntity ent = e.getEntity();
if(e.getEntityType() == EntityType.SKELETON)
{
byte s = (byte) rng.nextInt(3);
if(s == 0)
{
ent.setCustomName("Ghost1");
ent.setCustomNameVisible(true);
ent.setMaxHealth(30);
ent.setHealth((int) 30.0D);
ent.getEquipment().setItemInHand(new ItemStack(Material.IRON_HOE));
ent.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
ent.getEquipment().setHelmet(new ItemStack(Material.SKULL_ITEM, (short)1));
}
как сделать так что бы Material.Leather_Chestplate при спауне был черный ?