ComputerCraft

ComputerCraft

21M Downloads

[Request] turtle.use() function

vico93 opened this issue ยท 1 comments

commented

Well, since 1.9.x grass paths were added to Minecraft. They are created using (right-click) a shovel on a grass block (or other dirt blocks if using a mod).

The actual behavior of turtles to create it, according to @SquidDev in discord is to use turtle.dig() but since shovel is also the preferred way to actually dig dirt-like blocks it cause somekind a ambiguous and confuse case for newcomers at turtle scripting. Similar thing is with turtle.dig() for hoes.

So i thought: if a proper use() function could be implemented for turtles scripting would be more organized without ambiguous cases like these.

Sorry if i wasnt much clear, but this is a idea sprouting my mind, and for request of Squid i moved the discussion from CC:Tweaked (his fork) to here.

commented

Sorry for the up, but currently i running with the issues of the lack of a separated function like that.

Another situation which further aggravates this problem is currently one cant choose what tool to use when performing a dig/digUp/digDown function; the turtle "decides" what tool to use always choosing the best of the two to break that block.

So if you want to write a program to level terrain AND hoe all the dirt you have to swap the tools everytime. I know this workaround can be satisfactory for some guys, but for beginners its a hell to make the script account what tool is currently equipped, etc.

If this function (and preferably the side argument for dig as i've opened in #579) existed it would help a lot coders to make scripts which use the best of the tools.