init.lua 578 B

12345678910111213141516171819202122232425
  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(
  9. player,
  10. context,
  11. [[
  12. list[current_player;craft;1.75,0.5;3,3;]
  13. list[current_player;craftpreview;5.75,1.5;1,1;]
  14. image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
  15. listring[current_player;main]
  16. listring[current_player;craft]
  17. ]],
  18. true
  19. )
  20. end,
  21. })