forked from minetest-mods/global_exchange
Craft recipe update
This commit is contained in:
parent
81da10ae6c
commit
e89f8878f7
10
atm.lua
10
atm.lua
|
@ -204,3 +204,13 @@ minetest.register_node("global_exchange:atm", {
|
|||
minetest.show_formspec(p_name, atm_form, main_menu)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "global_exchange:atm",
|
||||
recipe = {
|
||||
{ "default:stone", "default:stone", "default:stone" },
|
||||
{ "default:stone", "default:gold_ingot", "default:stone" },
|
||||
{ "default:stone", "default:stone", "default:stone" },
|
||||
}
|
||||
})
|
||||
|
|
|
@ -126,8 +126,8 @@ minetest.register_node("global_exchange:mailbox", {
|
|||
minetest.register_craft( {
|
||||
output = "global_exchange:mailbox",
|
||||
recipe = {
|
||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
||||
{ "default:steel_ingot", "default:gold_ingot", "default:steel_ingot" },
|
||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
||||
{ "default:stone", "default:gold_ingot", "default:stone" },
|
||||
{ "default:stone", "default:chest", "default:stone" },
|
||||
{ "default:stone", "default:stone", "default:stone" },
|
||||
}
|
||||
})
|
||||
|
|
|
@ -516,7 +516,8 @@ local function handle_own_orders(player, formname, fields)
|
|||
end
|
||||
end
|
||||
|
||||
local succ, err = exchange:cancel_order(p_name, row.Id)
|
||||
local succ, err =
|
||||
exchange:cancel_order(p_name, row.Id, row.Type, row.Item, row.Amount, row.Rate)
|
||||
if succ then
|
||||
table.remove(results, idx)
|
||||
if row.Type == "sell" then
|
||||
|
@ -582,3 +583,13 @@ minetest.register_node("global_exchange:exchange", {
|
|||
show_main(p_name)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "global_exchange:exchange",
|
||||
recipe = {
|
||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
||||
{ "default:mese_crystal", "default:steel_ingot", "default:diamond" },
|
||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user