forked from mtcontrib/bonemeal
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
53aefab9a2
9
init.lua
9
init.lua
@ -86,7 +86,7 @@ end
|
||||
|
||||
|
||||
-- sapling check
|
||||
local function check_sapling(pos, sapling_node, light_ok)
|
||||
local function check_sapling(pos, sapling_node, strength, light_ok)
|
||||
|
||||
-- what is sapling placed on?
|
||||
local under = minetest.get_node({
|
||||
@ -128,7 +128,9 @@ local function check_sapling(pos, sapling_node, light_ok)
|
||||
|
||||
particle_effect(pos)
|
||||
|
||||
grow_tree(pos, saplings[n][2])
|
||||
if math.random(5 - strength) == 1 then
|
||||
grow_tree(pos, saplings[n][2])
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
@ -474,8 +476,7 @@ function bonemeal:on_use(pos, strength, node)
|
||||
end
|
||||
|
||||
-- check for sapling growth
|
||||
if random(5 - strength) == 1
|
||||
and check_sapling(pos, node.name, light_ok) then
|
||||
if check_sapling(pos, node.name, strength, light_ok) then
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
# textdomain:bonemeal
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal geladen
|
||||
Bone=Knochen
|
||||
Bone Meal=Knochenmehl
|
||||
Fertiliser=Dünger
|
||||
|
@ -1,5 +1,4 @@
|
||||
# textdomain:bonemeal
|
||||
#[MOD] bonemeal loaded=
|
||||
#Bone=
|
||||
#Bone Meal=
|
||||
#Fertiliser=
|
||||
|
@ -1,5 +1,4 @@
|
||||
# textdomain:bonemeal
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal cargado
|
||||
Bone=Hueso
|
||||
Bone Meal=Comida de hueso
|
||||
Fertiliser=Fertilizante
|
||||
|
@ -1,5 +1,4 @@
|
||||
# textdomain:bonemeal
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal chargé
|
||||
Bone=Os
|
||||
Bone Meal=Poudre d'os
|
||||
Fertiliser=Engrais
|
||||
|
@ -1,5 +1,4 @@
|
||||
# textdomain:bonemeal
|
||||
[MOD] bonemeal loaded=[MOD] bonemeal caricata
|
||||
Bone=Ossa
|
||||
Bone Meal=Pasto osseo
|
||||
Fertiliser=Fertilizzante
|
||||
|
@ -1,5 +1,4 @@
|
||||
# textdomain:bonemeal
|
||||
[MOD] bonemeal loaded=[MOD] костная мука загружена
|
||||
Bone=Кость
|
||||
Bone Meal=Костная Мука
|
||||
Fertiliser=Удобрение
|
||||
|
3
mods.lua
3
mods.lua
@ -184,7 +184,8 @@ if minetest.get_modpath("ethereal") then
|
||||
"flowers:tulip", "flowers:viola", "ethereal:strawberry_7"}},
|
||||
{"ethereal:gray_dirt", {}, {"ethereal:snowygrass", "", ""}},
|
||||
{"ethereal:cold_dirt", {}, {"ethereal:snowygrass", "", ""}},
|
||||
{"ethereal:mushroom_dirt", {}, {"flowers:mushroom_red", "flowers:mushroom_brown", "", "", ""}},
|
||||
{"ethereal:mushroom_dirt", {}, {"flowers:mushroom_red", "flowers:mushroom_brown",
|
||||
"ethereal:spore_grass", "ethereal:spore_grass", "", "", ""}},
|
||||
{"ethereal:jungle_dirt", grass, {"default:junglegrass", "", "", ""}},
|
||||
{"ethereal:grove_dirt", grass, {"ethereal:fern", "", "", ""}},
|
||||
{"ethereal:bamboo_dirt", grass, {}}
|
||||
|
Loading…
Reference in New Issue
Block a user