Re: [Mod] Villages for Minetest [mg_villages]
Posted: Thu Mar 09, 2017 15:31
Hi Sokomine - I'm working on a villagers mod that spawns into your beautiful villages. I'm doing this by hooking directly into your API function "mg_villages.part_of_village_spawned = function( village, minp, maxp, data, param2_data, a, cid )"
I'm making good progress. Each villager now spawns next to their building (except for roads) standing on an open area and with the following random characteristics: gender, height, eye color, clothing based on gender, names based on gender, upper body and lower body clothing, shoes/boots, and clothing type and color.
The next feature I want to add is for the villager's clothing to correspond to the village/town's climate. I already have the code implemented in my mod where I can give a parameter (eg. hot, cold, normal) and the villagers clothing matches that climate.
All I'm wondering now is if your mg_villages mod has a variable or parameter available that tracks the climate of the region where that village/town is generated. I would like to pass that parameter to my mod so my villagers can wear long-sleeved clothing and jackets for snowy towns and shorts and sleeveless tops for desert towns!
I'm making good progress. Each villager now spawns next to their building (except for roads) standing on an open area and with the following random characteristics: gender, height, eye color, clothing based on gender, names based on gender, upper body and lower body clothing, shoes/boots, and clothing type and color.
The next feature I want to add is for the villager's clothing to correspond to the village/town's climate. I already have the code implemented in my mod where I can give a parameter (eg. hot, cold, normal) and the villagers clothing matches that climate.
All I'm wondering now is if your mg_villages mod has a variable or parameter available that tracks the climate of the region where that village/town is generated. I would like to pass that parameter to my mod so my villagers can wear long-sleeved clothing and jackets for snowy towns and shorts and sleeveless tops for desert towns!