-
Notifications
You must be signed in to change notification settings - Fork 6
Manual
This small bukkit plug-ins aims at giving some life to our beloved villagers. The player is now able to specify jobs. Currently available jobs are farmers and librarian.
Disclaimer : I've chose to only use the bukkit API, not override the server implementation. The actual result is a "passive behaviour", or some sort of villager mind parasite. Their movement procedures aren't affected, nor their basic reactions.
Right click with a WHEAT on the villager. It turns to a farmer (see ).
To plant seed, a villager needs an hoe and some wheat seeds. You can give it some, or place it in a chest nearby.
Right click on a farmer with a stick to get its status.
A farmer doesn't need a tool to harvest wheat, melon or pumpkin.
The farmer will wander around and every N seconds, checks its immediate surrounding (3x3). If there's mature wheat, it will collect it and re-seed the block. If there's melon or pumpkin, it will collect them. If there's grass or dirt or soil, no melon/pumpkin steam nearby, and if it has tool and seed, it will plant wheat.
If there's a chest in the immediate surrounding, the Farmer will deposit its wheat/melon slice/pumpkin in it.
Right click with a BOOK on the villager. It turns to a librarian (see ).
A librarian might need an axe to chop wood (it's a badass librarian). You can give him an axe directly or leave some in a chest.
A librarian will wander and every N seconds, checks its surrounding (5x5).
If there's sugar cane, it will collect it, but leave at least one block so the sugar cane can grow again. If there's a workbench nearby and enough sugar canes in stock, it will create books. If there's a chest, it will deposit those books.
If the librarian has been supplied an axe, it will chop birch trees only. Those trees must be placed on a dirt/grass block, itself placed on a brick block. The trunk is replaced by a birch sapling. If there's a chest nearby, the librarian will deposit the logs in it.
Just give torches to an Iron golem, and every N seconds, it will evaluate if its current position needs to be enlighten and places the torch.