1
0
Fork 0

Fix beetroot seeds not dropping.

Changed drop rate to 1-4.

Added in Fortune drops too. (Per the minecraft wiki.)
This commit is contained in:
Michieal 2023-01-10 21:38:42 -05:00
parent 2ed3c1c480
commit ff7299a444
1 changed files with 23 additions and 8 deletions

View File

@ -102,15 +102,27 @@ minetest.register_node("mcl_farming:beetroot", {
0 seeds: 42.18% 0 seeds: 42.18%
1 seed: 14.06% 1 seed: 14.06%
2 seeds: 18.75% 2 seeds: 18.75%
3 seeds: 25% ]] 3 seeds: 25%
correction: should always drop at least 1 seed. (1-4 seeds, per the minecraft wiki)
--]]
max_items = 2, max_items = 2,
items = { items = {
{ items = {"mcl_farming:beetroot_item"}, rarity = 1 }, {items = {"mcl_farming:beetroot_item"}},
{items = {"mcl_farming:beetroot_seeds 4"}, rarity = 6},
{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 = 3},
{ items = {"mcl_farming:beetroot_seeds 1"}, rarity = 4 }, {items = {"mcl_farming:beetroot_seeds"}, rarity = 1},
}, },
}, },
_mcl_fortune_drop = {
discrete_uniform_distribution = true,
items = {"mcl_farming:beetroot_item", "mcl_farming:beetroot_seeds"},
min_count = 1,
max_count = 3,
cap = 5,
},
tiles = {"mcl_farming_beetroot_3.png"}, tiles = {"mcl_farming_beetroot_3.png"},
inventory_image = "mcl_farming_beetroot_3.png", inventory_image = "mcl_farming_beetroot_3.png",
wield_image = "mcl_farming_beetroot_3.png", wield_image = "mcl_farming_beetroot_3.png",
@ -165,3 +177,6 @@ if minetest.get_modpath("doc") then
doc.add_entry_alias("nodes", "mcl_farming:beetroot_0", "nodes", "mcl_farming:beetroot_" .. i) doc.add_entry_alias("nodes", "mcl_farming:beetroot_0", "nodes", "mcl_farming:beetroot_" .. i)
end end
end end
minetest.register_alias("beetroot_seeds", "mcl_farming:beetroot_seeds")
minetest.register_alias("beetroot", "mcl_farming:beetroot_item")