compactor_recipes.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. local compress_recipes = {
  2. {source = 'default:cobble', sink = 'moreblocks:cobble_compressed'},
  3. {source = 'default:bronze_ingot', sink = 'default:bronzeblock'},
  4. {source = 'default:copper_ingot', sink = 'default:copperblock'},
  5. {source = 'default:gold_ingot', sink = 'default:goldblock'},
  6. {source = 'default:steel_ingot', sink = 'default:steelblock'},
  7. {source = 'default:tin_ingot', sink = 'default:tinblock'},
  8. {source = 'default:coal_lump', sink = 'default:coalblock'},
  9. {source = 'default:diamond', sink = 'default:diamondblock'},
  10. {source = 'default:mese_crystal', sink = 'default:mese'},
  11. {source = 'default:mese_fragment', sink = 'default:mese_crystal'},
  12. {source = 'default:obsidian_shard', sink = 'default:obsidian'},
  13. {source = 'default:clay_brick', sink = 'default:brick', amount=4},
  14. {source = 'default:clay_lump', sink = 'default:clay', amount=4},
  15. {source = 'basic_materials:brass_ingot', sink = 'basic_materials:brass_block'},
  16. {source = 'group:grass', sink = 'charcoals:biochar_raw',amount=3},
  17. {source = 'default:dry_shrub', sink = 'charcoals:biochar_raw',amount=3},
  18. {source = 'group:leaves', sink = 'charcoals:biochar_raw',amount=2},
  19. {source = 'technic:carbon_steel_ingot', sink = 'technic:carbon_steel_block'},
  20. {source = 'technic:stainless_steel_ingot', sink = 'technic:stainless_steel_block'},
  21. {source = 'technic:chromium_ingot', sink = 'technic:chromium_block'},
  22. {source = 'technic:lead_ingot', sink = 'technic:lead_block'},
  23. {source = 'technic_aluminum:aluminum_ingot', sink = 'technic_aluminum:aluminum_block'},
  24. {source = 'technic:zinc_ingot', sink = 'technic:zinc_block'},
  25. {source = 'farming:wheat', sink = 'farming:straw', amount=3},
  26. {source = 'farming:melon_slice', sink = 'farming:melon_8', amount=4},
  27. {source = 'farming:salt', sink = 'farming:salt_crystal'},
  28. {source = 'farming:hemp_block', sink = 'farming:hemp_fibre'},
  29. {source = 'ethereail:crystal_ingot', sink = 'ethereal:crystal_block'},
  30. {source = 'moreores:mithril_ingot', sink = 'moreores:mithril_block'},
  31. {source = 'moreores:silver_ingot', sink = 'moreores:silver_block'},
  32. {source = 'technic_aluminum:aluminum_ingot', sink = 'technic_aluminum:aluminum_block'},
  33. }
  34. if not minetest.get_modpath('compactor') then
  35. for _,v in pairs(compress_recipes) do
  36. if (minetest.registered_items[v.sink] ~= nil) and (minetest.registered_items[v.source] ~= nil) then
  37. local amount = v.amount or 9
  38. technic_farming.register_compactor_recipe({input = {v.source.." "..amount}, output = v.sink})
  39. end
  40. end
  41. end