diff --git a/craftitems.lua b/craftitems.lua index d0135ac..f765877 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -416,6 +416,49 @@ industrialtest.api.registerResourceDust("sulfur","Sulfur",{},"#e3ff33ff",false) industrialtest.api.registerResourceDust("lead","Lead",{},"#eafef8ff",false) -- TODO: Add lead ore +minetest.register_craftitem("industrialtest:hydrated_coal_dust",{ + description=S("Hydrated Coal Dust"), + inventory_image="industrialtest_hydrated_coal_dust.png" +}) +minetest.register_craft({ + type="shaped", + output="industrialtest:hydrated_coal_dust 8", + recipe={ + {"industrialtest:coal_dust","industrialtest:coal_dust","industrialtest:coal_dust"}, + {"industrialtest:coal_dust",industrialtest.elementKeys.bucketWithWater,"industrialtest:coal_dust"}, + {"industrialtest:coal_dust","industrialtest:coal_dust","industrialtest:coal_dust"} + }, + replacements={ + { + industrialtest.elementKeys.bucketWithWater, + industrialtest.elementKeys.bucket + } + } +}) +minetest.register_craft({ + type="shapeless", + output="industrialtest:hydrated_coal_dust", + recipe={ + "industrialtest:coal_dust", + industrialtest.elementKeys.bucketWithWater + }, + replacements={ + { + industrialtest.elementKeys.bucketWithWater, + industrialtest.elementKeys.bucket + } + } +}) + +minetest.register_craftitem("industrialtest:hydrated_coal",{ + description=S("Hydrated Coal"), + inventory_image="industrialtest_hydrated_coal.png" +}) +industrialtest.api.registerCompressorRecipe({ + output="industrialtest:hydrated_coal", + recipe="industrialtest:hydrated_coal_dust" +}) + -- Plates industrialtest.api.registerPlate("bronze_plate",S("Bronze Plate"),{ { @@ -570,6 +613,34 @@ industrialtest.api.registerExtractorRecipe({ time=4 }) +minetest.register_craftitem("industrialtest:hydrated_coal_cell",{ + description=S("Hydrated Coal Cell"), + inventory_image="industrialtest_hydrated_coal_cell.png" +}) +minetest.register_craft({ + type="shapeless", + output="industrialtest:hydrated_coal_cell", + recipe={ + "industrialtest:empty_cell", + "industrialtest:hydrated_coal" + } +}) + +minetest.register_craftitem("industrialtest:coalfuel_cell",{ + description=S("Coalfuel Cell"), + inventory_image="industrialtest_coalfuel_cell.png", + groups={ + _industrialtest_fuel=1 + }, + _industrialtest_fuelAmount=1000, + _industrialtest_emptyVariant="industrialtest:empty_cell" +}) +industrialtest.api.registerExtractorRecipe({ + output="industrialtest:coal_cell", + recipe="industrialtest:hydrated_coal_cell", + time=4 +}) + -- Other items minetest.register_craftitem("industrialtest:electronic_circuit",{ description=S("Electronic Circuit"),