The Vending Block allows players to easily accept item trades.
Crafting
How to Use
To set up a Vending Block, place it on the ground and right-click to open a menu. The player that placed it is the only player that can open the configuration/inventory.
The blue slot on the left is the stack accepted for trade, and the orange slot on the right is the stack that will be returned to the customer. These slots don't consume items, but can be clicked with a stack to set them.
In the center is the inventory of the block, which should contain the stock of items to distribute. Items paid by users will also appear here, so make sure to leave space for them.
Once configured, players can exchange items by right-clicking on the block with the required item in hand.
Creative Vending Block
A variant of the Vending Block, this item is not craftable and meant to be used by server admins. It has no inventory, and will infinitely allow the configured trade.
Exposed Vending Block
A variant of the Vending Block that can interact with item transport (e.g. hoppers). Note that this weakens the security of the block, as other players could extract items.
In reply to phygz:
Thank you!
some suggestions
can items render as glowing like quark's item frames? I think those are rendered like emissive textures.
would it be possible to display a count of how many items are left in the inventory? if im buying diamonds to make a pick, and the shop only has 2, I'd like to know.
This mod has been an absolute life saver. It is amazing. Is there any chance it would be made for 1.14.4 or 1.15.2? I understand if not.
In reply to ragequitamy:
Just published releases for forge for 1.14 and 1.15, probably won't do fabric for those versions though
In reply to phygz:
Thank you so much, you are a legend. :D
1.17.1 forge PLS
In reply to alizaratd:
now available
1.17.1
1.17 Forge? :c
In reply to giancs16:
yes
description of the item to the people know what are they buying
Ive been making a map but I cant buy stuff from my own creative vending block. you shouldn't be able to open the creative vending block in survival or add like a screwdriver to edit a vending block instead of just being able to edit it
Possible to have some kind of /trust system, so someone else can access inventory as well?
This mod would be amazing if you changed the model to be a vanilla block so this mod was server-side only.
In reply to xpgeeos:
There's a lot more than a block model that needs to be on the client for this mod. As noted in another comment, I'm sure it's possible to implement something somewhat similar as a server mod, but it would be a completely different implementation and is out of scope for this project.
Thanks for the quick fix. But there is another problem. If you change the price, the number shown above will not change.
In reply to billybin7:
I think I've tracked down the issue, will release a 0.3.2 soon with a fix
In reply to phygz:
Thanks!
In the Forge 0.3.0 version of the Mod the Vending Block doesn't put the item that takes from the customers in his inventory, but the stock of items to sell decrease anyways
In reply to Pingoda:
Oh that's bad, looking into it now