LolManKuba wrote:Oh yes I forgot you should edit your post and put (Converted by Jeija from the Minecraft Mod by TehKrush)
bgsmithjr wrote:Great mod!!
timber_nodenames={"default:jungletree", "default:papyrus", "default:cactus", "default:tree"}
minetest.register_on_dignode(function(pos, node, digger)
local i=1
while timber_nodenames[i]~=nil do
if node.name==timber_nodenames[i] then
np={x=pos.x, y=pos.y+1, z=pos.z}
while minetest.env:get_node(np).name==timber_nodenames[i] do
minetest.env:remove_node(np)
digger:get_inventory():add_item('main', timber_nodenames[i])
np={x=np.x, y=np.y+1, z=np.z}
end
end
i=i+1
end
end)
Josh wrote:I just tried it way faster way of getting wood! Although i had to make a tar.gz file of the mod because i have linux but it works fine
thanks jeija!
kddekadenz wrote:I changed the mod, so you get the items initially (no drops)Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
timber_nodenames={"default:jungletree", "default:papyrus", "default:cactus", "default:tree"}
minetest.register_on_dignode(function(pos, node, digger)
local i=1
while timber_nodenames[i]~=nil do
if node.name==timber_nodenames[i] then
np={x=pos.x, y=pos.y+1, z=pos.z}
while minetest.env:get_node(np).name==timber_nodenames[i] do
minetest.env:remove_node(np)
digger:get_inventory():add_item('main', timber_nodenames[i])
np={x=np.x, y=np.y+1, z=np.z}
end
end
i=i+1
end
end)
Jeija wrote:Topywo, I think that is caused by a "bug" in minetest, to be more precise:
Minetest only loads some chunks around you.
If a mod tries to acces a node that is too far away, in an unloaded chunk, minetest simply ignores that. That happens in this mod, as the stone below you seems to be unloaded as well as in the mesecons mod where too big structures don`t work.
Users browsing this forum: No registered users and 45 guests