mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-24 03:21:05 +01:00
Patch mcl_cocoas for pickblock
This commit is contained in:
parent
f5249f1f31
commit
271606cf27
1 changed files with 11 additions and 10 deletions
|
@ -100,6 +100,7 @@ local crop_def = {
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
_mcl_blast_resistance = 3,
|
_mcl_blast_resistance = 3,
|
||||||
_mcl_hardness = 0.2,
|
_mcl_hardness = 0.2,
|
||||||
|
_vl_pickblock = "mcl_cocoas:cocoa_beans",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- 2nd stage
|
-- 2nd stage
|
||||||
|
@ -160,16 +161,16 @@ minetest.register_craftitem("mcl_cocoas:cocoa_beans", {
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Cocoa pod growth",
|
label = "Cocoa pod growth",
|
||||||
nodenames = {"mcl_cocoas:cocoa_1", "mcl_cocoas:cocoa_2"},
|
nodenames = {"mcl_cocoas:cocoa_1", "mcl_cocoas:cocoa_2"},
|
||||||
-- Same as potatoes
|
-- Same as potatoes
|
||||||
-- TODO: Tweak/balance the growth speed
|
-- TODO: Tweak/balance the growth speed
|
||||||
interval = 50,
|
interval = 50,
|
||||||
chance = 20,
|
chance = 20,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
mcl_cocoas.grow(pos)
|
mcl_cocoas.grow(pos)
|
||||||
end
|
end
|
||||||
} )
|
})
|
||||||
|
|
||||||
-- Add entry aliases for the Help
|
-- Add entry aliases for the Help
|
||||||
if minetest.get_modpath("doc") then
|
if minetest.get_modpath("doc") then
|
||||||
|
|
Loading…
Reference in a new issue