Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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

  • Author

Hi

 

I think you should look at jabelar's entity tutorials, they're really good.

http://jabelarminecraft.blogspot.ch/ is the link to it.

 

Sincerely -pick

 

I completely forgot about jabelar's site -_-

 

I've been out of the scene since 1.7.10, so I'm trying to get back in, haha.

www.YouTube.com/WeiseGamer

www.twitter.com/WeiseGamer

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.