summaryrefslogtreecommitdiff
path: root/crafts.lua
blob: e65c1f342979f4768704057c2e8098a8c8070cc7 (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
-- Crafting recipes for pipeworks

-- If the technic mod is present, then don't bother registering these recipes
-- as that mod supplies its own.

if io.open(minetest.get_modpath("pipeworks").."/../technic/init.lua", "r") == nil then

	-- If homedecor is not installed, we need to register a few of its crafts
	-- manually so we can use them.

	if minetest.get_modpath("homedecor") == nil then

		minetest.register_craftitem(":homedecor:plastic_sheeting", {
			description = "Plastic sheet",
			inventory_image = "pipeworks_plastic_sheeting.png",
		})

		minetest.register_craft({
		        type = "cooking",
		        output = "homedecor:plastic_sheeting",
		        recipe = "default:junglegrass",
		})

		minetest.register_craft({
		        type = 'fuel',
		        recipe = 'homedecor:plastic_sheeting',
		        burntime = 30,
		})
	end

	minetest.register_craft( {
	        output = "pipeworks:pipe_110000_empty 12",
	        recipe = {
	                { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
	                { "", "", "" },
	                { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
	        },
	})

	minetest.register_craft( {
	        output = "pipeworks:pump_off 2",
	        recipe = {
	                { "default:stone", "default:steel_ingot", "default:stone" },
	                { "moreores:copper_ingot", "default:mese_crystal_fragment", "moreores:copper_ingot" },
	                { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
	        },
	})

	minetest.register_craft( {
	        output = "pipeworks:valve_off 2",
	        recipe = {
	                { "", "default:stick", "" },
	                { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
	                { "", "default:steel_ingot", "" }
	        },
	})

	minetest.register_craft( {
	        output = "pipeworks:storage_tank_0 2",
	        recipe = {
	                { "", "default:steel_ingot", "default:steel_ingot" },
	                { "default:steel_ingot", "default:glass", "default:steel_ingot" },
	                { "default:steel_ingot", "default:steel_ingot", "" }
	        },
	})

	minetest.register_craft( {
	        output = "pipeworks:grating 2",
	        recipe = {
	                { "default:steel_ingot", "", "default:steel_ingot" },
	                { "", "default:steel_ingot", "" },
	                { "default:steel_ingot", "", "default:steel_ingot" }
	        },
	})

	minetest.register_craft( {
	        output = "pipeworks:spigot 3",
	        recipe = {
	                { "pipeworks:pipe_110000_empty", "" },
	                { "", "pipeworks:pipe_110000_empty" },
	        },
	})

	minetest.register_craft( {
		output = "pipeworks:tube 12",
		recipe = {
		        { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
		        { "", "", "" },
		        { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
		},
	})

		minetest.register_craft( {
	        output = "pipeworks:entry_panel 2",
	        recipe = {
			{ "", "default:steel_ingot", "" },
	                { "", "pipeworks:pipe_110000_empty", "" },
			{ "", "default:steel_ingot", "" },
	        },
	})

end