Page 1 of 1

Important changes to biome definitions affecting mgvalleys

PostPosted: Mon Jun 06, 2016 19:49
by paramat
Affects 0.4.14dev.
Biome definitions can now include definable material for riverbed and a definable depth for riverbed.
These only affect mapgens that use default:river_water, so currently only mgvalleys.
MTGame has been updated but anyone with a custom biome system for use with mgvalleys should add these extra fields to avoid the default fallback of stone riverbeds. As an example here two biome definitions in MTGame:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
   minetest.register_biome({
      name = "tundra",
      --node_dust = "",
      node_top = "default:dirt_with_snow",
      depth_top = 1,
      node_filler = "default:dirt",
      depth_filler = 1,
      --node_stone = "",
      --node_water_top = "",
      --depth_water_top = ,
      --node_water = "",
      --node_river_water = "",
      node_riverbed = "default:gravel",
      depth_riverbed = 2,
      y_min = 2,
      y_max = 31000,
      heat_point = 15,
      humidity_point = 35,
   })

   minetest.register_biome({
      name = "deciduous_forest",
      --node_dust = "",
      node_top = "default:dirt_with_grass",
      depth_top = 1,
      node_filler = "default:dirt",
      depth_filler = 3,
      --node_stone = "",
      --node_water_top = "",
      --depth_water_top = ,
      --node_water = "",
      --node_river_water = "",
      node_riverbed = "default:sand",
      depth_riverbed = 2,
      y_min = 1,
      y_max = 31000,
      heat_point = 60,
      humidity_point = 65,
   })

Re: Important changes to biome definitions affecting mgvalle

PostPosted: Mon Jun 06, 2016 20:28
by burli
Thx

Re: Important changes to biome definitions affecting mgvalle

PostPosted: Mon Jun 06, 2016 20:46
by duane
+1

Re: Important changes to biome definitions affecting mgvalle

PostPosted: Thu Jun 09, 2016 18:31
by Gael de Sailly
+1

Re: Important changes to biome definitions affecting mgvalle

PostPosted: Sun Jun 12, 2016 08:54
by LNJ
I have to say I missed this setting! Nice to have it now :)
So I have to update TNG...