Farming fortune drop bug fix

This commit is contained in:
JoseDouglas26 2024-01-04 16:19:50 -03:00 committed by the-real-herowl
parent 681175c463
commit 3b60a8eb18
3 changed files with 21 additions and 0 deletions

View file

@ -78,6 +78,13 @@ minetest.register_node("mcl_farming:carrot", {
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
_mcl_fortune_drop = {
discrete_uniform_distribution = true,
items = {"mcl_farming:carrot_item"},
min_count = 2,
max_count = 4,
cap = 5,
}
})
minetest.register_craftitem("mcl_farming:carrot_item", {

View file

@ -83,6 +83,13 @@ minetest.register_node("mcl_farming:potato", {
groups = {dig_immediate=3, not_in_creative_inventory=1,plant=1,attached_node=1,dig_by_water=1,destroy_by_lava_flow=1,dig_by_piston=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
_mcl_fortune_drop = {
discrete_uniform_distribution = true,
items = {"mcl_farming:potato_item"},
min_count = 2,
max_count = 4,
cap = 5
}
})
minetest.register_craftitem("mcl_farming:potato_item", {

View file

@ -89,6 +89,13 @@ minetest.register_node("mcl_farming:wheat", {
dig_by_water=1,destroy_by_lava_flow=1, dig_by_piston=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
_mcl_fortune_drop = {
discrete_uniform_distribution = true,
items = {"mcl_farming:wheat_seeds"},
min_count = 1,
max_count = 6,
cap = 7
}
})
mcl_farming:add_plant("plant_wheat", "mcl_farming:wheat", {"mcl_farming:wheat_1", "mcl_farming:wheat_2", "mcl_farming:wheat_3", "mcl_farming:wheat_4", "mcl_farming:wheat_5", "mcl_farming:wheat_6", "mcl_farming:wheat_7"}, 25, 20)