New texturing setup, Fix paramtype2 assignment for future versions

This commit is contained in:
Evert Prants 2020-04-28 20:52:57 +03:00
parent 6eb44a09c5
commit e8fe4a09e5
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
55 changed files with 51 additions and 42 deletions

View File

@ -5,8 +5,9 @@ minetest.register_node("elepower_machines:accumulator", {
description = "Water Accumulator",
groups = {fluid_container = 1, oddly_breakable_by_hand = 1, cracky = 1},
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png", "elepower_machine_accumulator.png",
"elepower_machine_accumulator.png", "elepower_machine_accumulator.png", "elepower_machine_accumulator.png",
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png", "elepower_machine_side.png^elepower_machine_accumulator.png",
"elepower_machine_side.png^elepower_machine_accumulator.png", "elepower_machine_side.png^elepower_machine_accumulator.png",
"elepower_machine_side.png^elepower_machine_accumulator.png",
},
fluid_buffers = {
water = {
@ -24,8 +25,9 @@ minetest.register_node("elepower_machines:accumulator_heavy", {
description = "Water Accumulator (Heavy Water)",
groups = {fluid_container = 1, oddly_breakable_by_hand = 1, cracky = 1, not_in_creative_inventory = 1},
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png", "elepower_machine_accumulator.png",
"elepower_machine_accumulator.png", "elepower_machine_accumulator.png", "elepower_machine_accumulator.png",
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png", "elepower_machine_side.png^elepower_machine_accumulator.png",
"elepower_machine_side.png^elepower_machine_accumulator.png", "elepower_machine_side.png^elepower_machine_accumulator.png",
"elepower_machine_side.png^elepower_machine_accumulator.png",
},
drop = {
max_items = 2,

View File

@ -11,12 +11,12 @@ elepm.register_crafter("elepower_machines:alloy_furnace", {
ele_active_node = true,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_alloy_furnace.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_alloy_furnace.png",
},
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_alloy_furnace_active.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_alloy_furnace_active.png",
},
},
groups = {oddly_breakable_by_hand = 1}

View File

@ -159,7 +159,7 @@ ele.register_base_device("elepower_machines:bucketer", {
end,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_bucketer.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_bucketer.png",
},
on_receive_fields = get_fields,

View File

@ -1,7 +1,7 @@
elepm.register_craft_type("can", {
description = "Canning",
icon = "elepower_canning_machine.png",
icon = "elepower_machine_side.png^elepower_canning_machine.png",
inputs = 2,
})
@ -10,7 +10,7 @@ elepm.register_crafter("elepower_machines:canning_machine", {
craft_type = "can",
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_canning_machine.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_canning_machine.png",
},
groups = {ele_user = 1, oddly_breakable_by_hand = 1},
})

View File

@ -1,7 +1,7 @@
elepm.register_craft_type("compress", {
description = "Compressing",
icon = "elepower_compressor.png",
icon = "elepower_machine_side.png^elepower_compressor.png",
inputs = 1,
})
@ -11,7 +11,8 @@ elepm.register_crafter("elepower_machines:compressor", {
ele_usage = 32,
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png^elepower_power_port.png",
"elepower_compressor.png", "elepower_compressor.png", "elepower_compressor.png", "elepower_compressor.png",
"elepower_machine_side.png^elepower_compressor.png", "elepower_machine_side.png^elepower_compressor.png",
"elepower_machine_side.png^elepower_compressor.png", "elepower_machine_side.png^elepower_compressor.png",
},
ele_no_automatic_ports = true,
groups = {oddly_breakable_by_hand = 1}

View File

@ -161,7 +161,7 @@ ele.register_machine("elepower_machines:electrolyzer", {
description = "Electrolyzer",
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_electrolyzer.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_electrolyzer.png",
},
groups = {fluid_container = 1, cracky = 1, ele_user = 1},
on_timer = electrolyzer_timer,

View File

@ -101,7 +101,7 @@ local function on_timer(pos, elapsed)
end
local animated = {
name = "elepower_machine_vaporidenser_animated.png",
name = "elepower_machine_base.png^elepower_machine_vaporidenser_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
@ -132,7 +132,7 @@ ele.register_machine("elepower_machines:evaporator", {
end,
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png^elepower_power_port.png",
"elepower_machine_vaporidenser.png",
"elepower_machine_side.png^elepower_machine_vaporidenser.png",
},
ele_active_node = true,
ele_no_automatic_ports = true,

View File

@ -4,13 +4,13 @@ ele.register_fluid_generator("elepower_machines:fuel_burner", {
ele_usage = 8,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_fuel_generator.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_fuel_generator.png",
},
ele_active_node = true,
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_fuel_generator_active.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_fuel_generator_active.png",
},
},
fluid_buffers = {

View File

@ -10,12 +10,12 @@ elepm.register_crafter("elepower_machines:furnace", {
ele_usage = 32,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_furnace.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_furnace.png",
},
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_furnace_active.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_furnace_active.png",
},
},
groups = {oddly_breakable_by_hand = 1}

View File

@ -10,12 +10,12 @@ elepm.register_fuel_generator("elepower_machines:generator", {
ele_usage = 16,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_generator.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_generator.png",
},
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_generator_active.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_generator_active.png",
}
},
groups = {oddly_breakable_by_hand = 1}

View File

@ -140,7 +140,7 @@ ele.register_machine("elepower_machines:lava_cooler", {
},
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_lava_cooler.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_lava_cooler.png",
},
on_construct = function (pos)
local meta = minetest.get_meta(pos)

View File

@ -4,13 +4,13 @@ ele.register_fluid_generator("elepower_machines:lava_generator", {
ele_usage = 64,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_lava_generator.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_lava_generator.png",
},
ele_active_node = true,
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_lava_generator_active.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_lava_generator_active.png",
},
},
fluid_buffers = {

View File

@ -12,12 +12,12 @@ elepm.register_crafter("elepower_machines:pulverizer", {
ele_usage = 32,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_grinder.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_grinder.png",
},
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_grinder_active.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_grinder_active.png",
},
},
groups = {oddly_breakable_by_hand = 1}

View File

@ -211,8 +211,10 @@ end
ele.register_machine("elepower_machines:pump", {
description = "Pump",
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_pump_base.png", "elepower_pump_side.png",
"elepower_pump_side.png", "elepower_pump_side.png", "elepower_pump_side.png",
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png^elepower_pump_base.png",
"elepower_machine_side.png^elepower_pump_side.png",
"elepower_machine_side.png^elepower_pump_side.png", "elepower_machine_side.png^elepower_pump_side.png",
"elepower_machine_side.png^elepower_pump_side.png",
},
groups = {
ele_machine = 1,

View File

@ -3,7 +3,7 @@ elepm.register_craft_type("saw", {
description = "Sawmilling",
inputs = 1,
gui_name = "elepower_saw",
icon = "elepower_sawmill.png",
icon = "elepower_machine_side.png^elepower_sawmill.png",
})
elepm.register_crafter("elepower_machines:sawmill", {
@ -12,7 +12,7 @@ elepm.register_crafter("elepower_machines:sawmill", {
ele_usage = 32,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_sawmill.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_sawmill.png",
},
groups = {oddly_breakable_by_hand = 1}
})

View File

@ -2,7 +2,7 @@
elepm.register_craft_type("solder", {
description = "Soldering",
inputs = 3,
icon = "elepower_solderer.png",
icon = "elepower_machine_side.png^elepower_solderer.png",
})
elepm.register_crafter("elepower_machines:solderer", {
@ -10,7 +10,7 @@ elepm.register_crafter("elepower_machines:solderer", {
craft_type = "solder",
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_solderer.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_solderer.png",
},
groups = {oddly_breakable_by_hand = 1, cracky = 2},
ele_usage = 128,

View File

@ -18,13 +18,13 @@ ele.register_fluid_generator("elepower_machines:steam_turbine", {
ele_output = 128,
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_turbine_side.png", "elepower_turbine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png^elepower_turbine_side.png", "elepower_machine_side.png^elepower_turbine_side.png",
},
ele_active_node = true,
ele_active_nodedef = {
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_turbine_side.png", "elepower_turbine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png^elepower_turbine_side.png", "elepower_machine_side.png^elepower_turbine_side.png",
},
},
fluid_buffers = {

View File

@ -10,7 +10,7 @@ elepm.register_storage("elepower_machines:power_cell", {
ele_output = 128,
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_power_cell.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_power_cell.png",
},
groups = {oddly_breakable_by_hand = 1}
})
@ -26,7 +26,7 @@ elepm.register_storage("elepower_machines:hardened_power_cell", {
"elepower_machine_side.png^elepower_overlay_hardened.png",
"elepower_machine_side.png^elepower_overlay_hardened.png",
"elepower_machine_side.png^elepower_overlay_hardened.png",
"elepower_power_cell.png^elepower_overlay_hardened.png",
"elepower_machine_side.png^elepower_power_cell.png^elepower_overlay_hardened.png",
},
groups = {oddly_breakable_by_hand = 1}
})
@ -42,7 +42,7 @@ elepm.register_storage("elepower_machines:reinforced_power_cell", {
"elepower_machine_side.png^elepower_overlay_reinforced.png",
"elepower_machine_side.png^elepower_overlay_reinforced.png",
"elepower_machine_side.png^elepower_overlay_reinforced.png",
"elepower_power_cell.png^elepower_overlay_reinforced.png",
"elepower_machine_side.png^elepower_power_cell.png^elepower_overlay_reinforced.png",
},
groups = {oddly_breakable_by_hand = 1}
})
@ -58,7 +58,7 @@ elepm.register_storage("elepower_machines:resonant_power_cell", {
"elepower_machine_side.png^elepower_overlay_resonant.png",
"elepower_machine_side.png^elepower_overlay_resonant.png",
"elepower_machine_side.png^elepower_overlay_resonant.png",
"elepower_power_cell.png^elepower_overlay_resonant.png",
"elepower_machine_side.png^elepower_power_cell.png^elepower_overlay_resonant.png",
},
groups = {oddly_breakable_by_hand = 1}
})
@ -74,7 +74,7 @@ elepm.register_storage("elepower_machines:super_power_cell", {
"elepower_machine_side.png^elepower_overlay_super.png",
"elepower_machine_side.png^elepower_overlay_super.png",
"elepower_machine_side.png^elepower_overlay_super.png",
"elepower_power_cell.png^elepower_overlay_super.png",
"elepower_machine_side.png^elepower_power_cell.png^elepower_overlay_super.png",
},
groups = {oddly_breakable_by_hand = 1}
})

View File

@ -121,7 +121,7 @@ ele.register_wind_generator("elepower_machines:wind_turbine", {
description = "Wind Turbine\nRequires Wind Turbine Blades",
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_wind_turbine_face.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_wind_turbine_face.png",
},
ele_upgrades = {
capacitor = {"capacity"},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 590 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 639 B

View File

@ -265,8 +265,10 @@ minetest.register_node("elepower_mining:miner_core", {
minetest.register_node("elepower_mining:miner_drill", {
description = "Miner Drill\nMachine Component",
tiles = {
"elepower_machine_top.png^elepower_power_port.png", "elepower_mining_apparatus_base.png", "elepower_mining_apparatus_side.png",
"elepower_mining_apparatus_side.png", "elepower_mining_apparatus_side.png", "elepower_mining_apparatus_side.png",
"elepower_machine_top.png^elepower_power_port.png", "elepower_mining_apparatus_base.png",
"elepower_machine_side.png^elepower_mining_apparatus_side.png",
"elepower_machine_side.png^elepower_mining_apparatus_side.png",
"elepower_machine_side.png^elepower_mining_apparatus_side.png", "elepower_machine_side.png^elepower_mining_apparatus_side.png",
},
groups = {fluid_container = 1, oddly_breakable_by_hand = 1, cracky = 1},
after_dig_node = recalc_on_break,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 448 B

View File

@ -474,6 +474,8 @@ function ele.register_machine(nodename, nodedef)
if nodedef.paramtype2 ~= 0 or not nodedef.paramtype2 then
nodedef.paramtype2 = "facedir"
else
nodedef.paramtype2 = nil
end
-- Ensure machine group is used properly

View File

@ -116,7 +116,7 @@ ele.register_machine("elepower_tools:ed_reconstructor", {
description = "Energy Density Reconstructor\nRepairs tools using energy",
tiles = {
"elepower_machine_top.png", "elepower_machine_base.png", "elepower_machine_side.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_ed_reconstructor.png",
"elepower_machine_side.png", "elepower_machine_side.png", "elepower_machine_side.png^elepower_machine_ed_reconstructor.png",
},
groups = {cracky = 1, ele_user = 1},
on_timer = ed_timer,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 525 B