Ir para conteúdo
  • 0

Villager não se mover


Frogguer

Pergunta

13 respostass a esta questão

Posts Recomendados

Remove a AI dele, tem ai no fórum como

@edit

eu faço assim, não achei o tópico mas acho que foi o luigi que passou esse método

    Villager villager = p.getLocation().getWorld().spawn(p.getLocation(), Villager.class);
    noAI(villager);

    public static void noAI(Entity bukkitEntity) {
        net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) bukkitEntity).getHandle();
        NBTTagCompound tag = nmsEntity.getNBTTag();
        if (tag == null) {
            tag = new NBTTagCompound();
        }
        nmsEntity.c(tag);
        tag.setInt("NoAI", 1);
        nmsEntity.f(tag);
    }
Editado por zAth
Link para o comentário
Compartilhar em outros sites

 

Remove a AI dele, tem ai no fórum como

@edit

eu faço assim, não achei o tópico mas acho que foi o luigi que passou esse método

    Villager villager = p.getLocation().getWorld().spawn(p.getLocation(), Villager.class);
    noAI(villager);

    public static void noAI(Entity bukkitEntity) {
        net.minecraft.server.v1_8_R3.Entity nmsEntity = ((CraftEntity) bukkitEntity).getHandle();
        NBTTagCompound tag = nmsEntity.getNBTTag();
        if (tag == null) {
            tag = new NBTTagCompound();
        }
        nmsEntity.c(tag);
        tag.setInt("NoAI", 1);
        nmsEntity.f(tag);
    }

 

 

 

 

 

como seria na 1.5.2 tem ? 

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...