• check_circle Advancements
  • check_circle Functions
  • 2,826 views, 22 today
  • 236 downloads, 1 today
  • 9
  • 9
  • 5
xylo_datapacks avatar xylo_datapacks
Level 53 : Grandmaster Programmer
- To place a shop put an item frame over a chest, then place an egg in the item frame to create the shop.
- To remove it just Sneak+RightClick on the shop villager (only the owner can do that)
- When you remove the shop you get back the items that were not sold, and the revenue from the ones that were sold.

-To set the trades, place items inside the chest before creating the shop. Every column inside the chest is a trade. the first and second row are for the items required to buy the item. the third row is for the item you want to sell

Note: the shop villager is invulnerable, so only players in creative mode can kill it.
Also you can remove the chest and item frame after creating a shop
CompatibilityMinecraft 1.19

Create an account or sign in to comment.

02/01/2023 4:19 am
Level 1 : New Miner
User4456200G avatar
How would I reset the villager trades so they don't have a capped amount?
02/01/2023 4:41 amhistory
Level 53 : Grandmaster Programmer
xylo_datapacks avatar
You place another shop

Each trade can be used only once cause the shop is selling just what you put in the chest.

I might add a update so that if you use a bedrock block instead of an egg the trades are infinite (so you can build infinite shops if you are in creative)
01/30/2023 8:35 am
Level 33 : Artisan Miner
Lordphenex avatar
Great datapack !
Maybe you should add conditions not to create empty trades for the villager.
Also I didn't find where players get their ID... Maybe it's a dependency that you didn't precised ?
01/30/2023 9:06 am
Level 53 : Grandmaster Programmer
xylo_datapacks avatar
Thankyou :)

Empty villagers trades dont actually create any issue as far as i know, so probably i won't change that in the near future (im taking a break from minecraft cause of exams)

The id thing does not have any relation to this datapack.
its introduced by the xylo's utility datapack (the main datapack needed for most of my other datapacks)
Anyway you can see the ids by holding the TAB key
01/30/2023 6:34 am
Level 36 : Artisan Mage
Zigdust09 avatar
this is so cool! 100% using it on my smp
Planet Minecraft


© 2010 - 2023