This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nornagon's profile picture

turtle.place()

Started by nornagon, 23 March 2012 - 07:30 AM
nornagon #1
Posted 23 March 2012 - 08:30 AM
I tried to place IndustrialCraft 2 copper wire with turtle.place(), but when I call that function with a slot containing copper wire selected, it simply returns false.

Is this a bug? Is it fixable, and if so, is it on the road map?
Casper7526 #2
Posted 23 March 2012 - 09:50 AM
Its not a block, currently turtles can only place blocks.
nornagon #3
Posted 23 March 2012 - 10:09 AM
Ah, I see.. what's the difference between a block and whatever copper wire is? Is there a technical reason placing one is more difficult than placing the other?

/confused
Liraal #4
Posted 23 March 2012 - 01:50 PM
yes there is and it's related to the way minecraft code is written. It is quite simple to place full blocks though.
Casper7526 #5
Posted 23 March 2012 - 02:05 PM
There are "blocks" and "items" in minecraft code. And they arnt always as "clear-cut" as what it sounds like. Sapling/Torch = block (O.o)
hamish1001 #6
Posted 23 March 2012 - 07:55 PM
so turtles can only place blocks can they place saplings?
PatriotBob #7
Posted 23 March 2012 - 08:40 PM
I believe they can, because for whichever reason, as casper said, saplings and torches are blocks…

So are turtles…
hamish1001 #8
Posted 23 March 2012 - 11:06 PM
thats weird i wouldnt call them blocks a sapling doesnt look like a block
a block looks like a block though
Espen #9
Posted 24 March 2012 - 01:01 AM
thats weird i wouldnt call them blocks a sapling doesnt look like a block a block looks like a block though
They might not look like blocks, but they might've expanded on the Java Block class (haven't checked yet), so that would make them technically blocks, i.e. they share common code. :(/>/>
hamish1001 #10
Posted 24 March 2012 - 01:45 AM
thats weird i wouldnt call them blocks a sapling doesnt look like a block a block looks like a block though
They might not look like blocks, but they might've expanded on the Java Block class (haven't checked yet), so that would make them technically blocks, i.e. they share common code. :(/>/>


:)/>/> haha
like my signature :)/>/>
Espen #11
Posted 24 March 2012 - 02:00 AM
- snip -
:)/>/> haha like my signature :)/>/>
Huh? You've lost me there. :(/>/>
hamish1001 #12
Posted 24 March 2012 - 02:05 AM
Hamishs Computer Craft Programs
underneath this
bbqroast #13
Posted 25 March 2012 - 05:01 AM
Hamishs Computer Craft Programs
underneath this
Please don't advertise yourself :(/>/>.

The block/item thing is confusing. Copper cables actually look really ugly if picked up so Alblaka gave them there own Item ID with a nice friendly texture. When you right click with this item it ddoes some fancy stuff and tells MC to place a copper cable. Turtles don't/can't execute this code so you can't place copper cable (it may be fixed but I think you can pick up "actual" copper cables with the wrench- try those).
Espen #14
Posted 25 March 2012 - 10:33 AM
Hamishs Computer Craft Programs
underneath this
I'm sorry, but I still don't get how this relates to my earlier post.
I mean, you said "haha like my signature", but I just can't see any similarity to what I said that would explain what in your signature is like my explanation about the blocks?
*very-confused*