Mint & Automatic Commerce Machines
License
GPLv2
Version
1.25 Stable
Images
Some images were taken from http://www.iconarchive.com/
Sounds
All sounds were taken from http://www.freesound.org/
Dependencies
default
Minetest version
0.4.4 or later
Download
https://www.dropbox.com/s/rhvnh0yjzg3yx4o/mint.zip
Description
This mod adds coin minting to the game. Everyone can mint coins from gold ingots. The value of the money is guaranteed by the relative value of each node. Gold was choosen because of its relative rarity to other materials. There are three kinds of coins, Minetoon Pences, Shillings and Pounds. One Minetoon Pence is worth the value of 1/729 of a gold ingot. A Minetoon Shilling is worth the value of 1/81 of a gold ingot. While a Minetoon Pound is worth 1/9 of the value of a gold ingot. All values are convertible, you can make Shillings from Pounds, Shillings from Pences, and vice versa. Gold can be converted to Pounds and Pounds can be converted back to gold. This was done in order to avoid inflation.
The mod adds two new machines intended to work with said coins. The first one is an automatic selling machine, wich can sell items and receive minetoon money automatically. The other is an automatic buying machine, that can automatically pay money for items that the owner of the machine intends to buy. Those two machines can simplify the administration of a minetest shop, because they can work while the shop owner is offline.
The system is based on a full gold standard, where the value of everything is relative to gold. Coins being convertible back to gold allows removal of coins out of circulation. A gold stardard is well suited for a descentralized minting system, because coins dont lose their relative value over time.
Automatic Selling Machine operation
Shop owner should feed the machine with the item to be sold. The machine formspec is a default locket-chest invetory with the addition of a price field. Shop owner should set his price in that field and press enter to close the form. Any item inside the machine will be sold by this price. The price is shown on the info text of the machine. Usually only one kind of item should be stored in the machine, because the consumer can get confused about wich item will be sold next. The machine selects the next item to be sold by scanning the inventory from left to right, top to bottom. Coins are ignored in that process (you cant sell coins). To use the machine the player should punch it while having enought money in his inventory. The machine will automatically remove the price (in coins) from player inventory and add to its own inventory. The item sold is automatically stored into the player inventory, ending the transaction. If the player has not enough coins or the machine has no item to sell, or in the event any of both dont have enough storage space in their respective inventories, the machine will abort the transaction, sound a warning and show the error message at player inventory.
Automatic Buying Machine operation
This machine is quite similar to the ASM. The exception is that its operation is reversed. The shop owner should open the machine formspec and set both price and item. Item should be a fully qualified minetest item name (like default:dirt). When the player punchs the machine it will remove the item from the player and give him the ammount of coins set in the price field. In the event of error, a text will be shown in player chat and a sound will be played.
Recipes
Gold Ingots to Pounds

Pounds to Gold Ingots

Pounds to Shillings

Shillings to Pounds

Pence to Shillings

Shillings to Pence

Automatic Selling Machine

Automatic Buying Machine

News:
Added banking system. There are two new machines, bank draw machine and bank deposit machine. They allow money to be transfered to and from your bank account. No time to make the recipe screenshot so there goes the code :
Code: Select all
-- Drawing machine
minetest.register_craft({
output = '"mint:draw" 1',
recipe = {
{ "default:wood", "default:wood", "default:wood" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:steel_ingot", "default:steel_ingot", "default:wood" }
}
})
-- Deposit machine
minetest.register_craft({
output = '"mint:deposit" 1',
recipe = {
{ "default:wood", "default:wood", "default:wood" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:wood", "default:steel_ingot", "default:steel_ingot" }
}
})
Added money transfer system. You can program single or recurrent money transfers between player accounts. Commands :
/bank
shows your current bank account balance
/transfer <toaccount> <ammount> <repeating> <interval>
programs a money transfer between two accounts.
<toaccount> is the account to wich to transfer money
<ammount> is the ammount of pences to transfer each time
<repeating> is the number of times to do the transfer (-1 to a infinite number of transfers)
<interval> is the interval between each transfer
/deletetransfer <id>
deletes a programmed transaction with id <id>
/listtransfers
lists all transfers programmed by the user
TODO:
- Add load/save bank scheduler.
- Add stock exchange.
- Add support for paid protector nodes (I need information on how to interface to area protection mods)
- Add support for offline mailboxes (I need information on how to interface to mailbox mods)