compat_xdecor.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. if minetest.get_modpath("xdecor") then
  2. minetest.register_craft({
  3. output = "xpanes:papyrus 2",
  4. recipe = {
  5. { "", "farming:string", "" },
  6. { "farming:string", "xpanes:bamboo_frame", "farming:string" },
  7. }
  8. })
  9. minetest.register_craft({
  10. output = "xpanes:bamboo_frame",
  11. recipe = { { "xpanes:papyrus", "xpanes:papyrus", }, }
  12. })
  13. -- xdecor compability
  14. minetest.register_craft({
  15. output = "xdecor:packed_ice 2",
  16. recipe = { { "mtg_plus:ice_block", "mtg_plus:ice_block", "mtg_plus:ice_block" },
  17. { "mtg_plus:ice_block", "", "mtg_plus:ice_block" },
  18. { "mtg_plus:ice_block", "mtg_plus:ice_block", "mtg_plus:ice_block" }, },
  19. })
  20. minetest.register_craft({
  21. output = "mtg_plus:ice_tile16",
  22. recipe = { { "xdecor:packed_ice", "xdecor:packed_ice" },
  23. { "xdecor:packed_ice", "xdecor:packed_ice" }, },
  24. })
  25. -- Alternate ice brick crafting recipe for xdecor compability
  26. minetest.register_craft({
  27. output = "mtg_plus:ice_brick 4",
  28. recipe = { { "", "default:ice", "default:ice" },
  29. { "default:ice", "default:ice", "" } },
  30. })
  31. minetest.register_craft({
  32. output = "mtg_plus:ice_brick 4",
  33. recipe = { { "default:ice", "default:ice", "" },
  34. { "", "default:ice", "default:ice" } },
  35. })
  36. else
  37. -- Normal ice brick crafting recipe
  38. minetest.register_craft({
  39. output = "mtg_plus:ice_brick 4",
  40. recipe = { { "default:ice", "default:ice" },
  41. { "default:ice", "default:ice" } },
  42. })
  43. end