aboutsummaryrefslogtreecommitdiff
path: root/crafting.lua
blob: 474f808a7598716e6f0260e377109c572015eee0 (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
--advtrains by orwell96, see readme.txt and license.txt
--crafting.lua
--registers crafting recipes

--tracks
minetest.register_craft({
	output = 'advtrains:dtrack_placer 50',
	recipe = {
		{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
		{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
		{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
	},
})
minetest.register_craft({
	output = 'advtrains:dtrack_puffer 2',
	recipe = {
		{'default:wood', 'dye:red', ''},
		{'default:steel_ingot', '', 'default:steel_ingot'},
		{'advtrains:dtrack_placer', 'advtrains:dtrack_placer', ''},
	},
})
--temporary, as long as puffers do not rotate
minetest.register_craft({
	output = 'advtrains:dtrack_puffer_30',
	recipe = {
		{'advtrains:dtrack_puffer'},
	},
})
minetest.register_craft({
	output = 'advtrains:dtrack_puffer_45',
	recipe = {
		{'advtrains:dtrack_puffer_30'},
	},
})
minetest.register_craft({
	output = 'advtrains:dtrack_puffer_60',
	recipe = {
		{'advtrains:dtrack_puffer_45'},
	},
})
minetest.register_craft({
	output = 'advtrains:dtrack_puffer',
	recipe = {
		{'advtrains:dtrack_puffer_60'},
	},
})


--wagons
minetest.register_craft({
	output = 'advtrains:newlocomotive',
	recipe = {
		{'default:steelblock', 'default:steelblock', 'default:steelblock'},
		{'default:steelblock', 'dye:black', 'default:steelblock'},
		{'default:steelblock', 'default:steelblock', 'default:steelblock'},
	},
})
minetest.register_craft({
	output = 'advtrains:wagon_default',
	recipe = {
		{'default:steelblock', 'default:steelblock', 'default:steelblock'},
		{'default:steelblock', 'dye:dark_green', 'default:steelblock'},
		{'default:steelblock', 'default:steelblock', 'default:steelblock'},
	},
})
minetest.register_craft({
	output = 'advtrains:subway_wagon',
	recipe = {
		{'default:steelblock', 'default:steelblock', 'default:steelblock'},
		{'default:steelblock', 'dye:yellow', 'default:steelblock'},
		{'default:steelblock', 'default:steelblock', 'default:steelblock'},
	},
})

--misc_nodes
--crafts for platforms see misc_nodes.lua