2013-08-10 19:23:52 +02:00
|
|
|
--[[
|
|
|
|
StreetsMod 1.1 by webdesigner97:
|
|
|
|
License : CC-BY-NC (see license.txt)
|
|
|
|
Readme : see readme.txt
|
|
|
|
Forum : http://bit.ly/12cPMeo
|
|
|
|
Depends : default
|
|
|
|
]]
|
|
|
|
-- Create variables and tables
|
|
|
|
print("Streets: Creating variables and tables...")
|
|
|
|
streets = {}
|
2013-08-13 20:28:39 +02:00
|
|
|
streets.version = "1.3 indev"
|
2013-08-10 19:23:52 +02:00
|
|
|
streets.modpath = minetest.get_modpath("streets")
|
|
|
|
streets.extendedBy = {}
|
|
|
|
|
|
|
|
-- Check for mods which change this mod's beahaviour
|
|
|
|
print("Streets: Checking installed mods...")
|
|
|
|
if minetest.get_modpath("wool") then
|
|
|
|
print("'Wool' is installed \n\t => You can craft labels for your asphalt blocks")
|
|
|
|
streets.extendedBy.wool = true
|
|
|
|
else
|
|
|
|
print("'Wool' not installed \n\t => You can't craft any labels")
|
|
|
|
streets.extendedBy.wool = false
|
|
|
|
end
|
|
|
|
if minetest.get_modpath("technic") then
|
|
|
|
print("'Technic' is installed \n\t => You can use its concrete also in this mod")
|
|
|
|
streets.extendedBy.technic = true
|
|
|
|
else
|
|
|
|
print("'Technic' not installed \n\t => StreetsMod will register its own concrete block")
|
|
|
|
streets.extendedBy.technic = false
|
|
|
|
end
|
|
|
|
if minetest.get_modpath("stairs") then
|
2013-08-15 20:11:01 +02:00
|
|
|
print("'Moreblocks' is installed \n\t => There will be stairs and slabs'")
|
|
|
|
streets.extendedBy.moreblocks = true
|
2013-08-10 19:23:52 +02:00
|
|
|
else
|
2013-08-15 20:11:01 +02:00
|
|
|
print("'Moreblocks' not installed \n\t => There won't be stairs and slabs'")
|
|
|
|
streets.extendedBy.moreblocks = false
|
2013-08-10 19:23:52 +02:00
|
|
|
end
|
|
|
|
if minetest.get_modpath("bucket") then
|
|
|
|
print("'Bucket' is installed \n\t => All signs are available")
|
|
|
|
streets.extendedBy.bucket = true
|
|
|
|
else
|
|
|
|
print("'Bucket' not installed \n\t => No signs available")
|
|
|
|
streets.extendedBy.bucket = false
|
|
|
|
end
|
2013-08-15 11:28:58 +02:00
|
|
|
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
|
2013-08-15 12:05:39 +02:00
|
|
|
if minetest.get_modpath("prefab") then
|
|
|
|
print("'Prefab concrete' is installed \n\t => Use its concrete block for streets' crafting recipes.")
|
|
|
|
streets.extendedBy.prefab = true
|
|
|
|
else
|
|
|
|
print("'Prefab concrete' not installed \n\t => Streets will register its own concrete block.")
|
|
|
|
streets.extendedBy.prefab = false
|
|
|
|
end
|
2013-08-10 19:23:52 +02:00
|
|
|
|
|
|
|
-- Done
|
|
|
|
print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!")
|