Skip to content

Commit 1470b9d

Browse files
committedJan 15, 2017
Tree log decorations: Replace lua tables with .mts files
1 parent 8715b83 commit 1470b9d

File tree

6 files changed

+5
-67
lines changed

6 files changed

+5
-67
lines changed
 

‎mods/default/mapgen.lua

+5-67
Original file line numberDiff line numberDiff line change
@@ -1204,20 +1204,7 @@ function default.register_decorations()
12041204
biomes = {"deciduous_forest"},
12051205
y_min = 1,
12061206
y_max = 31000,
1207-
schematic = {
1208-
size = {x = 3, y = 3, z = 1},
1209-
data = {
1210-
{name = "air", prob = 0},
1211-
{name = "air", prob = 0},
1212-
{name = "air", prob = 0},
1213-
{name = "default:tree", param2 = 12, prob = 191},
1214-
{name = "default:tree", param2 = 12},
1215-
{name = "default:tree", param2 = 12, prob = 127},
1216-
{name = "air", prob = 0},
1217-
{name = "flowers:mushroom_brown", prob = 63},
1218-
{name = "air", prob = 0},
1219-
},
1220-
},
1207+
schematic = minetest.get_modpath("default") .. "/schematics/apple_log.mts",
12211208
flags = "place_center_x",
12221209
rotation = "random",
12231210
})
@@ -1245,20 +1232,7 @@ function default.register_decorations()
12451232
biomes = {"rainforest", "rainforest_swamp"},
12461233
y_min = 1,
12471234
y_max = 31000,
1248-
schematic = {
1249-
size = {x = 3, y = 3, z = 1},
1250-
data = {
1251-
{name = "air", prob = 0},
1252-
{name = "air", prob = 0},
1253-
{name = "air", prob = 0},
1254-
{name = "default:jungletree", param2 = 12, prob = 191},
1255-
{name = "default:jungletree", param2 = 12},
1256-
{name = "default:jungletree", param2 = 12, prob = 127},
1257-
{name = "air", prob = 0},
1258-
{name = "flowers:mushroom_brown", prob = 127},
1259-
{name = "air", prob = 0},
1260-
},
1261-
},
1235+
schematic = minetest.get_modpath("default") .. "/schematics/jungle_log.mts",
12621236
flags = "place_center_x",
12631237
rotation = "random",
12641238
})
@@ -1299,20 +1273,7 @@ function default.register_decorations()
12991273
biomes = {"taiga", "coniferous_forest"},
13001274
y_min = 1,
13011275
y_max = 31000,
1302-
schematic = {
1303-
size = {x = 3, y = 3, z = 1},
1304-
data = {
1305-
{name = "air", prob = 0},
1306-
{name = "air", prob = 0},
1307-
{name = "air", prob = 0},
1308-
{name = "default:pine_tree", param2 = 12, prob = 191},
1309-
{name = "default:pine_tree", param2 = 12},
1310-
{name = "default:pine_tree", param2 = 12, prob = 127},
1311-
{name = "air", prob = 0},
1312-
{name = "flowers:mushroom_red", prob = 63},
1313-
{name = "air", prob = 0},
1314-
},
1315-
},
1276+
schematic = minetest.get_modpath("default") .. "/schematics/pine_log.mts",
13161277
flags = "place_center_x",
13171278
rotation = "random",
13181279
})
@@ -1354,17 +1315,7 @@ function default.register_decorations()
13541315
biomes = {"savanna"},
13551316
y_min = 1,
13561317
y_max = 31000,
1357-
schematic = {
1358-
size = {x = 3, y = 2, z = 1},
1359-
data = {
1360-
{name = "air", prob = 0},
1361-
{name = "air", prob = 0},
1362-
{name = "air", prob = 0},
1363-
{name = "default:acacia_tree", param2 = 12, prob = 191},
1364-
{name = "default:acacia_tree", param2 = 12},
1365-
{name = "default:acacia_tree", param2 = 12, prob = 127},
1366-
},
1367-
},
1318+
schematic = minetest.get_modpath("default") .. "/schematics/acacia_log.mts",
13681319
flags = "place_center_x",
13691320
rotation = "random",
13701321
})
@@ -1405,20 +1356,7 @@ function default.register_decorations()
14051356
biomes = {"deciduous_forest"},
14061357
y_min = 1,
14071358
y_max = 31000,
1408-
schematic = {
1409-
size = {x = 3, y = 3, z = 1},
1410-
data = {
1411-
{name = "air", prob = 0},
1412-
{name = "air", prob = 0},
1413-
{name = "air", prob = 0},
1414-
{name = "default:aspen_tree", param2 = 12},
1415-
{name = "default:aspen_tree", param2 = 12},
1416-
{name = "default:aspen_tree", param2 = 12, prob = 127},
1417-
{name = "flowers:mushroom_red", prob = 63},
1418-
{name = "flowers:mushroom_brown", prob = 63},
1419-
{name = "air", prob = 0},
1420-
},
1421-
},
1359+
schematic = minetest.get_modpath("default") .. "/schematics/aspen_log.mts",
14221360
flags = "place_center_x",
14231361
rotation = "random",
14241362
})
65 Bytes
Binary file not shown.

‎mods/default/schematics/apple_log.mts

90 Bytes
Binary file not shown.

‎mods/default/schematics/aspen_log.mts

118 Bytes
Binary file not shown.
96 Bytes
Binary file not shown.

‎mods/default/schematics/pine_log.mts

93 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.