Merge pull request 'Farming fortune drop bug fix' (#4121) from JoseDouglas26/MineClone2:mcl_farming_fortune into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4121
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
This commit is contained in:
the-real-herowl 2024-01-20 04:46:02 +00:00
commit ac8ff800ec
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}, 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(), sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0, _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", { 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}, 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(), sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0, _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", { 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}, dig_by_water=1,destroy_by_lava_flow=1, dig_by_piston=1},
sounds = mcl_sounds.node_sound_leaves_defaults(), sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0, _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) 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)