Since the introduction of hoppers and comparators it has been possible to create automatic shops but no one seems to have made any yet. Not sure why no one bothered but I thought I would give it a try.
How it works
Spoiler:
There are a couple of booths, each with a different item you can buy. You put a diamond in the hopper and the shop spits a certain number of items at you. Here is a video:
[youtube]PoXt23bHiiw[/youtube]
Above the booth is an indication of how many trades are still available. The sign under the last light that is switched on indicated the minimum number of trades still available. In the picture below is an example with only one light switched on. In this case there is at least one trade to go but there could also be 41.
In that case it is not a good idea to throw large number of diamonds in at once as you may not get anything back for them if the shop runs out of stock before it has processed all the diamonds. So instead just throw diamonds in one at a time. Inside of the booth is another light showing whether there is still a trade available, when this one switched off there are no more items and you shouldn't put any more diamonds in the hopper as you will lose them without getting any items.
If anyone is interested in the redstone, I can do a tutorial on that if you want.
Where it is
Spoiler:
The shop is currently located at -175x -125z under the white house.
There is a stairway next to the house
What's for sale
Spoiler:
Currently:
- 64 oak logs per diamond
- Jungle sapling per diamond
- 8 iron blocks per diamond
If you are interested in certain items, let me know, maybe I can add them (if they are items I am willing to sell).
Re: Auto Shop
Posted: Fri Jun 14, 2013 8:12 am
by DerekITolduso
How does it know that you are putting i diamonds and not dirt?
Re: Auto Shop
Posted: Fri Jun 14, 2013 8:19 am
by eah
Now that you bring it up, I think it's worth mentioning that having multiple shops around spawn can be dangerous for the sellers if they're not careful.
You are selling 64 logs for 1 diamond. Another shop could sprout up selling 1 diamond for 32 logs. A player could plausibly abuse this by giving you 1 diamond in exchange for 64 logs and then giving the second shop the 64 logs in exchange for 2 diamonds. The player could continue doing this, doubling his diamond count only for the effort put into obtaining the original 1 diamond and trading at the shops. The second shop gains your logs and the player and you each gain equal share of the second shop's diamonds.
Re: Auto Shop
Posted: Fri Jun 14, 2013 8:22 am
by BSGSamuel
DerekITolduso wrote:How does it know that you are putting i diamonds and not dirt?
It's an item sorter, it will only accept diamonds. All the slots in the hopper are filled with diamonds so that's the only thing that will stack.
Re: Auto Shop
Posted: Fri Jun 14, 2013 9:37 am
by dlgn
I don't know what I was expecting...
Re: Auto Shop
Posted: Fri Jun 14, 2013 10:32 am
by xxcrapperzxx
This is a great idea. Does the item used to purchase have to be diamonds? I was thinking if you can use iron ingots instead.
Re: Auto Shop
Posted: Fri Jun 14, 2013 10:37 am
by TechnoProdigy
Seems pretty interesting.
Re: Auto Shop
Posted: Fri Jun 14, 2013 10:58 am
by monkeychunks
Im not that good with redstone
Re: Auto Shop
Posted: Fri Jun 14, 2013 11:28 am
by DerekITolduso
Can you make a tutorial for this so i can make one
Re: Auto Shop
Posted: Fri Jun 14, 2013 11:34 am
by SuperCreeper007
DerekITolduso wrote:Can you make a tutorial for this so i can make one