Move commented out bamboo bone meal code into mods/ITEMS/mcl_bamboo/bamboo_base.lua
This commit is contained in:
parent
6d007bdac1
commit
e9af67b4d4
|
@ -63,6 +63,12 @@ local bamboo_def = {
|
||||||
wield_image = "mcl_bamboo_bamboo_shoot.png",
|
wield_image = "mcl_bamboo_bamboo_shoot.png",
|
||||||
_mcl_blast_resistance = 1,
|
_mcl_blast_resistance = 1,
|
||||||
_mcl_hardness = 1,
|
_mcl_hardness = 1,
|
||||||
|
--[[
|
||||||
|
_mcl_on_bonemealing = function(pointed_thing, placer)
|
||||||
|
local pos = pointed_thing.under
|
||||||
|
return mcl_bamboo.grow_bamboo(pos, true)
|
||||||
|
end,
|
||||||
|
]]
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
|
|
@ -68,17 +68,6 @@ local function legacy_apply_bone_meal(pointed_thing, placer)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
|
||||||
Here for when Bonemeal becomes an api, there's code if needed for handling applying to bamboo.
|
|
||||||
-- Handle applying bonemeal to bamboo.
|
|
||||||
elseif mcl_bamboo.is_bamboo(n.name) then
|
|
||||||
local success = mcl_bamboo.grow_bamboo(pos, true)
|
|
||||||
if success then
|
|
||||||
mcl_dye.add_bone_meal_particle(pos)
|
|
||||||
end
|
|
||||||
return success
|
|
||||||
--]]
|
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
-- End legacy bone meal API
|
-- End legacy bone meal API
|
||||||
|
|
Loading…
Reference in New Issue