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

From ComputerCraft Wiki
Jump to: navigation, search
(Turtle range)
(unsigned template)
Line 1: Line 1:
 
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.  
 
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).
+
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).<small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:50.131.199.48|50.131.199.48]] ([[User talk:50.131.199.48|talk]] • [[Special:Contributions/50.131.199.48|contribs]]) </span></small><!-- Template:Unsigned -->
 
: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}}
Line 9: Line 9:
 
== treefarm ==
 
== treefarm ==
  
i have write a big programm (120 lines) that destory the tree full (with the leaves) when the tree is grown. so the turtle can plant an new tree an beginn at the start. My problem: the programm dont work and i cant find the faults...
+
i have write a big programm (120 lines) that destory the tree full (with the leaves) when the tree is grown. so the turtle can plant an new tree an beginn at the start. My problem: the programm dont work and i cant find the faults... <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Dude|Dude]] ([[User talk:Dude|talk]] • [[Special:Contributions/Dude|contribs]]) </span></small><!-- Template:Unsigned -->
  
  
Line 17: Line 17:
 
It works fine for small values of X (5, 10, 30, 100).. But when I put it to 300, my turtle never returned. I could not find it when walking along it's course either
 
It works fine for small values of X (5, 10, 30, 100).. But when I put it to 300, my turtle never returned. I could not find it when walking along it's course either
  
Is there a way to make minecraft process chunks that has a turtle in it, or is this a limitation to minecraft it's not possible to work around?
+
Is there a way to make minecraft process chunks that has a turtle in it, or is this a limitation to minecraft it's not possible to work around?<small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:62.16.170.203|62.16.170.203]] ([[User talk:62.16.170.203|talk]] • [[Special:Contributions/62.16.170.203|contribs]]) </span></small><!-- Template:Unsigned -->

Revision as of 19:38, 25 April 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).— Preceding unsigned comment added by 50.131.199.48 (talkcontribs)

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)

treefarm

i have write a big programm (120 lines) that destory the tree full (with the leaves) when the tree is grown. so the turtle can plant an new tree an beginn at the start. My problem: the programm dont work and i cant find the faults... — Preceding unsigned comment added by Dude (talkcontribs)


Turtle range

I've made a simple program that takes the turtle 30 spaces up into the air, and then drives X number of times forward, then X number of times backwards then lands.

It works fine for small values of X (5, 10, 30, 100).. But when I put it to 300, my turtle never returned. I could not find it when walking along it's course either

Is there a way to make minecraft process chunks that has a turtle in it, or is this a limitation to minecraft it's not possible to work around?— Preceding unsigned comment added by 62.16.170.203 (talkcontribs)