Minecraft Data Packs / Cosmetic

Villager Shop Creator [Ver 4.0] now in 1.20!

  • check_circle Functions
  • 70,397 views, 43 today
  • 12,138 downloads, 4 today
  • 177
  • 204
  • 188
MeWithNoGoodUsername's Avatar MeWithNoGoodUsername
Level 52 : Grandmaster Modder
48
Villager Shop Creator [Ver 4.0] now in 1.20! Minecraft Data Pack
By MeWithNoGoodUsername
Credit for Idea: CommandGeek


NOW IN 1.20!
Villager Shop Creator lets you create your own shops and customize lots of traits of the villagers!

How It Works

VIllager Shop Creator (VSC for short). A great tool for Beginners to help learn and create custom villagers, not only is this a great pack to make shops but it will also teach you somethings about JSON text



Creating a Villager
Villager Shop Creator [Ver 4.0] now in 1.20! Minecraft Data Pack

When Creating a Villager, First place down a Lodestone Block and then spawn a villager using the Villager Spawn Egg

Villager Shop Creator [Ver 4.0] now in 1.20! Minecraft Data Pack

You have successfully created the Shop and now you will get a Book


Using the Book
once you receive the book, open it up to bring up the menu we will be using to make our Villager Shops



-[​Change Rank]-
Change the Level of the Selected Villager

-[​Change Profession]-
Change the Profession of the Selected Villager

-[​Change Biome Type]-
Change the appearance of the Selected Villager

-[​Name & Extra]-
Change the Name, Silent, and held item of the Selected Villager

-[​Add a Trade]-
Add a Single Trade to the Selected Villager using the Hopper, Switches to

-[​Add a Chain Trade]-
Add a Chain Trade to the Selected Villager using the Barrel

-[​Remove 1]-
Delete the last Recent Trade added to the Selected Villager

-[​Remove 3]-
Delete the last 3 Recent Trades added to the Selected Villager

-[​Extract]-
Extract the trades the current Selected Villager has into NBT tagged shulker boxes

-[​Reset Trades]-
Reset all trades of the Selected Villager and start from scratch

-[​Save]-
Save and get Villager Spawn Egg with all the data of the Selected Villager

-[​Delete]-
Delete the Selected Villager and it's Shop Workshop





Adding Trades


You can add trades in 2 ways, either using a hopper for single trades or a barrel for chain trades,
you can switch between them by pressing [​Add Single Trade] or [​Add Chain Trade]. make sure to follow the guidelines for adding your trades in



Multi Villager Shop at Once



You can have multiple Shops up at once, simply hit the villager to select it (this is will not effect his or surrounding villager's trades)



Changing Appearance & Name


You can have Villagers Hold and or Wear(on their heads) items!, I made it real simply and simply putting the desired item on your offhand (f) and selecting the option [​Set Held Item] or [​Set Head Item]



You can also change the Villager's Name by clicking [​Get Rename Book]. it is in JSON text so if you have no clue how to use it, please click [​Get Rename Manual]. I tried my best to easily explain it for you guys!

once you put the custom name in the book, simply drop it onto the ground and the Selected Villager's name will be changed!

IMPORTANT: DO NOT sign the Rename Book, it is made to be re-edited



Saving Your Villager

Once you have chosen all your configs for the villager, simply hit the [​Save] button on the first page of the book!

You will receive an egg with the Villager's Data available for you to place anywhere in the world, and there you go! your new custom villager shop is ready to go!




Set-Up & Help

Setup
Move villagershopscreator.zip folder in the datapacks folder (Roaming > .minecraft > saves > {name of your world} > datapacks)
/reload the world once added
Do /function shop_creator:fix if you need to start again with a clean slate.
Recommended: Read How It Works




Help
If you encounter a problem or issue with the datapack, and if it hasn't been covered here, please let me know down in the comments
(Any useful helpful information will go right here if needed)

--Shop Wont Create if I spawn a Villager--
make sure you are spawning the villager with a villager spawn egg, using the /summon command wont work

--How can I go back to a previous trade I made without deleting my way back?--
I added a [​Extract] feature to tackle this issue, unfortunately its more work but in my opinion, better in the long run

--I lost my custom egg and deleted my shop!--
don't worry, if you drop a default villager spawn egg near a villager created by the shop, it will drop it's egg! (Only in Creative mode)

--opening the book constantly to add a trade is frustrating, is there an easier way?--
yes!, if you run the command: /function shop_creator:signs , you will get 7 signs with different functions, simply right click them to do the functions

--I hate where I placed down my Custom Villager at!--
don't worry, if you drop a barrier block down near a Custom Villager, then that villager will be killed, easy

--I want the villager to face a different direction!--
easy, summon a debug stick in and when you hold it near a custom finished villager it will face you until you deselect the stick

--Can't get the datapack to work?--
try using the command: /datapack <list, enable, disable> and see if "file/villagershopscreator" is there
if it is then you might need to enable it.
(note. the datapack isn't installed if it doesn't show up on list, disable or enable)

(note2. if the datapack still does not show up it could be a problem relating to the server's provider)


Updates
v.1.0

The Beginning
-Datapack went live

v.1.1

Debug 1
-Added a Debug Function
-Ability to rotate finished villagers using a debug stick

v.1.2

Debug 2
-Fixed Egg throw to get posmade villager eggs back
-Ability to kill a custom villager by dropping a barrier block on them

v.2.0

Zero of the Villager
-Added Hero of the Villager removal warning when a play gets close to a Custom Villager
-Fixed Egg to now use a Default Villager Egg now
-Changed how Fix function works
-Small visual tweaks
-Multiplayer Friendly

v.3.0

Touch of Quality
-Compatible with 1.18
-Fixed Duplication Text Spam
-Killing a Custom Villager via barrier item now spawns a custom egg as well
-Fix Function now deletes any custom shops that are bugged
-Changed how some sounds play

v.4.0

1.20 & Important Improvements
-Compatible with 1.20
-REALLY Fixed Duplication Text Spam
-Added new Remove 3 Recent Trades options in menu
-Fix Function now gets you out of selected state
-Made Shulker Boxes compatible with the chain trade function
-Extracting trades will now be given in pink shulker boxes
-Updated book menu
-Fixed Zero of the Village function


Thank you guys for playing my datapacks, I put a lot of work into these to make sure they are fun and enjoyable for everyone!

Please credit me if you can! Tag me with your videos and photos, I would love to see what you guys do!
and throw me a diamond and a like if you want to see more!


Special Thanks goes to CommandGeek for the concept and visuals
all work and code was made by scratch and was not copied off someone else's work, I used CommandGeek's 1.14 datapack as a visual aid and compiled all the commands in my datapack all on my own!
CreditCommandGeek
CompatibilityMinecraft 1.16
toMinecraft 1.19
Tags

5 Update Logs

Update 4.0 : by MeWithNoGoodUsername 07/05/2023 1:26:12 amJul 5th, 2023

v.4.0 - 1.20 & Important Improvements
-Compatible with 1.20
-REALLY Fixed Duplication Text Spam
-Added new Remove 3 Recent Trades options in menu
-Fix Function now gets you out of selected state
-Made Shulker Boxes compatible with the chain trade function
-Extracting trades will now be given in pink shulker boxes
-Updated book menu
-Fixed Zero of the Village function
LOAD MORE LOGS

Create an account or sign in to comment.

1
12/28/2023 10:48 am
Level 19 : Journeyman Cookie
DGTC
DGTC's Avatar
Hey there! I've been using this data pack for a while on my map (which I'm currently working on an update for). I recently started working on the map on a preview version of optifine 1.20.4, though in that version, the shop creator book does not work. Just a bunch of garbled stuff with I'm assuming is the code for the book. Though, when I log up an optifine version for 1.20.1, it works just fine. I'm not sure if this is the right place to ask, but is this a problem on my end, your end, or optifine's end?
1
12/29/2023 8:00 am
Level 19 : Journeyman Cookie
DGTC
DGTC's Avatar
Update: Okay, so this isn't a problem on OptiFine's end. The datapack doesn't seem to be compatible with 1.20.4 in general, though it works fine in 1.20.1.
1
12/09/2023 10:31 am
Level 1 : New Miner
User4925923G
User4925923G's Avatar
i used this in the most recent update of the game and it left floating text saying, Shop Creator, i cant seem to get rid of it no matter what i try. ive since gone back to 1.20.2 and its still there.,
1
12/09/2023 10:38 am
Level 1 : New Miner
User4925923G
User4925923G's Avatar
this command deletes it, just wanted to update here incase anyone runs into a similiar problem

/execute as @e[name=&quot;Shop Creator&quot;,type=!player,distance=..100] run kill
1
11/29/2023 12:59 pm
Level 1 : New Miner
Jungo_Whey
Jungo_Whey's Avatar
does this work in 1.20.1 or just 1.20
cant seem to get a shop to spawn
1
11/30/2023 4:03 pm
Level 52 : Grandmaster Modder
MeWithNoGoodUsername
MeWithNoGoodUsername's Avatar
I have not tested this in 1.20.1 but I don't think there is a significant difference between the 2 versions for an error to occur.
1
11/30/2023 8:49 pm
Level 1 : New Miner
Jungo_Whey
Jungo_Whey's Avatar
not sure what im doing wrong then, i have the datapack enabled and loaded, but shop wont spawn when i use egg on lodestone, just a normal villager
1
11/21/2023 11:32 pm
Level 9 : Apprentice Miner
laminterious
laminterious's Avatar
Any way to get randomized trades? Like having a dozen trades, but only offers one of them once a day?
1
11/30/2023 4:06 pm
Level 52 : Grandmaster Modder
MeWithNoGoodUsername
MeWithNoGoodUsername's Avatar
There is not, but that is not a bad idea. However figuring out how to execute it with Minecraft's limited command system may be a challenge, I will workshop something though, I have an idea
1
11/10/2023 8:09 am
Level 4 : Apprentice Explorer
KaruMC
KaruMC's Avatar
Can I add custom items for trading? Like if I enhanted a crossbow, gave it NBT data, and textures to look like and sound like a gun can I get the traders to trade that without issues?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome