commit 8ffa91c07b5dd1903a03e585748b232bc8dbbef3 Author: Sokomine Date: Thu Sep 10 17:26:03 2015 +0200 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..f4394ff --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ + +New village type for https://github.com/Sokomine/mg_villages/ + +This mod does depend on mg_villages. + +The buildings found in this mod (in the schems/ folder) have been built by +BorisGrishenko. See https://forum.minetest.net/viewtopic.php?f=12&t=10705 + +There are only three houses in this village type. More ought to be added. diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..306196c --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +mg_villages diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..0957480 --- /dev/null +++ b/init.lua @@ -0,0 +1,29 @@ + +village_modern_houses = {} + +village_modern_houses.replacements_modern_housees = function( housetype, pr, replacements ) + -- replace the wood - even though those houses use only a limited amount of wood + local wood_type = mg_villages.replace_materials( replacements, pr, + {'default:wood'}, + {''}, + { 'default:wood', 'default:junglewood', 'mg:savannawood', 'mg:pinewood' }, + 'default:wood'); + mg_villages.replace_tree_trunk( replacements, wood_type ); + mg_villages.replace_saplings( replacements, wood_type ); + return replacements; +end + +-- add a new village type for all those buildings +mg_villages.add_village_type( 'modern_houses', { min = 15, max = 30, space_between_buildings=1, mods={}, texture = 'default_steelblock.png', + -- the roads are a bit diffrent + roadsize_list = {6,6,6,6,6}, + road_materials = {"default:coalblock", "default:coalblock", "default:coalblock", + "default:coalblock", "default:coalblock", "default:coalblock", "default:coalblock"}, + replacement_function = village_modern_houses.replacements_modern_houses}); + +local path = minetest.get_modpath( 'village_modern_houses' )..'/schems/'; + + +mg_villages.add_building( { scm="modern_house_a_5_270", mts_path=path, weight={modern_houses=1, single=1}, inh=2, typ='house'}); +mg_villages.add_building( { scm="modern_house_facade_2_90", mts_path=path, weight={modern_houses=1, single=1}, inh=2, typ='house'}); +mg_villages.add_building( { scm="modern_house_serenity_1_180", mts_path=path, weight={modern_houses=1, single=1}, inh=2, typ='house'}); diff --git a/schems/modern_house_a_5_270.mts b/schems/modern_house_a_5_270.mts new file mode 100644 index 0000000..cc63832 Binary files /dev/null and b/schems/modern_house_a_5_270.mts differ diff --git a/schems/modern_house_facade_2_90.mts b/schems/modern_house_facade_2_90.mts new file mode 100644 index 0000000..e604be6 Binary files /dev/null and b/schems/modern_house_facade_2_90.mts differ diff --git a/schems/modern_house_serenity_1_180.mts b/schems/modern_house_serenity_1_180.mts new file mode 100644 index 0000000..616348e Binary files /dev/null and b/schems/modern_house_serenity_1_180.mts differ