Skip to content
SomeRandomGameDev edited this page May 15, 2012 · 14 revisions

Introduction

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.

Jobs

Farmer

Creation

Right click with a WHEAT on the villager. It turns to a farmer (see ).

Needs

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.

Behaviour

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.

Librarian

Creation

Right click with a BOOK on the villager. It turns to a librarian (see ).

Needs

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.

Behaviour

A librarian will wander and every N seconds, checks its surrounding (5x5).

Sugar Cane and books.

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.

Birch Trees

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.

Iron Golem

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.

Clone this wiki locally