Hello!
I personally don't like the snow-pine biome (and also the normal snow biome but i need that because i like to get some snow and ice) and i want to remove it completely from the v7 mapgen, and i don't know how to do that.
Can someone help me out with this please?
[SOLVED] Snow biomes
- pampogokiraly
- Member
- Posts: 248
- Joined: Wed Jan 08, 2020 22:21
- In-game: i_love_mesecon
[SOLVED] Snow biomes
Last edited by pampogokiraly on Sat Feb 08, 2020 07:27, edited 1 time in total.
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!
Re: [HELP] Snow biomes
Go to your minetest directory and then open games/minetest_game/mods/default/mapgen.lua in your code editor of choice.
To find the biome definitions of the taiga, search for '-- Taiga' with ctrl+F. You can then comment out the biome definition blocks of the taiga biomes by surrounding them with --[[ <code> ]]
Before:
After:
To find the biome definitions of the taiga, search for '-- Taiga' with ctrl+F. You can then comment out the biome definition blocks of the taiga biomes by surrounding them with --[[ <code> ]]
Before:
Code: Select all
minetest.register_biome({
name = "tundra_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = -256,
y_min = -31000,
heat_point = 0,
humidity_point = 40,
})
-- Taiga
minetest.register_biome({
name = "taiga",
node_dust = "default:snow",
node_top = "default:dirt_with_snow",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 31000,
y_min = 4,
heat_point = 25,
humidity_point = 70,
})
minetest.register_biome({
name = "taiga_ocean",
node_dust = "default:snow",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
vertical_blend = 1,
y_max = 3,
y_min = -255,
heat_point = 25,
humidity_point = 70,
})
minetest.register_biome({
name = "taiga_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = -256,
y_min = -31000,
heat_point = 25,
humidity_point = 70,
})
-- Snowy grassland
minetest.register_biome({
name = "snowy_grassland",
node_dust = "default:snow",
node_top = "default:dirt_with_snow",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 1,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 31000,
y_min = 4,
heat_point = 20,
humidity_point = 35,
})
After:
Code: Select all
minetest.register_biome({
name = "tundra_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = -256,
y_min = -31000,
heat_point = 0,
humidity_point = 40,
})
-- Taiga
--[[
minetest.register_biome({
name = "taiga",
node_dust = "default:snow",
node_top = "default:dirt_with_snow",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 31000,
y_min = 4,
heat_point = 25,
humidity_point = 70,
})
minetest.register_biome({
name = "taiga_ocean",
node_dust = "default:snow",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
vertical_blend = 1,
y_max = 3,
y_min = -255,
heat_point = 25,
humidity_point = 70,
})
minetest.register_biome({
name = "taiga_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = -256,
y_min = -31000,
heat_point = 25,
humidity_point = 70,
})
]]
-- Snowy grassland
minetest.register_biome({
name = "snowy_grassland",
node_dust = "default:snow",
node_top = "default:dirt_with_snow",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 1,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
y_max = 31000,
y_min = 4,
heat_point = 20,
humidity_point = 35,
})
- Lone_Wolf
- Member
- Posts: 2437
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: Lone_Wolf or LoneWolfHT
- In-game: Lone_Wolf
- Location: Not there, THERE!
Re: [HELP] Snow biomes
For those who don't notice (like me) those code blocks are scrollable
-
- Member
- Posts: 1189
- Joined: Thu Aug 27, 2015 10:55
- GitHub: berengma
- IRC: Gundul
- Location: Europe/Asia
- Contact:
Re: [HELP] Snow biomes
This forum has an every day surprise for everyone of us :)Lone_Wolf wrote:For those who don't notice (like me) those code blocks are scrollable
Instead of messing around in minetest biomes, just write a small mod to reregister the biome to your needs:
Code: Select all
if minetest.registered_biomes["rainforest"] then
local rainforest = minetest.registered_biomes["rainforest"]
rainforest.node_river_water = "water_life:muddy_river_water_source"
rainforest.node_riverbed = "default:dirt"
rainforest.depth_riverbed = 2
rainforest.node_water_top = "water_life:muddy_river_water_source"
rainforest.depth_water_top = 10
minetest.unregister_biome("rainforest")
minetest.register_biome(rainforest)
end
Just see lua_api in your minetest doc folder.
My servers: Jungle, Lilly in the valley click for my mods
- pampogokiraly
- Member
- Posts: 248
- Joined: Wed Jan 08, 2020 22:21
- In-game: i_love_mesecon
Re: [SOLVED] Snow biomes
Thank you for all the help!
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!
Who is online
Users browsing this forum: No registered users and 7 guests