- Баллы
- 66
Решил написать моба, вот что получилось:
LivingEntity ent = e.getEntity();
if(e.getEntityType() == EntityType.ZOMBIE)
{
ent.setCustomName(ChatColor.DARK_RED + "Штурмовик");
ent.setMaxHealth(50);
ent.setHealth(50);
ent.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));
ent.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));
ent.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
ent.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));
Как сделать чтобы он не спавнился ребёнком и не был жителем?
И как убрать с них дроп и поставить свой?
LivingEntity ent = e.getEntity();
if(e.getEntityType() == EntityType.ZOMBIE)
{
ent.setCustomName(ChatColor.DARK_RED + "Штурмовик");
ent.setMaxHealth(50);
ent.setHealth(50);
ent.getEquipment().setBoots(new ItemStack(Material.IRON_BOOTS));
ent.getEquipment().setChestplate(new ItemStack(Material.IRON_CHESTPLATE));
ent.getEquipment().setLeggings(new ItemStack(Material.IRON_LEGGINGS));
ent.getEquipment().setHelmet(new ItemStack(Material.IRON_HELMET));
Как сделать чтобы он не спавнился ребёнком и не был жителем?
И как убрать с них дроп и поставить свой?