I'm a java programming student, and I know quite a bit about programming from college. I'm curious where I should start if I wanted to have custom NPC's. Is there an open source citizen API that I can play around with and add my own NPC types?
I'd like to have basic citizens to populate a city we are building on a server, maybe an assassins guild with quests to kill X player or kill X target.
Just looking for the right direction to go with it. I'm also hoping to keep my java-fu fresh in my mind, I figure Minecraft modding would be a good start?
Look at something like EntityVillager or EntityZombie to learn how a simple biped might work, but EntityWolf or EntityEnderman would probably be the current height of mob complexity in vanilla Minecraft. If you can thoroughly learn how they work, you should have a good idea of how to program the movement and AI of most any NCP.
Thanks, the group I play with are a bunch of D&D type folks, and we built the city based on a campaign and currently use the zombies as our main antagonist in the campaign essentially. We gave them a custom skin and everything. I'll look into the entity for zombies and the villagers.
BTW if I make a custom NPC, such as those found in other plugins, does each client attached to the server need to have files to load a custom skin for that NPC? I always wondered this on plugins that support town guards on their server.
I'll probably stick with Bukkit, since atm that's what I have the most experience with, and I host the server locally on my gaming PC. Should I attempt to make my own NPC plugin for bukkit or should I use one that's already out there as a reference? Such as the Citizens plugin?
I don't really intend on making a distributable plugin, just using one for my server. I like how some out there have the ability to "place" NPC's and choose where they spawn (Admin/OP's only). It would be convenient for placing town guards.