Github repo:https://github.com/arsdragonfly/advanced_market
License:CC0
Dependencies:money,locked_signs
Quick start:
Dig some dirt.
Hold the dirt in your hand.
/am sell 5
(sell these dirt at the price of 5$ each dirt block)
/am buy default:dirt 1 5
(buy 1 dirt block at the price of 5$, in this case the deal is then concluded)
/am refreshbuffer
(the dirt is in your "buffer", and you use this command to put it back into your inventory.)
Buy low , sell high and maybe become a monopoly! :D
This mod is still WIP and has many bugs to be fixed :P
New feature
Added vieworder (/am vieworder)
Added cancelorder (/am cancelorder <order_number>
Added viewlog (/am viewlog)
Added getname (/am getname) to get the engine name of the item you're holding, like default:dirt.
A diagram to help you understand all the stuff:
Data structure:
Spoiler
Spoiler
This mod allows you to trade in minetest as if you were in a stock market. Dependencies: money locked_sign
Howto:
Command can be /am, /amarket or /advanced_market Sell the stuff you're holding: /am sell PRICE e.g. /am sell 5
Buy some stuff: /am buy ITEM AMOUNT PRICE e.g. /am buy default:dirt 1 5
View available orders of one item: /am viewstack ITEM e.g. /am viewstack default:dirt
View your buffer: /am viewbuffer
Get the engine name of wielditem: /am getname
View the log: /am viewlog
View your orders: /am vieworder (output will be like: ORDERNUMBER | blah blah blah)
Cancel an order: /am cancelorder ORDERNUMBER e.g. /am cancelorder 1
Move all the stuff in your buffer into your inventory: /am refreshbuffer
Once the deal is concluded, your money/item will be put into your buffer. use /am refreshbuffer to get them back.
arsdragonfly@gmail.com