1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

[minetestforfun_game] Update

This commit is contained in:
LeMagnesium
2015-10-21 14:06:13 +02:00
parent 95c4665a83
commit 01dea59dd5
8 changed files with 23 additions and 30 deletions

View File

@ -33,7 +33,8 @@ local function book_on_use(itemstack, user, pointed_thing)
formspec = "size[8,8]"..default.gui_bg..
"label[0.5,0.5;by "..owner.."]"..
"label[0.5,0;"..minetest.formspec_escape(title).."]"..
"textarea[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text)..";]"
"tableoptions[background=#00000000;highlight=#00000000;border=false]"..
"table[0.5,1.5;7.5,7;;"..minetest.formspec_escape(text):gsub("\n", ",")..";1]"
end
minetest.show_formspec(user:get_player_name(), "default:book", formspec)
end

View File

@ -669,9 +669,9 @@ function default.register_biomes()
minetest.register_biome({
name = "glacier_ocean",
node_dust = "default:snowblock",
node_top = "default:gravel",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:gravel",
node_filler = "default:sand",
depth_filler = 2,
--node_stone = "",
--node_water_top = "",
@ -810,26 +810,8 @@ function default.register_biomes()
--depth_water_top = ,
--node_water = "",
--node_river_water = "",
y_min = 9,
y_max = 31000,
heat_point = 45,
humidity_point = 75,
})
minetest.register_biome({
name = "coniferous_forest_dunes",
--node_dust = "",
node_top = "default:sand",
depth_top = 1,
node_filler = "default:sand",
depth_filler = 2,
--node_stone = "",
--node_water_top = "",
--depth_water_top = ,
--node_water = "",
--node_river_water = "",
y_min = 5,
y_max = 8,
y_max = 31000,
heat_point = 45,
humidity_point = 75,
})
@ -1245,7 +1227,7 @@ local function register_grass_decoration(offset, scale, length)
persist = 0.6
},
biomes = {"stone_grassland", "sandstone_grassland",
"deciduous_forest", "coniferous_forest", "coniferous_forest_dunes"},
"deciduous_forest", "coniferous_forest"},
y_min = 1,
y_max = 31000,
decoration = "default:grass_"..length,

View File

@ -16,6 +16,10 @@ local function can_grow(pos)
if is_soil == 0 then
return false
end
local ll = minetest.get_node_light(pos)
if not ll or ll < 13 then -- Minimum light level for growth
return false -- matches grass, wheat and cotton
end
return true
end