summaryrefslogtreecommitdiff
path: root/streetsconcrete/init.lua
blob: ffb826af1363c1f2a9132f3254b699cce3581d10 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
--[[
	StreetsMod: Concrete, Concrete wall (flat), Concrete wall (full)
]]
minetest.register_alias("streets:concrete","technic:concrete")
if streets.extendedBy.technic == true then 
	-- Use technic's concrete block for the seperating wall
	minetest.register_node(":streets:concrete_wall",{
		description = "Conrete wall",
		tiles = {"technic_concrete_block.png"},
		groups = {cracky=2},
		drawtype = "nodebox",
		paramtype = "light",
		paramtype2 = "facedir",
		node_box = {
			type = "fixed",
			fixed = {
				{-0.4, -0.5, -0.5, 0.4, -0.4, 0.5},
				{-0.1, -0.4, -0.5, 0.1, 0.5, 0.5}
			}
		}
	})
	minetest.register_craft({
		output = "streets:concrete_wall",
		recipe = {
			{"","technic:conrete",""},
			{"","technic:concrete",""},
			{"technic:concrete","technic:concrete","technic:concrete"}
		}
	})
	minetest.register_node(":streets:concrete_wall_flat",{
		description = "Conrete wall",
		tiles = {"technic_concrete_block.png"},
		groups = {cracky=2},
		drawtype = "nodebox",
		paramtype = "light",
		paramtype2 = "facedir",
		node_box = {
			type = "fixed",
			fixed = {
				{-0.1, -0.5, -0.5, 0.1, 0.5, 0.5}
			}
		}
	})
	minetest.register_craft({
		output = "streets:concrete_wall_flat 3",
		recipe = {
			{"","technic:concrete",""},
			{"","technic:concrete",""},
			{"","",""}
		}
	})
else
	-- Register technic's concrete block with streets's texture and then the seperating wall
	minetest.register_node(":technic:concrete",{
		description = "Concrete",
		tiles = {"streets_concrete.png"},
		groups = {cracky=2}
	})
	minetest.register_node(":streets:concrete_wall",{
		description = "Conrete wall",
		tiles = {"streets_concrete.png"},
		groups = {cracky=2},
		drawtype = "nodebox",
		paramtype = "light",
		paramtype2 = "facedir",
		node_box = {
			type = "fixed",
			fixed = {
				{-0.4, -0.5, -0.5, 0.4, -0.4, 0.5},
				{-0.1, -0.4, -0.5, 0.1, 0.5, 0.5}
			}
		}
	})
	minetest.register_craft({
		output = "streets:concrete_wall 5",
		recipe = {
			{"","technic:concrete",""},
			{"","technic:concrete",""},
			{"technic:concrete","technic:concrete","technic:concrete"}
		}
	})
	minetest.register_node(":streets:concrete_wall_flat",{
		description = "Conrete wall",
		tiles = {"streets_concrete.png"},
		groups = {cracky=2},
		drawtype = "nodebox",
		paramtype = "light",
		paramtype2 = "facedir",
		node_box = {
			type = "fixed",
			fixed = {
				{-0.1, -0.5, -0.5, 0.1, 0.5, 0.5}
			}
		}
	})
	minetest.register_craft({
		output = "streets:concrete_wall_flat 3",
		recipe = {
			{"","technic:concrete",""},
			{"","technic:concrete",""},
			{"","",""}
		}
	})
	minetest.register_craft({
		type = "shapeless",
		output = "technic:concrete",
		recipe = {"default:stone"}
	})
end