From 1470b9df79add8fdb6ae0e023db7050afcc1d55d Mon Sep 17 00:00:00 2001 From: paramat Date: Sat, 14 Jan 2017 02:30:27 +0000 Subject: [PATCH] Tree log decorations: Replace lua tables with .mts files --- mods/default/mapgen.lua | 72 ++----------------------- mods/default/schematics/acacia_log.mts | Bin 0 -> 65 bytes mods/default/schematics/apple_log.mts | Bin 0 -> 90 bytes mods/default/schematics/aspen_log.mts | Bin 0 -> 118 bytes mods/default/schematics/jungle_log.mts | Bin 0 -> 96 bytes mods/default/schematics/pine_log.mts | Bin 0 -> 93 bytes 6 files changed, 5 insertions(+), 67 deletions(-) create mode 100644 mods/default/schematics/acacia_log.mts create mode 100644 mods/default/schematics/apple_log.mts create mode 100644 mods/default/schematics/aspen_log.mts create mode 100644 mods/default/schematics/jungle_log.mts create mode 100644 mods/default/schematics/pine_log.mts diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index d786a84..3d2da55 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -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 index 0000000000000000000000000000000000000000..037bca8c32152f0927ff027811e918e713872b91 GIT binary patch literal 65 zcmeYb3HD`RVPIxpVqmPV2a?Q*nMDl3DXD3Rr8y;5iOGq{nThcwMX9M3bCMGnnB5Fg T5<1pzXP;zaW5d8XmC+Rd7>*KA literal 0 HcmV?d00001 diff --git a/mods/default/schematics/apple_log.mts b/mods/default/schematics/apple_log.mts new file mode 100644 index 0000000000000000000000000000000000000000..e7ee8f2b84ab06165c4537cd4607ec56e3066608 GIT binary patch literal 90 zcmeYb3HD`RVPFPA#`^kt5F;_Oh=C_1H7&6;r^KqHC^eNqEG;L$JhiCUDz~&aqbNT= qH$JH-zdWyEPI3YRvztLmLITt0N3Y*XK5^uclao{6WDtsDOalOtHXH!} literal 0 HcmV?d00001 diff --git a/mods/default/schematics/aspen_log.mts b/mods/default/schematics/aspen_log.mts new file mode 100644 index 0000000000000000000000000000000000000000..180e6fd1be8b31d1578f057edd7e3fb3f321c5ed GIT binary patch literal 118 zcmeYb3HD`RVPFPA#`^kt5Hm5eh(RbNH7&6;r^G6;xF9tzzN9EMl|dveC%-(ksMspE zv^b+EKR-9VC^dya3_~=jD8D?fVoq`b1GAe!N>T#b=U1=aK7H!QBPS=Pz{w!`m2m|C DeorWw literal 0 HcmV?d00001 diff --git a/mods/default/schematics/jungle_log.mts b/mods/default/schematics/jungle_log.mts new file mode 100644 index 0000000000000000000000000000000000000000..54fa16d175a053f47c4ee55d678b33dbf507f314 GIT binary patch literal 96 zcmeYb3HD`RVPFPA#`^kt5F;_Oh(RbNH7&6;r^G6&G%r0TwWKIDl|d{mC%-(ksMspE wv^b+EKR-7(KR3Q8HKk%sasmUhn?XuK0@LS5uir{OapaMclT+Yi5Q<|=0|4+Z9U=e# literal 0 HcmV?d00001