The the vending mod adds vending machines and depositing machines (deposit boxes) to Minetest.
Vending and depositing machines allow for players to buy and sell items out of locked chests. A mix of Vending machines and depositing machines can stack with multiple chests to create an automated shop. The machines can even limit how many times they can be used: this can be used to make limited-quantity sales.

The mod is on github, and is now running on mt1.gameboom.net 30000.
Dependencies:
money2 download (replaces money mod)|default
Downloads:
Version 1.02
Version 1.01
Version 1.00
License:
LGPL 2.1 for code
CC-BY 3.0/CC-BY-SA 3.0/GPL 3.0/GPL 2.0 for sounds
LGPL 2.1 for textures
Crafting:
A vending and a depositing machine can be crafted using the following recipes:


This recipe uses wood and steel ingots, and is similar to the locked chest recipe.
Connecting Machines and Chests
Vending machines and locked chests can be stacked together in any order, as long as the machines and chests all stack in a line. You can even hide your chests from your customers by embedding them in a wall or the floor. A stack of machines looks like this:

Configuring a machine:
To configure a machine, right click on the machine. A dialog box will open up. You must enter 3 numbers to configure the machine. The first number is the number of items to sell, the second number is the price to sell them at, and the third number is the sale limit. Set the third number to 0 to make an unlimited machine. The machines will search for connected locked chests, and will sell the first type of item found in them.

Using a Machine
Hold your cursor over the machine to see what it is selling, and for how much money. To use the machine, you must simply punch the box. If it is properly configured, and both parties have enough money, space, and inventory, then you will make a purchase.