mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Bone meal spawns less floer species on dry grass
This commit is contained in:
parent
72f5591400
commit
4083432770
1 changed files with 10 additions and 1 deletions
|
@ -123,6 +123,11 @@ mcl_dye.apply_bone_meal = function(pointed_thing)
|
||||||
-- Allium and blue orchid intentionally left out,
|
-- Allium and blue orchid intentionally left out,
|
||||||
-- those must be found by the player.
|
-- those must be found by the player.
|
||||||
}
|
}
|
||||||
|
-- Special case for dry lands
|
||||||
|
local flowers_table_dry = {
|
||||||
|
"mcl_flowers:dandelion",
|
||||||
|
"mcl_flowers:poppy",
|
||||||
|
}
|
||||||
|
|
||||||
local pos = pointed_thing.under
|
local pos = pointed_thing.under
|
||||||
local n = minetest.get_node(pos)
|
local n = minetest.get_node(pos)
|
||||||
|
@ -225,6 +230,9 @@ mcl_dye.apply_bone_meal = function(pointed_thing)
|
||||||
else
|
else
|
||||||
minetest.add_node(pos, {name="mcl_flowers:tallgrass"})
|
minetest.add_node(pos, {name="mcl_flowers:tallgrass"})
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
if n2.name == "mcl_core:dirt_with_dry_grass" then
|
||||||
|
minetest.add_node(pos, {name=flowers_table_dry[math.random(1, #flowers_table_dry)]})
|
||||||
else
|
else
|
||||||
minetest.add_node(pos, {name=flowers_table[math.random(1, #flowers_table)]})
|
minetest.add_node(pos, {name=flowers_table[math.random(1, #flowers_table)]})
|
||||||
end
|
end
|
||||||
|
@ -232,6 +240,7 @@ mcl_dye.apply_bone_meal = function(pointed_thing)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
|
|
||||||
-- Double flowers: Drop corresponding item
|
-- Double flowers: Drop corresponding item
|
||||||
|
|
Loading…
Reference in a new issue