Skip to content

Instantly share code, notes, and snippets.

View paramat's full-sized avatar
🌴
On vacation

Paramat paramat

🌴
On vacation
View GitHub Profile
Warning when running MT:
2019-09-23 18:36:47: WARNING[Main]: Irrlicht: Warning: The library version of the Irrlicht Engine (1.8.4) does not match the
version the application was compiled with (1.8.3). This may cause problems.
So i tried to do a clean build, thinking that was the solution:
make clean
result:
Add the lines below to .conf, remove '#'s to enable the settings.
To spawn in a particular biome use the heat and humidity point
values of the biome as the 'offset' parameters below. These values
are found at mods/base/mapgen.lua L64.
///////////////////
#mg_biome_np_heat = {
# offset = 50,
# scale = 0,
minetest.clear_registered_biomes()
local upper_limit = 31000
-- Taiga
minetest.register_biome({
name = "taiga",
node_dust = "default:snow",
node_top = "default:dirt_with_snow",
water_level = -31000
mgfractal_np_seabed = {
offset = -31000,
scale = 0,
spread = (600, 600, 600),
seed = 41900,
octaves = 5,
persistence = 0.6,
lacunarity = 2.0,
flags = "eased"
local building = minetest.get_modpath("default") .. "/schematics/jungle_tree.mts"
local str = minetest.serialize_schematic(building, "lua",
{lua_use_comments = false, lua_num_indent_spaces = 0}) .. " return(schematic)"
local schematic = loadstring(str)()
print(dump(schematic))
local mts_save_rev = function(name, schematic)
-- Reverse data table
local datarev = {}
local datasize = #schematic.data
for i = 1, datasize do
datarev[i] = schematic.data[datasize + 1 - i]
end
schematic.data = datarev
local s = minetest.serialize_schematic(schematic, "mts", {})