summaryrefslogtreecommitdiff
path: root/streetsmod/init.lua
blob: f5649bccf14f0ca891f9601ea9b339316440638f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--[[
	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	= {}
	streets.version	= 1.3
	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
		print("'Stairs' is installed \n\t => There will be stairs and slabs'")
		streets.extendedBy.stairs = true
	else
		print("'Stairs' not installed \n\t => There won't be stairs and slabs'")
		streets.extendedBy.stairs = false
	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
	
-- Done	
	print("Streets: Setup completed, have fun with StreetsMod ".. streets.version .."!")