mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 00:49:34 +01:00
Handle bonemealing in the sweetberry on_rightclick
This commit is contained in:
parent
328a377940
commit
142f3d6d5a
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ for i=0, 3 do
|
||||||
_mcl_blast_resistance = 0,
|
_mcl_blast_resistance = 0,
|
||||||
_mcl_hardness = 0,
|
_mcl_hardness = 0,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
if mcl_dye and clicker:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||||
|
mcl_dye.apply_bone_meal({under=pos},clicker)
|
||||||
|
return
|
||||||
|
end
|
||||||
local stage
|
local stage
|
||||||
if node.name:find("_2") then
|
if node.name:find("_2") then
|
||||||
stage = 2
|
stage = 2
|
||||||
|
|
Loading…
Reference in a new issue