Add minor improvements
This commit is contained in:
parent
875c3dc9de
commit
4dbf460715
@ -430,3 +430,9 @@ minetest.register_craft({
|
||||
},
|
||||
})
|
||||
|
||||
local Cable = techage.ElectricCable
|
||||
local power = networks.power
|
||||
|
||||
techage.register_node_for_v1_transition({"techage:ta3_autocrafter_pas"}, function(pos, node)
|
||||
power.update_network(pos, nil, Cable)
|
||||
end)
|
@ -39,6 +39,7 @@ local names = networks.register_junction("techage:concentrator", 2/8, Boxes, Tub
|
||||
"techage_tube_junction.png^techage_appl_arrow2.png^[transformR270",
|
||||
},
|
||||
paramtype2 = "facedir", -- important!
|
||||
use_texture_alpha = techage.CLIP,
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
|
||||
@ -77,6 +78,7 @@ names = networks.register_junction("techage:ta4_concentrator", 2/8, Boxes, Tube,
|
||||
"techage_tubeta4_junction.png^techage_appl_arrow2.png^[transformR270",
|
||||
},
|
||||
paramtype2 = "facedir", -- important!
|
||||
use_texture_alpha = techage.CLIP,
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
|
||||
|
@ -159,7 +159,7 @@ local Boxes = {
|
||||
local names = networks.register_junction("techage:ta3_junctionpipe", 1/8, Boxes, Pipe, {
|
||||
description = S("TA Junction Pipe"),
|
||||
tiles = {"techage_gaspipe_junction.png"},
|
||||
use_texture_alpha = "clip",
|
||||
use_texture_alpha = techage.CLIP,
|
||||
is_ground_content = false,
|
||||
groups = {crumbly = 2, cracky = 2, snappy = 2, techage_trowel = 1},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
|
@ -141,7 +141,7 @@ local function after_place_node(pos)
|
||||
local nvm = techage.get_nvm(pos)
|
||||
new_state(pos, nvm, techage.STOPPED)
|
||||
Pipe:after_place_node(pos)
|
||||
Cable.after_place_node(pos)
|
||||
Cable:after_place_node(pos)
|
||||
end
|
||||
|
||||
local function after_dig_node(pos, oldnode)
|
||||
|
@ -42,7 +42,6 @@ local Cable = tubelib2.Tube:new({
|
||||
elseif not networks.hidden_name(pos) then
|
||||
minetest.swap_node(pos, {name = "techage:electric_cable"..tube_type, param2 = param2 % 32})
|
||||
end
|
||||
print("param2", name, param2)
|
||||
M(pos):set_int("netw_param2", param2)
|
||||
end,
|
||||
})
|
||||
|
@ -32,7 +32,7 @@ local Boxes = {
|
||||
local names = networks.register_junction("techage:electric_junction", 2/8, Boxes, Cable, {
|
||||
description = S("TA Electric Junction Box"),
|
||||
tiles = {"techage_electric_junction.png"},
|
||||
use_texture_alpha = "clip",
|
||||
use_texture_alpha = techage.CLIP,
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3, techage_trowel = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
|
@ -91,7 +91,7 @@ minetest.register_node("techage:powerswitch_box_on", {
|
||||
end,
|
||||
paramtype2 = "facedir",
|
||||
on_rotate = screwdriver.disallow,
|
||||
use_texture_alpha = "clip",
|
||||
use_texture_alpha = techage.CLIP,
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {choppy=2, cracky=2, crumbly=2, techage_trowel = 1},
|
||||
@ -128,7 +128,7 @@ minetest.register_node("techage:powerswitch_box_off", {
|
||||
end,
|
||||
paramtype2 = "facedir",
|
||||
on_rotate = screwdriver.disallow,
|
||||
use_texture_alpha = "clip",
|
||||
use_texture_alpha = techage.CLIP,
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
drop = "techage:powerswitch_box_on",
|
||||
|
Loading…
Reference in New Issue
Block a user