Add bonemealing callback to cocoa.
* Adds a _mcl_on_bonemealing callback to the unripe cocoa pods.
This commit is contained in:
parent
447be4c29e
commit
66a5b64ebf
|
@ -100,6 +100,11 @@ 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,
|
||||||
|
_mcl_on_bonemealing = function(pointed_thing, placer)
|
||||||
|
local pos = pointed_thing.under
|
||||||
|
mcl_cocoas.grow(pos)
|
||||||
|
return true
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
-- 2nd stage
|
-- 2nd stage
|
||||||
|
@ -145,6 +150,7 @@ crop_def.selection_box = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
crop_def.drop = "mcl_cocoas:cocoa_beans 3"
|
crop_def.drop = "mcl_cocoas:cocoa_beans 3"
|
||||||
|
crop_def._mcl_on_bonemealing = nil
|
||||||
minetest.register_node("mcl_cocoas:cocoa_3", table.copy(crop_def))
|
minetest.register_node("mcl_cocoas:cocoa_3", table.copy(crop_def))
|
||||||
|
|
||||||
minetest.register_craftitem("mcl_cocoas:cocoa_beans", {
|
minetest.register_craftitem("mcl_cocoas:cocoa_beans", {
|
||||||
|
|
Loading…
Reference in New Issue