Dynamic Trees

Dynamic Trees

25M Downloads

Computercraft turtles can't fell trees

Jummit opened this issue · 7 comments

commented

Simple issue: When a turtle performs a turtle.dig() on a dynamic trees trunk only the block the turtle targets gets destroyed, but the tree still stands. I am using CC-tweaked (from SquidDev), a maintained fork of CC.

commented

Might be worth trying now in the latest alpha on curseforge.

commented

This works now but it does not work for thick trees. Use turtle.suck() twice after turtle.dig() to obtain the dropped log and stick items.

commented

This might be because the code is casting something to a player-related class, or using player-related events. Another cause could be if they use the World class to break blocks instead of using a player.

commented

I always assumed that the computercraft turtle used a fake player.

commented
commented

The use fake players so permissions work. I was wondering too, why that doesn't work.

commented

So how should this be handled? Since it can also cause other issues with any code that uses World.