1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-17 23:38:14 +01:00
minetest_game/mods/sfinv/init.lua

20 lines
545 B
Lua
Raw Normal View History

-- sfinv/init.lua
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")
sfinv.register_page("sfinv:crafting", {
2019-09-18 20:38:27 +02:00
title = S("Crafting"),
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;]
image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
listring[current_player;main]
listring[current_player;craft]
]], true)
end
})