forked from mrkubax10/industrialtest
Make it possible to add textures for other sides for machines
This commit is contained in:
parent
0e036c8208
commit
baf2e02f12
18
machines.lua
18
machines.lua
@ -343,13 +343,12 @@ local function registerSimpleElectricItemProcessor(config)
|
|||||||
definition={
|
definition={
|
||||||
description=S(config.displayName),
|
description=S(config.displayName),
|
||||||
tiles={
|
tiles={
|
||||||
"industrialtest_machine_block.png",
|
"industrialtest_machine_block.png"..(config.customTopTexture and "^industrialtest_"..config.name.."_top.png" or ""),
|
||||||
"industrialtest_machine_block.png",
|
"industrialtest_machine_block.png"..(config.customBottomTexture and "^industrialtest_"..config.name.."_bottom.png" or ""),
|
||||||
"industrialtest_machine_block.png",
|
"industrialtest_machine_block.png"..(config.customRightTexture and "^industrialtest_"..config.name.."_right.png" or ""),
|
||||||
"industrialtest_machine_block.png",
|
"industrialtest_machine_block.png"..(config.customLeftTexture and "^industrialtest_"..config.name.."_left.png" or ""),
|
||||||
"industrialtest_machine_block.png",
|
"industrialtest_machine_block.png"..(config.customBackTexture and "^industrialtest_"..config.name.."_back.png" or ""),
|
||||||
"industrialtest_machine_block.png^industrialtest_"..config.name.."_front.png",
|
"industrialtest_machine_block.png"..(config.customFrontTexture and "^industrialtest_"..config.name.."_front.png" or "")
|
||||||
"industrialtest_machine_block.png"
|
|
||||||
},
|
},
|
||||||
paramtype2="facedir",
|
paramtype2="facedir",
|
||||||
legacy_facedir_simple=true,
|
legacy_facedir_simple=true,
|
||||||
@ -746,6 +745,7 @@ minetest.register_craft({
|
|||||||
registerSimpleElectricItemProcessor({
|
registerSimpleElectricItemProcessor({
|
||||||
name="electric_furnace",
|
name="electric_furnace",
|
||||||
displayName="Electric Furnace",
|
displayName="Electric Furnace",
|
||||||
|
customFrontTexture=true,
|
||||||
capacity=416,
|
capacity=416,
|
||||||
flow=industrialtest.api.lvPowerFlow,
|
flow=industrialtest.api.lvPowerFlow,
|
||||||
opPower=60,
|
opPower=60,
|
||||||
@ -774,6 +774,7 @@ minetest.register_craft({
|
|||||||
registerSimpleElectricItemProcessor({
|
registerSimpleElectricItemProcessor({
|
||||||
name="macerator",
|
name="macerator",
|
||||||
displayName="Macerator",
|
displayName="Macerator",
|
||||||
|
customFrontTexture=true,
|
||||||
capacity=1200,
|
capacity=1200,
|
||||||
flow=industrialtest.api.lvPowerFlow,
|
flow=industrialtest.api.lvPowerFlow,
|
||||||
opPower=100,
|
opPower=100,
|
||||||
@ -793,6 +794,7 @@ minetest.register_craft({
|
|||||||
registerSimpleElectricItemProcessor({
|
registerSimpleElectricItemProcessor({
|
||||||
name="compressor",
|
name="compressor",
|
||||||
displayName="Compressor",
|
displayName="Compressor",
|
||||||
|
customFrontTexture=true,
|
||||||
capacity=1400,
|
capacity=1400,
|
||||||
flow=industrialtest.api.lvPowerFlow,
|
flow=industrialtest.api.lvPowerFlow,
|
||||||
opPower=120,
|
opPower=120,
|
||||||
@ -812,6 +814,7 @@ minetest.register_craft({
|
|||||||
registerSimpleElectricItemProcessor({
|
registerSimpleElectricItemProcessor({
|
||||||
name="extractor",
|
name="extractor",
|
||||||
displayName="Extractor",
|
displayName="Extractor",
|
||||||
|
customFrontTexture=true,
|
||||||
capacity=900,
|
capacity=900,
|
||||||
flow=industrialtest.api.lvPowerFlow,
|
flow=industrialtest.api.lvPowerFlow,
|
||||||
opPower=100,
|
opPower=100,
|
||||||
@ -830,6 +833,7 @@ minetest.register_craft({
|
|||||||
registerSimpleElectricItemProcessor({
|
registerSimpleElectricItemProcessor({
|
||||||
name="recycler",
|
name="recycler",
|
||||||
displayName="Recycler",
|
displayName="Recycler",
|
||||||
|
customTopTexture=true,
|
||||||
capacity=80,
|
capacity=80,
|
||||||
flow=industrialtest.api.lvPowerFlow,
|
flow=industrialtest.api.lvPowerFlow,
|
||||||
opPower=40,
|
opPower=40,
|
||||||
|
Loading…
Reference in New Issue
Block a user