mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 18:09:33 +01:00
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:
commit
ac8ff800ec
3 changed files with 21 additions and 0 deletions
|
@ -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", {
|
||||
|
|
|
@ -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", {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue