From baf2e02f12e0868cb7d944bcaf75521226277f60 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Thu, 23 Mar 2023 10:54:06 +0100 Subject: [PATCH] Make it possible to add textures for other sides for machines --- machines.lua | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/machines.lua b/machines.lua index a4b67b1..adc52be 100644 --- a/machines.lua +++ b/machines.lua @@ -343,13 +343,12 @@ local function registerSimpleElectricItemProcessor(config) definition={ description=S(config.displayName), tiles={ - "industrialtest_machine_block.png", - "industrialtest_machine_block.png", - "industrialtest_machine_block.png", - "industrialtest_machine_block.png", - "industrialtest_machine_block.png", - "industrialtest_machine_block.png^industrialtest_"..config.name.."_front.png", - "industrialtest_machine_block.png" + "industrialtest_machine_block.png"..(config.customTopTexture and "^industrialtest_"..config.name.."_top.png" or ""), + "industrialtest_machine_block.png"..(config.customBottomTexture and "^industrialtest_"..config.name.."_bottom.png" or ""), + "industrialtest_machine_block.png"..(config.customRightTexture and "^industrialtest_"..config.name.."_right.png" or ""), + "industrialtest_machine_block.png"..(config.customLeftTexture and "^industrialtest_"..config.name.."_left.png" or ""), + "industrialtest_machine_block.png"..(config.customBackTexture and "^industrialtest_"..config.name.."_back.png" or ""), + "industrialtest_machine_block.png"..(config.customFrontTexture and "^industrialtest_"..config.name.."_front.png" or "") }, paramtype2="facedir", legacy_facedir_simple=true, @@ -746,6 +745,7 @@ minetest.register_craft({ registerSimpleElectricItemProcessor({ name="electric_furnace", displayName="Electric Furnace", + customFrontTexture=true, capacity=416, flow=industrialtest.api.lvPowerFlow, opPower=60, @@ -774,6 +774,7 @@ minetest.register_craft({ registerSimpleElectricItemProcessor({ name="macerator", displayName="Macerator", + customFrontTexture=true, capacity=1200, flow=industrialtest.api.lvPowerFlow, opPower=100, @@ -793,6 +794,7 @@ minetest.register_craft({ registerSimpleElectricItemProcessor({ name="compressor", displayName="Compressor", + customFrontTexture=true, capacity=1400, flow=industrialtest.api.lvPowerFlow, opPower=120, @@ -812,6 +814,7 @@ minetest.register_craft({ registerSimpleElectricItemProcessor({ name="extractor", displayName="Extractor", + customFrontTexture=true, capacity=900, flow=industrialtest.api.lvPowerFlow, opPower=100, @@ -830,6 +833,7 @@ minetest.register_craft({ registerSimpleElectricItemProcessor({ name="recycler", displayName="Recycler", + customTopTexture=true, capacity=80, flow=industrialtest.api.lvPowerFlow, opPower=40,