I want to be able to spawn an NPC that looks like a player. i want to do this in code and not using a library or any other plugin. how would i go about doing this. (some code to start would be helpfull)
I would suggest looking at the code from a library that already does this to figure out what you have to do
did you actually read my post? i stated in it : Jogy34 i have tried to look at one but its very difficult to debug someone else's code
You can create a custom class which extends "net.minecraft.server.<version>.EntityHuman" and look through Minecraft's obfuscated code to see which behaviours you want to add. The Minecraft Server code is here: https://github.com/Bukkit/CraftBukkit/tree/master/src/main/java/net/minecraft/server
Hello NoLiver92, seems like i didn't read carefully enough. You could take a look at the source of one or two plugins with allows to spawn npcs to know how they do.