Merge pull request 'Beetroot Seed fix' (#3294) from beetroot_seed_fix into master

Reviewed-on: MineClone2/MineClone2#3294
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
ancientmarinerdev 2023-01-11 22:27:58 +00:00
commit 482a6071f5
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%
1 seed: 14.06%
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,
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 2"}, rarity = 4 },
{ items = {"mcl_farming:beetroot_seeds 1"}, rarity = 4 },
{items = {"mcl_farming:beetroot_seeds 2"}, rarity = 3},
{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"},
inventory_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)
end
end
minetest.register_alias("beetroot_seeds", "mcl_farming:beetroot_seeds")
minetest.register_alias("beetroot", "mcl_farming:beetroot_item")