2019-09-10 19:09:51 +02:00
|
|
|
-- sfinv/init.lua
|
|
|
|
|
2016-07-04 20:19:39 +02:00
|
|
|
dofile(minetest.get_modpath("sfinv") .. "/api.lua")
|
|
|
|
|
2019-09-18 20:38:27 +02:00
|
|
|
-- Load support for MT game translation.
|
|
|
|
local S = minetest.get_translator("sfinv")
|
|
|
|
|
2016-07-04 20:19:39 +02:00
|
|
|
sfinv.register_page("sfinv:crafting", {
|
2019-09-18 20:38:27 +02:00
|
|
|
title = S("Crafting"),
|
2016-07-04 20:19:39 +02:00
|
|
|
get = function(self, player, context)
|
|
|
|
return sfinv.make_formspec(player, context, [[
|
|
|
|
list[current_player;craft;1.75,0.5;3,3;]
|
|
|
|
list[current_player;craftpreview;5.75,1.5;1,1;]
|
2019-08-13 22:57:32 +02:00
|
|
|
image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
|
2016-07-04 20:19:39 +02:00
|
|
|
listring[current_player;main]
|
|
|
|
listring[current_player;craft]
|
|
|
|
]], true)
|
|
|
|
end
|
|
|
|
})
|