-
Notifications
You must be signed in to change notification settings - Fork 0
/
underground.lua
82 lines (80 loc) · 2.49 KB
/
underground.lua
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
local MP = minetest.get_modpath(minetest.get_current_modname())
mapblock_tileset.register_tileset("underground", {
catalog = MP .. "/schematics/underground.zip",
groups = {
underground = true
},
disable_orientation = {
["default:stonebrick"] = true
},
tiles = {
{
-- all sides
positions = {{x=0,y=0,z=0}},
rules = {
["1,0,0"] = { groups = {"underground"} },
["-1,0,0"] = { groups = {"underground"} },
["0,0,1"] = { groups = {"underground"} },
["0,0,-1"] = { groups = {"underground"} }
},
fallback = true,
rotations = {0}
},{
-- straight
positions = {{x=1,y=0,z=0}},
rules = {
["1,0,0"] = { groups = {"underground"} },
["-1,0,0"] = { groups = {"underground"} }
},
rotations = {0,90}
},{
-- straight with surface access
positions = {{x=1,y=0,z=1}},
rules = {
["1,0,0"] = { groups = {"underground"} },
["-1,0,0"] = { groups = {"underground"} },
["0,1,0"] = { groups = {"underground_access"} }
},
rotations = {0,90}
},{
-- T crossing
positions = {{x=2,y=0,z=0}},
rules = {
["1,0,0"] = { groups = {"underground"} },
["-1,0,0"] = { groups = {"underground"} },
["0,0,1"] = { groups = {"underground"} }
},
rotations = {0,90,180,270}
},{
-- corner
positions = {{x=3,y=0,z=0}},
rules = {
["-1,0,0"] = { groups = {"underground"} },
["0,0,1"] = { groups = {"underground"} }
},
rotations = {0,90,180,270}
}
}
})
mapblock_tileset.register_tileset("underground_access", {
catalog = MP .. "/schematics/underground.zip",
groups = {
underground_access = true,
street = true
},
disable_orientation = {
["moreblocks:iron_stone_bricks"] = true
},
tiles = {
{
-- straight surface part
positions = {{x=1,y=1,z=1}},
rules = {
["1,0,0"] = { groups = {"street"} },
["-1,0,0"] = { groups = {"street"} },
["0,-1,0"] = { groups = {"underground"} }
},
rotations = {0,90}
}
}
})