CustomVillager
Features
- Customize villager offers.
- Make villagers invulnerable.
- Confine villagers to prevent them from wandering.
- Protect villages.
- Change villagers professions.
- Name villagers.
Version 1.2 supports CB 1.7.2 through 1.7.9 (NMS and OCB 1_7_R1, 1_7_R2 and 1_7_R3).
Version 1.4 additionally supports CB 1.7.10 (NMS and OCB 1_7_R4).
I'm currently working on preventing the villager from updating offers.
About
Minecraft's native economy is the barter system. Arguably, its native currency is the emerald. CustomVillager extends the usefulness of the villager by allowing you to customize offers, give them god mode and prevent them from wandering.
Overview
First, spawn a villager by typing /cvspawn. Recipes are added by first adding buy and sell items. Type /cvbuy with an item in-hand. The item will be added to the recipe. Up to two buy items may be added to the recipe. Add one sell item using /cvsell. Finally, type /cvadd to add the recipe to the offers of the villager. To clear a recipe and start over, type /cvclear.
To select another villager, type /cvselect and then right-click a villager. To cancel selection, type /cvcancel.
Make a villager invulnerable by selecting it and then type /cvgod on. Without parameter, /cvgod will tell you if the selected villager is invulnerable. Vulnerable villagers can update their own offers as they naturally do in Minecraft, adding to them as they are used. Setting a villager to invulnerable will also prevent the offers from being changed by the server.
A villager's name may be changed using the /cvname command. A villager's profession may be changed using the /cvprofession command.
Permissions
All commands use permission: customvillager.* or OP.
Commands
- cvspawn [name] [profession]
- Spawns a villager at the player's location. Optionally name and profession may be specified in any order.
Possible professions are: FARMER, LIBRARIAN, PRIEST, BLACKSMITH, BUTCHER
- cvselect
- alias: cvs
- Select a villager. Type /cvs and then right-click a villager.
- cvcancel
- Cancel villager selection and restore selection to last selected villager.
- cvrelease
- Release or unselect a villager.
- cvkill
- Remove the selected villager.
- cvname [name]
- alias: cvn
- Name or if no parameter is provided, unname a villager.
- cvprofession [FARMER|LIBRARIAN|PRIEST|BLACKSMITH|BUTCHER]
- alias: cvp
- Set or display a villager profession.
- cvinvulnerable [on|off]
- alias: cvgod
- Set or when no parameter is provided, display vulnerability for selected villager.
- cvinventory
- alias: cvi
- List selected villagers inventory.
- cvbuy
- Add buy item/quantity in hand to recipe. Up to two items may be added to a buy.
- cvsell
- Add sell item in hand to recipe.
- cvclear
- Clear buy and sell items.
- cvadd
- Add recipe created with /cvbuy and /cvsell to selected villager's offers.
- cvdelete <index>
- Delete the inventory at index from selected villager's offers. Use /cvinventory to list villager's inventory.
- cvconfine
- alias: cvc
- Confine villager to player location.