Add Toggleable cable recipe, fix borken appearance
This commit is contained in:
parent
5b96c87cc0
commit
7b4524ed51
@ -85,7 +85,7 @@ function logistica.register_cable_toggleable(desc, name, tilesOn, tilesOff)
|
||||
-- def_broken.inventory_image = "logistica_" .. lname .. "_inv.png^logistica_broken.png"
|
||||
def_broken.groups = { cracky = 3, choppy = 3, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1 }
|
||||
def_broken.description = "Broken " .. desc
|
||||
def_broken.node_box = { type = "fixed", fixed = { -0.5, -SIZE, -SIZE, 0.5, SIZE, SIZE } }
|
||||
def_broken.node_box = { type = "fixed", fixed = { -0.25, -0.25, -0.25, 0.25, 0.25, 0.25} }
|
||||
def_broken.selection_box = def_broken.node_box
|
||||
def_broken.connects_to = nil
|
||||
def_broken.on_construct = nil
|
||||
|
@ -27,6 +27,13 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = L("optic_cable_toggleable_off"),
|
||||
recipe = {
|
||||
{L("optic_cable"), "default:mese_crystal_fragment"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = L("hyperspanner"),
|
||||
recipe = {
|
||||
|
@ -25,7 +25,7 @@ logistica.register_cable("Optic cable", "optic_cable")
|
||||
-- })
|
||||
|
||||
-- toggleable
|
||||
logistica.register_cable_toggleable("Toggleable Cable", "toggleable_cable",
|
||||
logistica.register_cable_toggleable("Toggleable Cable", "optic_cable_toggleable",
|
||||
{"logistica_cable_toggleable_on.png"},
|
||||
{"logistica_cable_toggleable_off.png"}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user