Difference between revisions of "Talk:Turtle (API)"

From ComputerCraft Wiki
Jump to: navigation, search
m
Line 4: Line 4:
 
:As far as I know, there's no way to check the block type with the current API. Could be a feature in the future though, never know. {{User:Scarfacial/Signature|22:17 - 8 March 2012}}
 
:As far as I know, there's no way to check the block type with the current API. Could be a feature in the future though, never know. {{User:Scarfacial/Signature|22:17 - 8 March 2012}}
 
::Would be interesting to see if one could write a function for that. {{User:Banane9/Signature|22:43 - 9 March 2012}}
 
::Would be interesting to see if one could write a function for that. {{User:Banane9/Signature|22:43 - 9 March 2012}}
:::i would see it too please. But i dont think that you can make that in a function [[User:Dude|Dude]] 22:12, 9 March 2012 (UTC)
+
:::i would see it too please. But i dont think that you can make that in a function [[User:Dude|Dude]] 22:13, 9 March 2012 (UTC)

Revision as of 22:13, 9 March 2012

Is there a way to detect a block's type? Preferably without picking it up; it would be nice to be able to write a function to check the block about to be broken against a list of "Do not break" blocks, such as Industrial craft's MFSU, which loses all held power when picked up.

Also I request a way to set server-wide list of blocks immune to the turtle.dig() functions, such as say personal safes (Industrial Craft again).

As far as I know, there's no way to check the block type with the current API. Could be a feature in the future though, never know. ( Scarfacial | Talk ) 22:17 - 8 March 2012
Would be interesting to see if one could write a function for that. ( Banane9 | Talk ) 22:43 - 9 March 2012
i would see it too please. But i dont think that you can make that in a function Dude 22:13, 9 March 2012 (UTC)