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:
Looks like this also affects the fabric versions, will release a 0.3.1 shortly with a fix
Really good mod. I'm gonna add it to my modpack :)
One problem tho. People can place a hopper under it to extract the items. Are you aware of this issue?
In reply to DAQEM:
Oh that wasn't meant to be possible, though some users have requested it so it should be added as an option
In reply to DAQEM:
Just uploaded a new version 0.3.0, which should make that behavior only happen with special "Exposed Vending Blocks"
can i make admin vending machines?
In reply to andreas_ssg_:
The Creative Vending Block can be used to provide infinite trades, which I assume is what you're looking for. I guess I didn't update the description when that was added
In reply to phygz:
Awesome thanks :D
Does this need to be installed on the Client and Server or can it be Server side only?
In reply to PassyFox:
This mod must be installed on both sides, since it adds a block and special rendering
In reply to phygz:
is it perhaps possible then to just use the recipe, use a normal glass block so it can only be installed server side? the container interface and text rendering can be done on any block i believe?
In reply to PassyFox:
there's probably some way to implement something vaguely like this as a server-side mod, but that's out of scope for this project
In reply to phygz:
bummers, well if you ever figure that one out keep us informed cos im running a server but would like it so people can just join vanilla without the hassle of mods clientside :)
In reply to PassyFox:
Check out mods like Gunpowder for server-side tools. There is one that adds a command only trade function, if I recall correctly.
Where is the forge version?
In reply to onisinu:
it's here, click on Files
In reply to phygz:
Oh I see, it is under Alpha.
Omg omg omgggg this is the best mod then I need, I have to use Now
besttttttttttttttttttt mod ever thanks for given this back c´:
Would be great if you could connect vending blocks to mod pipes to automatically restock inventory and send payment items to an external target.
In reply to kencinder:
Due to an oversight, this was already possible. Since version 0.3.0, it will be available only with special "Exposed Vending Blocks"