• check_circle Advancements
  • check_circle Functions
  • 6,226 views, 3 today
  • 620 downloads, 1 today
  • 11
  • 10
  • 5
xylo_datapacks's Avatar xylo_datapacks
Level 58 : Grandmaster Programmer
122
- 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
Tags

Create an account or sign in to comment.

1
02/01/2023 4:19 am
Level 1 : New Miner
User4456200G
User4456200G's Avatar
How would I reset the villager trades so they don't have a capped amount?
1
02/01/2023 4:41 amhistory
Level 58 : Grandmaster Programmer
xylo_datapacks
xylo_datapacks's 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)
1
01/30/2023 8:35 am
Level 39 : Artisan Miner
Lordphenex
Lordphenex's 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 ?
2
01/30/2023 9:06 am
Level 58 : Grandmaster Programmer
xylo_datapacks
xylo_datapacks's 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
2
01/30/2023 6:34 am
Level 40 : Master Procrastinator
Zigdust09
Zigdust09's Avatar
this is so cool! 100% using it on my smp
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome