Patch mcl_cocoas for pickblock

This commit is contained in:
Mikita Wiśniewski 2024-08-03 14:28:42 +07:00
parent abfca3dc29
commit 1685f5ce2e

View file

@ -137,6 +137,7 @@ for i = 1, 3 do
on_rotate = false,
_mcl_blast_resistance = 3,
_mcl_hardness = 0.2,
_vl_pickblock = "mcl_cocoas:cocoa_beans",
_on_bone_meal = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.under
return cocoa_grow(pos)
@ -171,16 +172,16 @@ minetest.register_craftitem("mcl_cocoas:cocoa_beans", {
})
minetest.register_abm({
label = "Cocoa pod growth",
nodenames = {"mcl_cocoas:cocoa_1", "mcl_cocoas:cocoa_2"},
-- Same as potatoes
-- TODO: Tweak/balance the growth speed
interval = 50,
chance = 20,
action = function(pos, node)
mcl_cocoas.grow(pos)
end
} )
label = "Cocoa pod growth",
nodenames = {"mcl_cocoas:cocoa_1", "mcl_cocoas:cocoa_2"},
-- Same as potatoes
-- TODO: Tweak/balance the growth speed
interval = 50,
chance = 20,
action = function(pos, node)
mcl_cocoas.grow(pos)
end
})
-- Add entry aliases for the Help
if minetest.get_modpath("doc") then