init.lua 780 B

12345678910111213141516171819202122232425
  1. dofile(minetest.get_modpath("sfinv") .. "/api.lua")
  2. local S = minetest.get_translator("sfinv")
  3. sfinv.register_page("sfinv:crafting", {
  4. title = S("Crafting"),
  5. get = function(self, player, context)
  6. return sfinv.make_formspec(player, context, [[
  7. list[current_player;craft;1.75,0.5;3,3;]
  8. list[current_player;craftpreview;5.75,1.5;1,1;]
  9. image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]
  10. listring[current_player;main]
  11. listring[current_player;craft]
  12. image[0,4.7;1,1;gui_hb_bg.png]
  13. image[1,4.7;1,1;gui_hb_bg.png]
  14. image[2,4.7;1,1;gui_hb_bg.png]
  15. image[3,4.7;1,1;gui_hb_bg.png]
  16. image[4,4.7;1,1;gui_hb_bg.png]
  17. image[5,4.7;1,1;gui_hb_bg.png]
  18. image[6,4.7;1,1;gui_hb_bg.png]
  19. image[7,4.7;1,1;gui_hb_bg.png]
  20. ]], true)
  21. end
  22. })