2
0

init.lua 545 B

12345678910111213141516171819
  1. -- sfinv/init.lua
  2. dofile(minetest.get_modpath("sfinv") .. "/api.lua")
  3. -- Load support for MT game translation.
  4. local S = minetest.get_translator("sfinv")
  5. sfinv.register_page("sfinv:crafting", {
  6. title = S("Crafting"),
  7. get = function(self, player, context)
  8. return sfinv.make_formspec(player, context, [[
  9. list[current_player;craft;1.75,0.5;3,3;]
  10. list[current_player;craftpreview;5.75,1.5;1,1;]
  11. image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
  12. listring[current_player;main]
  13. listring[current_player;craft]
  14. ]], true)
  15. end
  16. })