mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-23 07:10:19 +01:00
Replace digiline wires with digimese if digistuff is enabled
This commit is contained in:
parent
c3bed5d5c2
commit
27c134f41e
@ -1,5 +1,3 @@
|
||||
local S = technic.getter
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'technic:hv_cable 3',
|
||||
recipe = {
|
||||
@ -11,16 +9,28 @@ minetest.register_craft({
|
||||
|
||||
technic.register_cable("HV", 3/16)
|
||||
|
||||
minetest.register_craft({
|
||||
if minetest.get_modpath("digilines") then
|
||||
|
||||
local S = technic.getter
|
||||
|
||||
if minetest.get_modpath("digistuff") then
|
||||
minetest.register_craft({
|
||||
output = 'technic:hv_digi_cable 1',
|
||||
type = "shapeless",
|
||||
recipe = {'digistuff:digimese', 'technic:hv_cable'}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = 'technic:hv_digi_cable 1',
|
||||
recipe = {
|
||||
{'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'},
|
||||
{'digilines:wire_std_00000000', 'technic:hv_cable', 'digilines:wire_std_00000000'},
|
||||
{'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'},
|
||||
}
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
technic.register_cable("HV", 3/16, S("HV Cable (digiline)"), "_digi", {
|
||||
technic.register_cable("HV", 3/16, S("HV Cable (digiline)"), "_digi", {
|
||||
digiline = {
|
||||
wire = {
|
||||
rules = {
|
||||
@ -33,4 +43,5 @@ technic.register_cable("HV", 3/16, S("HV Cable (digiline)"), "_digi", {
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user