Discussion in 'Plugin Development' started by MasterDoctor, Sep 2, 2014.
How would I spawn in a villager?
I don't want to use Citizens.
MasterDoctor Wouldn't it have been better to ask on the same thread? I'll ask again, what have you tried so far?
1) Sorry, I realized that after i posted this thread.
2) I have tried using the NPC Spawner Lib
MasterDoctor What do you want to do with the villager?
AdamQpzm Change his age <-- Got this covered. and teleport him.
MasterDoctor Have you currently got any code to do any of that (other than the age part)?
MasterDoctor World has a method to spawn entities. You should look into that.
MasterDoctor you can spawn any entity by using the spawn method of a world in combination with the EntityType of the entity. it is quiet easy, 1 line
Separate names with a comma.