Tree log decorations: Replace lua tables with .mts files
authorparamat <mat.gregory@virginmedia.com>
Sat, 14 Jan 2017 02:30:27 +0000 (02:30 +0000)
committerparamat <mat.gregory@virginmedia.com>
Sun, 15 Jan 2017 04:29:56 +0000 (04:29 +0000)
mods/default/mapgen.lua
mods/default/schematics/acacia_log.mts [new file with mode: 0644]
mods/default/schematics/apple_log.mts [new file with mode: 0644]
mods/default/schematics/aspen_log.mts [new file with mode: 0644]
mods/default/schematics/jungle_log.mts [new file with mode: 0644]
mods/default/schematics/pine_log.mts [new file with mode: 0644]

index d786a841f7e8944db66d56fcd174191e4431271c..3d2da5574e9190b93963dc319ee49ce50242ded6 100644 (file)
@@ -1204,20 +1204,7 @@ function default.register_decorations()
                biomes = {"deciduous_forest"},
                y_min = 1,
                y_max = 31000,
-               schematic = {
-                       size = {x = 3, y = 3, z = 1},
-                       data = {
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "default:tree", param2 = 12, prob = 191},
-                               {name = "default:tree", param2 = 12},
-                               {name = "default:tree", param2 = 12, prob = 127},
-                               {name = "air", prob = 0},
-                               {name = "flowers:mushroom_brown", prob = 63},
-                               {name = "air", prob = 0},
-                       },
-               },
+               schematic = minetest.get_modpath("default") .. "/schematics/apple_log.mts",
                flags = "place_center_x",
                rotation = "random",
        })
@@ -1245,20 +1232,7 @@ function default.register_decorations()
                biomes = {"rainforest", "rainforest_swamp"},
                y_min = 1,
                y_max = 31000,
-               schematic = {
-                       size = {x = 3, y = 3, z = 1},
-                       data = {
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "default:jungletree", param2 = 12, prob = 191},
-                               {name = "default:jungletree", param2 = 12},
-                               {name = "default:jungletree", param2 = 12, prob = 127},
-                               {name = "air", prob = 0},
-                               {name = "flowers:mushroom_brown", prob = 127},
-                               {name = "air", prob = 0},
-                       },
-               },
+               schematic = minetest.get_modpath("default") .. "/schematics/jungle_log.mts",
                flags = "place_center_x",
                rotation = "random",
        })
@@ -1299,20 +1273,7 @@ function default.register_decorations()
                biomes = {"taiga", "coniferous_forest"},
                y_min = 1,
                y_max = 31000,
-               schematic = {
-                       size = {x = 3, y = 3, z = 1},
-                       data = {
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "default:pine_tree", param2 = 12, prob = 191},
-                               {name = "default:pine_tree", param2 = 12},
-                               {name = "default:pine_tree", param2 = 12, prob = 127},
-                               {name = "air", prob = 0},
-                               {name = "flowers:mushroom_red", prob = 63},
-                               {name = "air", prob = 0},
-                       },
-               },
+               schematic = minetest.get_modpath("default") .. "/schematics/pine_log.mts",
                flags = "place_center_x",
                rotation = "random",
        })
@@ -1354,17 +1315,7 @@ function default.register_decorations()
                biomes = {"savanna"},
                y_min = 1,
                y_max = 31000,
-               schematic = {
-                       size = {x = 3, y = 2, z = 1},
-                       data = {
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "default:acacia_tree", param2 = 12, prob = 191},
-                               {name = "default:acacia_tree", param2 = 12},
-                               {name = "default:acacia_tree", param2 = 12, prob = 127},
-                       },
-               },
+               schematic = minetest.get_modpath("default") .. "/schematics/acacia_log.mts",
                flags = "place_center_x",
                rotation = "random",
        })
@@ -1405,20 +1356,7 @@ function default.register_decorations()
                biomes = {"deciduous_forest"},
                y_min = 1,
                y_max = 31000,
-               schematic = {
-                       size = {x = 3, y = 3, z = 1},
-                       data = {
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "air", prob = 0},
-                               {name = "default:aspen_tree", param2 = 12},
-                               {name = "default:aspen_tree", param2 = 12},
-                               {name = "default:aspen_tree", param2 = 12, prob = 127},
-                               {name = "flowers:mushroom_red", prob = 63},
-                               {name = "flowers:mushroom_brown", prob = 63},
-                               {name = "air", prob = 0},
-                       },
-               },
+               schematic = minetest.get_modpath("default") .. "/schematics/aspen_log.mts",
                flags = "place_center_x",
                rotation = "random",
        })
diff --git a/mods/default/schematics/acacia_log.mts b/mods/default/schematics/acacia_log.mts
new file mode 100644 (file)
index 0000000..037bca8
Binary files /dev/null and b/mods/default/schematics/acacia_log.mts differ
diff --git a/mods/default/schematics/apple_log.mts b/mods/default/schematics/apple_log.mts
new file mode 100644 (file)
index 0000000..e7ee8f2
Binary files /dev/null and b/mods/default/schematics/apple_log.mts differ
diff --git a/mods/default/schematics/aspen_log.mts b/mods/default/schematics/aspen_log.mts
new file mode 100644 (file)
index 0000000..180e6fd
Binary files /dev/null and b/mods/default/schematics/aspen_log.mts differ
diff --git a/mods/default/schematics/jungle_log.mts b/mods/default/schematics/jungle_log.mts
new file mode 100644 (file)
index 0000000..54fa16d
Binary files /dev/null and b/mods/default/schematics/jungle_log.mts differ
diff --git a/mods/default/schematics/pine_log.mts b/mods/default/schematics/pine_log.mts
new file mode 100644 (file)
index 0000000..744c38b
Binary files /dev/null and b/mods/default/schematics/pine_log.mts differ