extras.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. local S = minetest.get_translator("mtg_plus")
  2. -- Add additional crafting recipes and nodes if particular mods were detected
  3. -- moreblocks extras
  4. if minetest.get_modpath("moreblocks") then
  5. minetest.register_craft({
  6. type = "shapeless",
  7. output = "default:glass",
  8. recipe = {"mtg_plus:dirty_glass", "moreblocks:sweeper"}
  9. })
  10. minetest.register_craft({
  11. type = "shapeless",
  12. output = "moreblocks:clean_glass",
  13. recipe = {"mtg_plus:dirty_glass", "moreblocks:sweeper", "moreblocks:sweeper"}
  14. })
  15. minetest.register_craft({
  16. output = "mtg_plus:dirty_glass",
  17. recipe = {
  18. {"default:dirt"},
  19. {"moreblocks:clean_glass"}
  20. }
  21. })
  22. minetest.register_craft({
  23. type = "shapeless",
  24. output = "mtg_plus:ice_window",
  25. recipe = { "mtg_plus:ice_tile4", "moreblocks:sweeper" },
  26. })
  27. end
  28. -- furniture extras
  29. if minetest.get_modpath("furniture") then
  30. furniture.register_wooden("mtg_plus:goldwood", {
  31. description = S("Goldwood"),
  32. description_chair = S("Goldwood Chair"),
  33. description_stool = S("Goldwood Stool"),
  34. description_table = S("Goldwood Table"),
  35. })
  36. furniture.register_stone("mtg_plus:jungle_cobble", {
  37. description = S("Jungle Cobblestone"),
  38. description_stool = S("Jungle Cobblestone Stool"),
  39. description_table = S("Jungle Cobblestone Table"),
  40. })
  41. furniture.register_stone("mtg_plus:sandstone_cobble", {
  42. description = S("Cobbled Sandstone"),
  43. description_stool = S("Cobbled Sandstone Stool"),
  44. description_table = S("Cobbled Sandstone Table"),
  45. })
  46. furniture.register_stone("mtg_plus:desert_sandstone_cobble", {
  47. description = S("Cobbled Desert Sandstone"),
  48. description_stool = S("Cobbled Desert Sandstone Stool"),
  49. description_table = S("Cobbled Desert Sandstone Table"),
  50. })
  51. furniture.register_stone("mtg_plus:silver_sandstone_cobble", {
  52. description = S("Cobbled Silver Sandstone"),
  53. description_stool = S("Cobbled Silver Sandstone Stool"),
  54. description_table = S("Cobbled Silver Sandstone Table"),
  55. })
  56. furniture.register_stone("mtg_plus:gravel_cobble", {
  57. description = S("Cobbled Gravel"),
  58. description_stool = S("Cobbled Gravel Stool"),
  59. description_table = S("Cobbled Gravel Table"),
  60. })
  61. end