2
0

init.lua 741 B

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