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={
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user