Implement Coal Cell and items required to make it

Coal Fuel can be used to fill Fuel Can or Jetpack
This commit is contained in:
mrkubax10 2024-01-17 19:19:19 +01:00
parent 1e72f07df1
commit 87f0a65f21

View File

@ -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"),