forked from MineClone5/MineClone5
Itemstack will taken
Now bonemeal will taken if you rightclick netherack with neigbour nylium
This commit is contained in:
parent
36a43c29b9
commit
51e4b7876a
|
@ -120,8 +120,9 @@ minetest.register_node("mcl_nether:netherrack", {
|
||||||
-- Eternal fire on top
|
-- Eternal fire on top
|
||||||
after_destruct = eternal_after_destruct,
|
after_destruct = eternal_after_destruct,
|
||||||
_on_ignite = eternal_on_ignite,
|
_on_ignite = eternal_on_ignite,
|
||||||
on_rightclick = function(pos, node, pointed_thing, player, itemstack)
|
on_rightclick = function(pos, node, pointed_thing, itemstack)
|
||||||
if pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
if pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||||
|
itemstack:take_item()
|
||||||
local ni = 0 -- stand for neigbour item
|
local ni = 0 -- stand for neigbour item
|
||||||
for x = pos.x - 1,pos.x + 1 do
|
for x = pos.x - 1,pos.x + 1 do
|
||||||
local node = minetest.get_node({x = x, y = pos.y, z = pos.z})
|
local node = minetest.get_node({x = x, y = pos.y, z = pos.z})
|
||||||
|
|
Loading…
Reference in New Issue