Minecraft – Trading machine with item selection

minecraft-feed-the-beastminecraft-java-edition

I'm trying to build a trading machine in SMP where players should be able to pay a fixed price to get a item they selected (in my case music discs). My setup looks like this:
front
back

It should work like this:

  • a player selects a item with the "up" and "down" buttons
  • the player puts the "payment" (for example 10 diamonds) in the ender chest
  • the diamonds are transferred in another chest and the item the player selected appears in the ender chest

The items are stored in an separate room where the bundled cable goes. The other ender chest is also there.

My questions are:

  1. What could I use as indicator which item is selected?
  2. What engines/wiring/pipes would be needed to pull the diamonds out of the chest, check if the right amount is paid, and put the selected item in the chest?

The modpack I use is Direwolf20.

Best Answer

You could use computers to display and select which item is chosen. For the logic of the system itself you could use turtles (as they interface very well with computers thanks to wireless).

For example, the display could look something like this:

select the item you wish to buy:
1: music disc (5d)
2: lapatron crystal (10d) 
3: note block (2d)
4: thaumium ingot (3d)
input the selection number: _

then you would have a turtle who receives the input number, matches it to the item ID. and calls a pull (IIRC) command to the inventory.

I'm sorry that this sounds incredibly complicated and not very descriptive, I don't have FTB on hand to test simpler solutions myself.