-
Notifications
You must be signed in to change notification settings - Fork 0
/
terrain.lua
54 lines (51 loc) · 1.53 KB
/
terrain.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
local MP = minetest.get_modpath(minetest.get_current_modname())
mapblock_tileset.register_tileset("terrain", {
catalog = MP .. "/schematics/terrain.zip",
groups = {
terrain = true
},
tiles = {
{
positions = {{x=0,y=0,z=0}},
rules = {
["1,0,0"] = { groups = {"terrain"} },
["-1,0,0"] = { groups = {"terrain"} },
["0,0,1"] = { groups = {"terrain"} },
["0,0,-1"] = { groups = {"terrain"} }
},
fallback = true,
rotations = {0}
}
}
})
mapblock_tileset.register_tileset("terrain_slope", {
catalog = MP .. "/schematics/terrain.zip",
groups = {
terrain_slope = true
},
tiles = {
{
positions = {{x=1,y=0,z=0}},
rules = {
["0,0,1"] = { groups = {"terrain"} },
["-1,0,0"] = { groups = {"terrain"} },
["1,0,0"] = { groups = {"terrain_slope"} },
["0,0,-1"] = { groups = {"terrain_slope"} }
},
rotations = {0,90,180,270}
},{
positions = {{x=2,y=0,z=0}},
rules = {
["0,0,1"] = { groups = {"terrain"} }
},
rotations = {0,90,180,270}
},{
positions = {{x=3,y=0,z=0}},
rules = {
["0,0,1"] = { groups = {"terrain_slope"} },
["-1,0,0"] = { groups = {"terrain_slope"} }
},
rotations = {0,90,180,270}
}
}
})