dirt sieving

This commit is contained in:
Andrey Stepanov 2024-12-04 23:37:42 +05:00
parent 5988b97950
commit 2df21c270c
Signed by: Koldun
GPG Key ID: 53DE683337F5D25F

View File

@ -65,3 +65,33 @@ 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"})
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