Itemstack will taken

Now bonemeal will taken if you rightclick netherack with neigbour nylium
This commit is contained in:
debiankaios 2021-07-17 10:06:16 +00:00
parent 36a43c29b9
commit 51e4b7876a
1 changed files with 2 additions and 1 deletions

View File

@ -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})