Make fully grown beetroot drop 1 to 4 seeds when harvested

As beetroot often did not drop seeds, players could end up with no seeds when
trying to farm beetroot. This patch guarantees that at least one beetroot seed
is dropped when harvesting beetroot.
This commit is contained in:
Nils Dagsson Moskopp 2021-06-20 19:02:35 +02:00
parent b96dad7852
commit eb7b99d59e
No known key found for this signature in database
GPG key ID: A3BC671C35191080

View file

@ -98,14 +98,15 @@ minetest.register_node("mcl_farming:beetroot", {
drawtype = "plantlike", drawtype = "plantlike",
drop = { drop = {
--[[ drops 1 beetroot guaranteed. --[[ drops 1 beetroot guaranteed.
drops 0-3 beetroot seeds: drops 1-4 beetroot seeds:
0 seeds: 42.18% 1 seed: 42.18%
1 seed: 14.06% 2 seeds: 14.06%
2 seeds: 18.75% 3 seeds: 18.75%
3 seeds: 25% ]] 4 seeds: 25% ]]
max_items = 2, max_items = 3,
items = { items = {
{ items = {"mcl_farming:beetroot_item"}, rarity = 1 }, { items = {"mcl_farming:beetroot_item"}, rarity = 1 },
{ items = {"mcl_farming:beetroot_seeds 1"}, rarity = 1 },
{ items = {"mcl_farming:beetroot_seeds 3"}, rarity = 4 }, { items = {"mcl_farming:beetroot_seeds 3"}, rarity = 4 },
{ items = {"mcl_farming:beetroot_seeds 2"}, rarity = 4 }, { items = {"mcl_farming:beetroot_seeds 2"}, rarity = 4 },
{ items = {"mcl_farming:beetroot_seeds 1"}, rarity = 4 }, { items = {"mcl_farming:beetroot_seeds 1"}, rarity = 4 },