Minecraft Data Packs / Tool

VillEdit - Create Villager Shops!

  • check_circle Functions
  • check_circle Predicates
  • 41,925 views, 25 today
  • 7,783 downloads, 6 today
  • 260
  • 236
  • 123
Silabear
Site Moderator
Level 69 : High Grandmaster Guard Bear
932
⚠️ The latest version of this datapack only work on Minecraft Java 1.21+. For older versions, please find them here.

Introducing VillEdit, a datapack which lets you edit every aspect of villagers within Minecraft using a simple UI, and then gives you a reusable spawn egg. It's the perfect datapack for map makers and server owners!

Features
  • Edit the profession, trades, level, biome type, AI, and name of villagers.
  • Simple to use and integrates with your world easily
  • No resource pack or mod is required.
  • Multiplayer and server compatible!
  • Works with any items, even modded ones
  • Works in 1.21 and newer versions
  • Barely any lag
Here's a demo of the datapack:



How to use

add_box Spawning the editor

Place down a chest, and then use a villager spawn egg on top of it (sneak and right click the top). This will spawn a Villager Editor. Right click the barrel to open the menu.

edit Using the editor

To use the editor, simply open the barrel and click the buttons. Each button will explain what it does when you hover over it. There are 7 appearance options:
  • Cycle Profession
  • Cycle Biome
  • Cycle Level
  • Toggle Static (NoAI)
  • Toggle Glow
  • Toggle Silent
  • Change Custom Name

note_add Adding a trade

To add a trade, click the green "Add Trade" button. This opens a new menu where you can create the trades by putting items in the UI. You need at least one input item, and an output item, for it to work. You can also toggle whether you want the trade to reward any XP to the player.

delete Removing trades

To remove trades, you can click the redstone dust button to remove the last trade you added. You can also click on the redstone block button twice to reset and remove all the trades, but this has no undo.

save Saving and exiting

Once you’re done, open the editor and press Save. This will give you the spawn egg to spawn your custom villager. You can use it wherever and whenever you want, but make sure to keep the egg safe. The spawn egg will work even if the datapack is uninstalled. The spawn egg will display the villager's data in the lore of the item (hover over it in the inventory)

To remove the editor, just break it.

Other

BearEdit | a WorldEdit datapack Minecraft Data Pack

👍 If you like this pack, then please give it a diamond or favourite, and drop a comment - I love to see what you have to say! Share it with your friends too to help me get it seen <3
CreditLegibleSleet827, CommandGeek, DinoBrik
CompatibilityMinecraft 1.20
Tags

13 Update Logs

v2.7 : by Silabear 10/16/2024 1:12:51 pmOct 16th, 2024

  • Fixed an odd bug where adding/cancelling trades would work the first time, but any subsequent times would bug out the editor, at least until the editor was closed and reopened.
    • For context, I have no idea how this happened. It seems to be as a result of a weird Minecraft bug.
LOAD MORE LOGS

Create an account or sign in to comment.

Entity12208
04/16/2025 10:09 pm
He/Him • Level 1 : New System
Does this work on 1.21.5?
1
Silabear
04/17/2025 6:13 am
He/Him • Level 69 : High Grandmaster Guard Bear
Not yet.
1
KingJerry1121
04/04/2025 5:32 pm
Level 1 : New Miner
The custom villager rename feature is not working, as custom villagers will not pick up the book.
1
Silabear
04/05/2025 12:23 pm
He/Him • Level 69 : High Grandmaster Guard Bear
what minecraft version?
1
GhostWires
03/02/2025 5:59 am
She/Her • Level 1 : New Collective
Idk if it's intentional, but whenever I spawn in a villager with the egg it has a random rotation, and it's nigh impossible to make them face the direction I desire
Unsure if I'm missing something lol
2
doggasaurio
10/25/2024 11:05 pm
Level 1 : New Miner
dont work in 1.21.3
1
Lucky_Owlmc
10/19/2024 9:34 pm
Level 1 : New Crafter
Hi there! Just downloaded on modrinth and I'm not sure if it's a bug but all of the villagers face south. Is there a way to rotate them that I have perhaps missed? Thanks for an awesoem mod <3
2
Jpp1993channel
10/16/2024 4:29 pm
Level 1 : New Miner
hi i instaled the newest version and try to make new custom vilager but every time i try to spawn it it turns invisible and the buttons on the trader menu dont work
1
Silabear
10/17/2024 12:15 pm
He/Him • Level 69 : High Grandmaster Guard Bear
Should be fixed
2
Silabear
10/16/2024 4:52 pm
He/Him • Level 69 : High Grandmaster Guard Bear
Hi, the latest version has been deleted. Please use the new latest version
2

Welcome