forked from loosewheel/lwscratch
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcrafting.lua
More file actions
56 lines (37 loc) · 1.07 KB
/
Copy pathcrafting.lua
File metadata and controls
56 lines (37 loc) · 1.07 KB
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
if minetest.global_exists ("default") then
minetest.register_craft({
output = "lwscratch:robot 1",
recipe = {
{ "default:stone", "default:tin_ingot", "default:glass" },
{ "default:steel_ingot", "default:coal_lump", "default:steel_ingot" },
{ "default:stick", "default:copper_ingot", "default:clay_lump" }
}
})
minetest.register_craft({
output = "lwscratch:cassette 1",
recipe = {
{ "default:clay_lump", "default:coal_lump" },
{ "default:stick", "default:book" }
}
})
else
local game_id = Settings (minetest.get_worldpath ()..DIR_DELIM..'world.mt'):get ('gameid')
if game_id == "mineclone2" then
minetest.register_craft({
output = "lwscratch:robot 1",
recipe = {
{ "mcl_core:stone", "mcl_core:iron_ingot", "mcl_core:glass" },
{ "mcl_core:iron_ingot", "mcl_core:coal_lump", "mcl_core:iron_ingot" },
{ "mcl_core:stick", "mcl_core:iron_ingot", "mcl_core:clay_lump" }
}
})
minetest.register_craft({
output = "lwscratch:cassette 1",
recipe = {
{ "mcl_core:clay_lump", "mcl_core:coal_lump" },
{ "mcl_core:stick", "mcl_books:book" }
}
})
end
end
--