CustomVillager
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.
-
View User Profile
-
Send Message
Posted Jul 18, 2014@Chrisbotcom
Make sure the trading menu's also show the villager's name in color because many plugins that allow name colors don't change the color of the name in the menu.
-
View User Profile
-
Send Message
Posted Jul 15, 2014@MeLikeChoco
I'm really glad you like Custom Villager. I can certainly add formatted names. Give me a couple days and I'll get 'er right up.
-
View User Profile
-
Send Message
Posted Jul 15, 2014This plugin has been a life saver for me as I need to get my server out as fast as possible with vanilla villager trades menus but custom trades. The only thing I request is support for colored names or rather, formatted names.
-
View User Profile
-
Send Message
Posted Jul 4, 2014@Chrisbotcom
Excellent. Thanks again Chris :)
-
View User Profile
-
Send Message
Posted Jul 3, 2014@M3DDLER
Submitted CustomVillager v1.2 which supports CB 1.7.2 through 1.7.9, all betas and releases. It'll take 2 or 3 days to approve.
-
View User Profile
-
Send Message
Posted Jun 29, 2014@Chrisbotcom
Thanks Chris :)
-
View User Profile
-
Send Message
Posted Jun 29, 2014@M3DDLER
Yes! Working on that now. Thanks for pointing that out.
-
View User Profile
-
Send Message
Posted Jun 29, 2014I would like to ask that you release a version to run on 1.7.2 please.
-
View User Profile
-
Send Message
Posted Jun 26, 2014CustomVillager 1.1 is in review now. Fixes the wandering villager after server restart when chunk is not yet loaded.
-
View User Profile
-
Send Message
Posted Jun 26, 2014@Durand1w
Thanks! If you set the villager to Invulnerable (/cvgod on) they won't update their trades. But it might be desired that they don't update their trades even if they are vulnerable. I'll work on that.
-
View User Profile
-
Send Message
Posted Jun 26, 2014@Jimieo
What version of Bukkit are you running? Does the error give you a dump with any detail? What I can do is send you a custom version of plugin and we can see if we can trap the error's cause. Then I can put a fix in.
-
View User Profile
-
Send Message
Posted Jun 21, 2014This looks promising.
I'm having a few issues with this plugin so far though. Most commands are giving me "An internal error occurred while attempting to perform this command." I can spawn a villager, but that is about it.
-
View User Profile
-
Send Message
Posted Jun 20, 2014I noticed this today and am currently writing out paragraph long commands to do this with temporary command blocks. Do you have a method to prevent the unlocking of additional trades? Right now I am using a bedrock for bedrock trade which is customized to say 'No More Trades.'
Either way, this would be a really helpful to manage and update trades.
-
View User Profile
-
Send Message
Posted Jun 10, 2014@kreezxil
v1.0 is available but there's a little bug in keeping the villager in place after his chunk is released but I'm testing the fix now. Meanwhile, confine the villager with blocks to keep him from wondering off. Everything else works fine. Hang on, its coming. ; )
-
View User Profile
-
Send Message
Posted Jun 8, 2014I can't wait but I will. :)