mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-24 09:50:31 +01:00
redo top/bottom textures for supply converter
delete back/bottom texture for power monitor use "machine bottom" for bottom of force field generator add cable connection overlay, use it on various machines' bottoms/sides, as appropriate
This commit is contained in:
parent
8479a8c984
commit
54004f4951
@ -12,6 +12,8 @@ local forcefield_power_drain = 10
|
|||||||
|
|
||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:forcefield_emitter_off",
|
output = "technic:forcefield_emitter_off",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -258,7 +260,14 @@ end
|
|||||||
|
|
||||||
minetest.register_node("technic:forcefield_emitter_off", {
|
minetest.register_node("technic:forcefield_emitter_off", {
|
||||||
description = S("%s Forcefield Emitter"):format("HV"),
|
description = S("%s Forcefield Emitter"):format("HV"),
|
||||||
tiles = {"technic_forcefield_emitter_off.png"},
|
tiles = {
|
||||||
|
"technic_forcefield_emitter_off.png",
|
||||||
|
"technic_machine_bottom.png"..cable_entry,
|
||||||
|
"technic_forcefield_emitter_off.png",
|
||||||
|
"technic_forcefield_emitter_off.png",
|
||||||
|
"technic_forcefield_emitter_off.png",
|
||||||
|
"technic_forcefield_emitter_off.png"
|
||||||
|
},
|
||||||
groups = {cracky = 1, technic_machine = 1, technic_hv = 1},
|
groups = {cracky = 1, technic_machine = 1, technic_hv = 1},
|
||||||
on_receive_fields = forcefield_receive_fields,
|
on_receive_fields = forcefield_receive_fields,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
@ -282,7 +291,14 @@ minetest.register_node("technic:forcefield_emitter_off", {
|
|||||||
|
|
||||||
minetest.register_node("technic:forcefield_emitter_on", {
|
minetest.register_node("technic:forcefield_emitter_on", {
|
||||||
description = S("%s Forcefield Emitter"):format("HV"),
|
description = S("%s Forcefield Emitter"):format("HV"),
|
||||||
tiles = {"technic_forcefield_emitter_on.png"},
|
tiles = {
|
||||||
|
"technic_forcefield_emitter_on.png",
|
||||||
|
"technic_machine_bottom.png"..cable_entry,
|
||||||
|
"technic_forcefield_emitter_on.png",
|
||||||
|
"technic_forcefield_emitter_on.png",
|
||||||
|
"technic_forcefield_emitter_on.png",
|
||||||
|
"technic_forcefield_emitter_on.png"
|
||||||
|
},
|
||||||
groups = {cracky = 1, technic_machine = 1, technic_hv = 1,
|
groups = {cracky = 1, technic_machine = 1, technic_hv = 1,
|
||||||
not_in_creative_inventory=1},
|
not_in_creative_inventory=1},
|
||||||
drop = "technic:forcefield_emitter_off",
|
drop = "technic:forcefield_emitter_off",
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
local tube_entry = "^pipeworks_tube_connection_metallic.png"
|
local tube_entry = "^pipeworks_tube_connection_metallic.png"
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -211,11 +212,11 @@ minetest.register_node("technic:quarry", {
|
|||||||
description = S("%s Quarry"):format("HV"),
|
description = S("%s Quarry"):format("HV"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"technic_carbon_steel_block.png"..tube_entry,
|
"technic_carbon_steel_block.png"..tube_entry,
|
||||||
"technic_carbon_steel_block.png",
|
"technic_carbon_steel_block.png"..cable_entry,
|
||||||
"technic_carbon_steel_block.png",
|
"technic_carbon_steel_block.png"..cable_entry,
|
||||||
"technic_carbon_steel_block.png",
|
"technic_carbon_steel_block.png"..cable_entry,
|
||||||
"technic_carbon_steel_block.png^default_tool_mesepick.png",
|
"technic_carbon_steel_block.png^default_tool_mesepick.png",
|
||||||
"technic_carbon_steel_block.png"
|
"technic_carbon_steel_block.png"..cable_entry
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=2, tubedevice=1, technic_machine=1, technic_hv=1},
|
groups = {cracky=2, tubedevice=1, technic_machine=1, technic_hv=1},
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
minetest.register_alias("water_mill", "technic:water_mill")
|
minetest.register_alias("water_mill", "technic:water_mill")
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -68,9 +70,14 @@ end
|
|||||||
|
|
||||||
minetest.register_node("technic:water_mill", {
|
minetest.register_node("technic:water_mill", {
|
||||||
description = S("Hydro %s Generator"):format("LV"),
|
description = S("Hydro %s Generator"):format("LV"),
|
||||||
tiles = {"technic_water_mill_top.png", "technic_machine_bottom.png",
|
tiles = {
|
||||||
"technic_water_mill_side.png", "technic_water_mill_side.png",
|
"technic_water_mill_top.png",
|
||||||
"technic_water_mill_side.png", "technic_water_mill_side.png"},
|
"technic_machine_bottom.png"..cable_entry,
|
||||||
|
"technic_water_mill_side.png",
|
||||||
|
"technic_water_mill_side.png",
|
||||||
|
"technic_water_mill_side.png",
|
||||||
|
"technic_water_mill_side.png"
|
||||||
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||||
technic_machine=1, technic_lv=1},
|
technic_machine=1, technic_lv=1},
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:power_monitor",
|
output = "technic:power_monitor",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -17,10 +19,10 @@ minetest.register_node("technic:power_monitor",{
|
|||||||
description = S("Power Monitor"),
|
description = S("Power Monitor"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"technic_power_monitor_sides.png",
|
"technic_power_monitor_sides.png",
|
||||||
"technic_power_monitor_bottom_back.png",
|
"technic_power_monitor_sides.png"..cable_entry,
|
||||||
"technic_power_monitor_sides.png",
|
"technic_power_monitor_sides.png",
|
||||||
"technic_power_monitor_sides.png",
|
"technic_power_monitor_sides.png",
|
||||||
"technic_power_monitor_bottom_back.png",
|
"technic_power_monitor_sides.png"..cable_entry,
|
||||||
"technic_power_monitor_front.png"
|
"technic_power_monitor_front.png"
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
@ -11,6 +11,8 @@ local digilines_path = minetest.get_modpath("digilines")
|
|||||||
|
|
||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
local function set_supply_converter_formspec(meta)
|
local function set_supply_converter_formspec(meta)
|
||||||
local formspec = "size[5,2.25]"..
|
local formspec = "size[5,2.25]"..
|
||||||
"field[0.3,0.5;2,1;power;"..S("Input Power")..";"..meta:get_int("power").."]"
|
"field[0.3,0.5;2,1;power;"..S("Input Power")..";"..meta:get_int("power").."]"
|
||||||
@ -158,9 +160,14 @@ end
|
|||||||
|
|
||||||
minetest.register_node("technic:supply_converter", {
|
minetest.register_node("technic:supply_converter", {
|
||||||
description = S("Supply Converter"),
|
description = S("Supply Converter"),
|
||||||
tiles = {"technic_supply_converter_top.png", "technic_supply_converter_bottom.png",
|
tiles = {
|
||||||
"technic_supply_converter_side.png", "technic_supply_converter_side.png",
|
"technic_supply_converter_tb.png"..cable_entry,
|
||||||
"technic_supply_converter_side.png", "technic_supply_converter_side.png"},
|
"technic_supply_converter_tb.png"..cable_entry,
|
||||||
|
"technic_supply_converter_side.png",
|
||||||
|
"technic_supply_converter_side.png",
|
||||||
|
"technic_supply_converter_side.png",
|
||||||
|
"technic_supply_converter_side.png"
|
||||||
|
},
|
||||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
|
||||||
technic_machine=1, technic_all_tiers=1},
|
technic_machine=1, technic_all_tiers=1},
|
||||||
connect_sides = {"top", "bottom"},
|
connect_sides = {"top", "bottom"},
|
||||||
|
@ -39,6 +39,8 @@ local digilines_path = minetest.get_modpath("digilines")
|
|||||||
|
|
||||||
local S = technic.getter
|
local S = technic.getter
|
||||||
|
|
||||||
|
local cable_entry = "^technic_cable_connection_overlay.png"
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:switching_station",
|
output = "technic:switching_station",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -57,9 +59,13 @@ end
|
|||||||
|
|
||||||
minetest.register_node("technic:switching_station",{
|
minetest.register_node("technic:switching_station",{
|
||||||
description = S("Switching Station"),
|
description = S("Switching Station"),
|
||||||
tiles = {"technic_water_mill_top_active.png", "technic_water_mill_top_active.png",
|
tiles = {
|
||||||
"technic_water_mill_top_active.png", "technic_water_mill_top_active.png",
|
"technic_water_mill_top_active.png",
|
||||||
"technic_water_mill_top_active.png", "technic_water_mill_top_active.png"},
|
"technic_water_mill_top_active.png"..cable_entry,
|
||||||
|
"technic_water_mill_top_active.png",
|
||||||
|
"technic_water_mill_top_active.png",
|
||||||
|
"technic_water_mill_top_active.png",
|
||||||
|
"technic_water_mill_top_active.png"},
|
||||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1},
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, technic_all_tiers=1},
|
||||||
connect_sides = {"bottom"},
|
connect_sides = {"bottom"},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
BIN
technic/textures/technic_cable_connection_overlay.png
Normal file
BIN
technic/textures/technic_cable_connection_overlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 293 B |
Binary file not shown.
Before Width: | Height: | Size: 506 B |
Binary file not shown.
Before Width: | Height: | Size: 738 B |
BIN
technic/textures/technic_supply_converter_tb.png
Normal file
BIN
technic/textures/technic_supply_converter_tb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 656 B |
Binary file not shown.
Before Width: | Height: | Size: 738 B |
Loading…
Reference in New Issue
Block a user