diff --git a/techage.lua b/techage.lua index 0854f78..80fe12d 100644 --- a/techage.lua +++ b/techage.lua @@ -64,4 +64,34 @@ minetest.register_craft({ techage.add_grinder_recipe({input="multidecor:consolidated_oil", output="techage:plastic_granules"}) techage.add_grinder_recipe({input="ethereal:wild_onion_plant 10", output="dye:white"}) -techage.add_grinder_recipe({input="default:ice", output="default:snow 3"}) \ No newline at end of file +techage.add_grinder_recipe({input="default:ice", output="default:snow 3"}) + +local function mod_loaded(name) + return (minetest.get_modpath(name) ~= nil) +end + +local function sieve_dirt() + return ItemStack("default:sand") +end + +techage.register_sieving_recipe("default:dirt", sieve_dirt) +techage.register_sieving_recipe("default:dirt_with_coniferous_litter", sieve_dirt) +techage.register_sieving_recipe("default:dirt_with_dry_grass", sieve_dirt) +techage.register_sieving_recipe("default:dirt_with_grass", sieve_dirt) +techage.register_sieving_recipe("default:dirt_with_rainforest_litter", sieve_dirt) +techage.register_sieving_recipe("default:dirt_with_snow", sieve_dirt) +techage.register_sieving_recipe("default:dry_dirt", sieve_dirt) +techage.register_sieving_recipe("default:dry_dirt_with_dry_grass", sieve_dirt) + +if mod_loaded("ethereal") then + techage.register_sieving_recipe("ethereal:bamboo_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:cold_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:crystal_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:dry_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:fiery_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:gray_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:grove_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:jungle_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:mushroom_dirt", sieve_dirt) + techage.register_sieving_recipe("ethereal:prairie_dirt", sieve_dirt) +end \ No newline at end of file