Jump to content

[1.9] Custom NPCs to automate tasks (cut trees, build a house, etc)


WeiseGuy

Recommended Posts

Hey all,

 

I'm getting lost in vanilla code trying to figure out some info on a concept I have. I want to try to add an NPC to the game that I can send to automate some task like a player would. Let's say, go cut trees in a set area, or build a house (based off a schematic). They could basically do basic tasks of player, have an inventory, and I'll use a GUI system to assign tasks with a "home" block or some reference block that will be placed by player to designate their zones.

 

I currently have so many classes opened from Villagers, to Villager registry, all the supers for those, the interfaces, etc. I'm getting so lost in the vanilla code.

 

Is there any reference code I can take a look at that people know of or a good tutorial on entities in general? I don't think extending villager is really a good idea since that's going to add in so many things I really don't need. Maybe just extending off the base EntityLiving and making the rest myself?

 

Any tips on where to start here?

www.YouTube.com/WeiseGamer

www.twitter.com/WeiseGamer

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.