Compare commits
No commits in common. "b2df6edeaf4b1240bc1c7fe8ed1d435bebb2b045" and "36c5b3c8ac1823605c2cda225051c0d7719c849e" have entirely different histories.
b2df6edeaf
...
36c5b3c8ac
7
api.lua
@ -689,16 +689,13 @@ end
|
|||||||
-- \param displayName Display name of cell
|
-- \param displayName Display name of cell
|
||||||
-- \param node Node which can be picked up with this cell
|
-- \param node Node which can be picked up with this cell
|
||||||
-- \returns nil
|
-- \returns nil
|
||||||
industrialtest.api.registerStorageCell=function(name,displayName,node,modname,color)
|
industrialtest.api.registerStorageCell=function(name,displayName,node,modname)
|
||||||
color = color or "#ffffffff"
|
|
||||||
if not modname then
|
if not modname then
|
||||||
modname="industrialtest"
|
modname="industrialtest"
|
||||||
end
|
end
|
||||||
minetest.register_craftitem("industrialtest:"..name.."_cell",{
|
minetest.register_craftitem("industrialtest:"..name.."_cell",{
|
||||||
description=S(displayName.." Cell"),
|
description=S(displayName.." Cell"),
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image=modname.."_"..name.."_cell.png",
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=color,
|
|
||||||
on_place=function(itemstack,user,pointed)
|
on_place=function(itemstack,user,pointed)
|
||||||
if pointed.type~="node" or not user or not user:is_player() then
|
if pointed.type~="node" or not user or not user:is_player() then
|
||||||
return nil
|
return nil
|
||||||
|
@ -31,14 +31,6 @@ local colors={
|
|||||||
sulfur="#b88805ff",
|
sulfur="#b88805ff",
|
||||||
tin="#ebd182ff",
|
tin="#ebd182ff",
|
||||||
uranium="#3b8c09ff",
|
uranium="#3b8c09ff",
|
||||||
-- fluid colors
|
|
||||||
lava="#ff5712ff",
|
|
||||||
water="#277bbcff",
|
|
||||||
river_water="#0ebfc2ff",
|
|
||||||
biomass="#2a8626ff",
|
|
||||||
biofuel="#4eba49ff",
|
|
||||||
coalfuel="#462228ff",
|
|
||||||
coolant="#188676ff"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Power storage items
|
-- Power storage items
|
||||||
@ -634,12 +626,12 @@ minetest.register_craft({
|
|||||||
{"",industrialtest.elementKeys.tinIngot,""}
|
{"",industrialtest.elementKeys.tinIngot,""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
industrialtest.api.registerStorageCell("water","Water",industrialtest.elementKeys.waterSource,nil,colors.water)
|
industrialtest.api.registerStorageCell("water","Water",industrialtest.elementKeys.waterSource)
|
||||||
if industrialtest.mtgAvailable then
|
if industrialtest.mtgAvailable then
|
||||||
industrialtest.api.registerStorageCell("river_water","River Water","default:river_water_source",nil,colors.river_water)
|
industrialtest.api.registerStorageCell("river_water","River Water","default:river_water_source")
|
||||||
end
|
end
|
||||||
|
|
||||||
industrialtest.api.registerStorageCell("lava","Lava",industrialtest.elementKeys.lavaSource,nil,colors.lava)
|
industrialtest.api.registerStorageCell("lava","Lava",industrialtest.elementKeys.lavaSource)
|
||||||
|
|
||||||
minetest.register_tool("industrialtest:uranium_cell",{
|
minetest.register_tool("industrialtest:uranium_cell",{
|
||||||
description=S("Uranium Cell"),
|
description=S("Uranium Cell"),
|
||||||
@ -647,9 +639,7 @@ minetest.register_tool("industrialtest:uranium_cell",{
|
|||||||
_industrialtest_placedInNuclearReactor=1,
|
_industrialtest_placedInNuclearReactor=1,
|
||||||
_industrialtest_nuclearReactorFuel=1
|
_industrialtest_nuclearReactorFuel=1
|
||||||
},
|
},
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image="industrialtest_uranium_cell.png",
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=colors.uranium,
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="shapeless",
|
type="shapeless",
|
||||||
@ -666,9 +656,7 @@ minetest.register_tool("industrialtest:coolant_cell",{
|
|||||||
_industrialtest_placedInNuclearReactor=1,
|
_industrialtest_placedInNuclearReactor=1,
|
||||||
_industrialtest_nuclearReactorCoolant=1
|
_industrialtest_nuclearReactorCoolant=1
|
||||||
},
|
},
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image="industrialtest_coolant_cell.png",
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=colors.coolant,
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="shaped",
|
type="shaped",
|
||||||
@ -693,9 +681,7 @@ end
|
|||||||
|
|
||||||
minetest.register_craftitem("industrialtest:bio_cell",{
|
minetest.register_craftitem("industrialtest:bio_cell",{
|
||||||
description=S("Bio Cell"),
|
description=S("Bio Cell"),
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image="industrialtest_bio_cell.png"
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=colors.biomass,
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="shapeless",
|
type="shapeless",
|
||||||
@ -708,9 +694,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craftitem("industrialtest:biofuel_cell",{
|
minetest.register_craftitem("industrialtest:biofuel_cell",{
|
||||||
description=S("Biofuel Cell"),
|
description=S("Biofuel Cell"),
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image="industrialtest_bio_cell.png",
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=colors.biofuel,
|
|
||||||
groups={
|
groups={
|
||||||
_industrialtest_fuel=1
|
_industrialtest_fuel=1
|
||||||
},
|
},
|
||||||
@ -725,9 +709,7 @@ industrialtest.api.registerExtractorRecipe({
|
|||||||
|
|
||||||
minetest.register_craftitem("industrialtest:hydrated_coal_cell",{
|
minetest.register_craftitem("industrialtest:hydrated_coal_cell",{
|
||||||
description=S("Hydrated Coal Cell"),
|
description=S("Hydrated Coal Cell"),
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image="industrialtest_hydrated_coal_cell.png"
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=colors.coal,
|
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type="shapeless",
|
type="shapeless",
|
||||||
@ -740,9 +722,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craftitem("industrialtest:coalfuel_cell",{
|
minetest.register_craftitem("industrialtest:coalfuel_cell",{
|
||||||
description=S("Coalfuel Cell"),
|
description=S("Coalfuel Cell"),
|
||||||
inventory_image="industrialtest_cell_fluid.png",
|
inventory_image="industrialtest_coalfuel_cell.png",
|
||||||
inventory_overlay="industrialtest_cell_casing.png",
|
|
||||||
color=colors.coalfuel,
|
|
||||||
groups={
|
groups={
|
||||||
_industrialtest_fuel=1
|
_industrialtest_fuel=1
|
||||||
},
|
},
|
||||||
|
BIN
textures/industrialtest_bio_cell.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
textures/industrialtest_biofuel_cell.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 121 B |
BIN
textures/industrialtest_coalfuel_cell.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
textures/industrialtest_coolant_cell.png
Normal file
After Width: | Height: | Size: 863 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 815 B |
BIN
textures/industrialtest_hydrated_coal_cell.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
textures/industrialtest_lava_cell.png
Normal file
After Width: | Height: | Size: 867 B |
BIN
textures/industrialtest_river_water_cell.png
Normal file
After Width: | Height: | Size: 878 B |
BIN
textures/industrialtest_uranium_cell.png
Normal file
After Width: | Height: | Size: 859 B |
BIN
textures/industrialtest_water_cell.png
Normal file
After Width: | Height: | Size: 862 B |