mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Add bonemealing callback to cocoa.
* Adds a _mcl_on_bonemealing callback to the unripe cocoa pods.
This commit is contained in:
parent
d90387edc9
commit
dcbf5cffdd
1 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,11 @@ local crop_def = {
|
|||
on_rotate = false,
|
||||
_mcl_blast_resistance = 3,
|
||||
_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
|
||||
|
@ -178,6 +183,7 @@ crop_def.selection_box = {
|
|||
},
|
||||
}
|
||||
crop_def.drop = "mcl_dye:brown 3"
|
||||
crop_def._mcl_on_bonemealing = nil
|
||||
minetest.register_node("mcl_cocoas:cocoa_3", table.copy(crop_def))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue