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:
Curseforge sure makes it hard to find your own messages. Thanks for implementing, security won't be an issue when claiming/protection mods are in use.
Does this mod allow for infinite trades? Like if I wanted to set up a shop in a single player world for myself?
In reply to TwistedSisler:
I thought what the heck and installed it anyway to check, but I don't see a way to. I don't even see a way for a player to use the shop if you made it yourself which is unfortunate, but if I am doing something wrong please let me know. I really like the concept of this mod, but I would like to be able to use this in a single player world for myself without needing to restock it (because that defeats the purpose). Having shops in my single player world that I can use saves a lot of the grind of gathering resources if I want to focus on building and have lots of diamonds and emeralds; so if this isn't something this can currently do, I would like to formally request it. Good work so far though!
In reply to TwistedSisler:
Players can use their own vending blocks as long as they hold the cost item when interacting.
Currently, there are no "creative vending blocks", but I've made a note to add them: https://todo.sr.ht/~vpzom/retail/2
In reply to phygz:
It didn't seem to be working for me. It was just opening the GUI, but I was also in Creative mode when I was testing it so maybe that's why. I will give it another shot, thank you! And thinks for making note to add a creative block version. That would be super awesome! Cheers!
In reply to phygz:
I tried it again and it definitely works in single player. I'm not sure what I was doing wrong there. Thanks for the follow up. I checked your link and thank you for adding that in your notes! One thing though, I think it should be for survival, not only usable in creative. Creative already lets you just grab anything you want. The point would be so that you could have a single player survival world with shops that you could purchase from, if that makes more sense.
In reply to TwistedSisler:
ah I should rephrase that, I meant that the GUI should only open in creative
In reply to phygz:
Oh, yeah that makes sense then. Thanks!
In reply to TwistedSisler:
decided that doesn't really matter, so if a survival player manages to get one ¯\_(ツ)_/¯
anyway, there are creative vending blocks in v0.2.0
In reply to phygz:
Just tried it and the block works perfectly! Thank you so much! Two little bits of feedback for you:
-Currently you do not get the block back if you break it. Is that intentional?
-One small, but helpful addition for the future would be to add a 'pop' sound effect, like when you pick up an item signifying that the trade happened. (I think this is why I didn't think it was working before. I think it was, but since there was no sound effect, I didn't think anything was happening)
Great job on this though, this small mod adds so much in terms of giving reason to build shops and things!
In reply to TwistedSisler:
On breaking: for the creative version that's somewhat intentional though I'm not sure it makes sense. If the regular vending block isn't dropping that's a bug
On sounds: sounds like a good idea, https://todo.sr.ht/~vpzom/retail/3
Does this mod work in Forge?
In reply to pajero2077:
Versions for both Forge and Fabric are provided.
In reply to mattrock607:
Multiple outputs will probably happen, not sure about inputs though since that pulls from the held item
Where can we report issues?
The jar file is missing an icon. Add issues and homepage tag in the fabric.mod.json so we can open your curseforge page from the modmenu.
In reply to RDKRACZ:
just set up an issue tracker: https://todo.sr.ht/~vpzom/retail
Pog! a trade mod for forge 1.16, thank you so much!
Where is the 1.16 Forge version?
In reply to HeckInGoblin:
there isn't one, this is a fabric mod