local timber_nodenames={"default:jungletree", "default:papyrus", "default:cactus", "default:tree"}
minetest.register_on_dignode(function(pos, oldnode, digger)
local i=1
while timber_nodenames[i] ~= nil do
if oldnode.name == timber_nodenames[i] then
local npos = { x=pos.x, y=pos.y+1, z=pos.z }
local nnode = minetest.env:get_node(npos)
if nnode.name == timber_nodenames[i] then
minetest.node_dig(npos, nnode, digger)
end
end
i = i+1
end
end)
I updated this mod to give the product of a node when this one is dig, the current version clone the node in the scenario and this don't is the correct, a example, the vines:vine drop vines:vines but this mod make a vines:vine again.
I have a plan to counter-attack the growing trees mod, I think, who make bigger (and evil) trees with many side trunks, my plan is to hunt every neighbour of a trunk if is going up, like a natural tree.
Last edited by deivan on Wed Apr 10, 2013 01:26, edited 1 time in total.
How do I make it that it sends the leaves and the wood to my inventory without dropping to the ground, its a pain running around clicking each one that drops.
Soudon wrote:How do I make it that it sends the leaves and the wood to my inventory without dropping to the ground, its a pain running around clicking each one that drops.
Sounds like you need the item_drop mod by PilzAdam.
Soudon wrote:How do I make it that it sends the leaves and the wood to my inventory without dropping to the ground, its a pain running around clicking each one that drops.
Sounds like you need the item_drop mod by PilzAdam.