Added softdependencies for trafficlight
This commit is contained in:
parent
2a229d6552
commit
cea35d5c50
@ -42,6 +42,20 @@
|
|||||||
print("'Bucket' not installed \n\t => No signs available")
|
print("'Bucket' not installed \n\t => No signs available")
|
||||||
streets.extendedBy.bucket = false
|
streets.extendedBy.bucket = false
|
||||||
end
|
end
|
||||||
|
if minetest.get_modpath("mesecons") then
|
||||||
|
print("'Mesecons' is installed \n\t => Trafficlights might be available. Checking for digilines.")
|
||||||
|
streets.extendedBy.mesecons = true
|
||||||
|
else
|
||||||
|
print("'Mesecons' not installed \n\t => No trafficlight, sorry.")
|
||||||
|
streets.extendedBy.mesecons = false
|
||||||
|
end
|
||||||
|
if minetest.get_modpath("digilines") then
|
||||||
|
print("'Digilines' is installed \n\t => Trafficlights might be available")
|
||||||
|
streets.extendedBy.digilines = true
|
||||||
|
else
|
||||||
|
print("'Digilines' not installed \n\t => No trafficlight, sorry.")
|
||||||
|
streets.extendedBy.digilines = false
|
||||||
|
end
|
||||||
|
|
||||||
-- Done
|
-- Done
|
||||||
print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!")
|
print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!")
|
@ -1,3 +1,4 @@
|
|||||||
default
|
default
|
||||||
streetsmod
|
streetsmod
|
||||||
digilines?
|
digilines?
|
||||||
|
mesecons?
|
@ -1,6 +1,7 @@
|
|||||||
--[[
|
--[[
|
||||||
StreetsMod: inDev Trafficlights
|
StreetsMod: inDev Trafficlights
|
||||||
]]
|
]]
|
||||||
|
if streets.extendedBy.mesecons and streets.extendedBy.digilines then
|
||||||
minetest.register_node(":streets:trafficlight_bottom",{
|
minetest.register_node(":streets:trafficlight_bottom",{
|
||||||
description = "Trafficlight",
|
description = "Trafficlight",
|
||||||
groups = {cracky = 1},
|
groups = {cracky = 1},
|
||||||
@ -216,3 +217,5 @@ minetest.register_node(":streets:trafficlight_top_warn",{
|
|||||||
pointable = false,
|
pointable = false,
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user