summaryrefslogtreecommitdiff
path: root/roadsigns/signs.lua
blob: 3b8beb41bb5e48d63e4a3d810cedb001456c4298 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
minetest.register_node(":streets:sign_blank",{
	description = S("Empty sign"),
	tiles = {"streets_sign_back.png"},
	inventory_image = "streets_sign_back.png",
	wield_image = "streets_sign_back.png",
	groups = {snappy = 1,attached_node = 1},
	drawtype = "nodebox",
	node_box = {
		type = "wallmounted",
		fixed = {
			{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
		}
	},
	paramtype = "light",
	paramtype2 = "wallmounted",
	walkable = false,
	sunlight_propagates = true,
	selection_box = {
		type = "wallmounted"
	},
	streets = {
		signworkshop = {
			recipe = {"default:steel_ingot","","",""},
			time = 3
		}
	},
	after_place_node = function(pos)
		local meta = minetest.get_meta(pos)
		
		meta:set_string("infotext", S("Empty Sign"))
	end
})
minetest.register_node(":streets:sign_lava",{
	description = S("Warning sign (lava)"),
	tiles = {"streets_sign_lava.png"},
	inventory_image = "streets_sign_lava.png",
	wield_image = "streets_sign_lava.png",
	groups = {snappy = 1,attached_node = 1},
	drawtype = "nodebox",
	node_box = {
		type = "wallmounted",
		fixed = {
			{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
		}
	},
	paramtype = "light",
	paramtype2 = "wallmounted",
	walkable = false,
	sunlight_propagates = true,
	selection_box = {
		type = "wallmounted"
	},
	streets = {
		signworkshop = {
			recipe = {"streets:sign_blank","bucket:bucket_lava","",""},
			time = 5
		}
	},
	after_place_node = function(pos)
		local meta = minetest.get_meta(pos)
		
		meta:set_string("infotext", S("Warning: Careful of lava"))
	end
})
	
minetest.register_node(":streets:sign_water",{
	description = S("Warning sign (water)"),
	tiles = {"streets_sign_water.png"},
	inventory_image = "streets_sign_water.png",
	wield_image = "streets_sign_water.png",
	groups = {snappy = 1,attached_node = 1},
	drawtype = "nodebox",
	node_box = {
		type = "wallmounted",
		fixed = {
			{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
		}
	},
	paramtype = "light",
	paramtype2 = "wallmounted",
	walkable = false,
	sunlight_propagates = true,
	selection_box = {
		type = "wallmounted"
	},
	streets = {
		signworkshop = {
			recipe = {"streets:sign_blank","bucket:bucket_water","",""},
			time = 5
		}
	},
	after_place_node = function(pos)
		local meta = minetest.get_meta(pos)
		
		meta:set_string("infotext", S("Warning: Water nearby"))
	end
})

minetest.register_node(":streets:sign_construction",{
	description = S("Warning sign (Construction area)"),
	tiles = {"streets_sign_construction.png"},
	inventory_image = "streets_sign_construction.png",
	wield_image = "streets_sign_construction.png",
	groups = {snappy = 1,attached_node = 1},
	drawtype = "nodebox",
	node_box = {
		type = "wallmounted",
		fixed = {
			{-0.4,-0.5,-0.4,0.4,-0.4,0.4}
		}
	},
	paramtype = "light",
	paramtype2 = "wallmounted",
	walkable = false,
	sunlight_propagates = true,
	selection_box = {
		type = "wallmounted"
	},
	streets = {
		signworkshop = {
			recipe = {"streets:sign_blank","default:dirt","",""},
			time = 5
		}
	},
	after_place_node = function(pos)
		local meta = minetest.get_meta(pos)
		
		meta:set_string("infotext", S("Warning: Construction area, possible deep excavations"))
	end
})