Jump to content




what code line would i need to use for turtle to detect particular block ids?


  • You cannot reply to this topic
7 replies to this topic

#1 CreeperGoBoom

  • Members
  • 91 posts

Posted 30 May 2014 - 04:37 AM

is there a way for a turtle to determine if its near a particular block without carrying that block in inventory?

example:
over white wool, road outline
over black wool:: road surface

can this be done? or something similar like (next to or over an iron block)

im an Infrastructure Development Manager on a server, thinking of somehow to assist with road building using turtles

Edited by CreeperGoBoom, 30 May 2014 - 04:38 AM.


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 30 May 2014 - 05:31 AM

nope, definitely no way other than to compare to an item in the Turtle's inventory.

#3 CreeperGoBoom

  • Members
  • 91 posts

Posted 30 May 2014 - 06:18 AM

ok thanks :D

edit; is there an upcoming update to openperipherals that might be able to do this?

Edited by CreeperGoBoom, 30 May 2014 - 06:21 AM.


#4 apemanzilla

  • Members
  • 1,421 posts

Posted 30 May 2014 - 12:33 PM

View PostCreeperGoBoom, on 30 May 2014 - 06:18 AM, said:

ok thanks :D

edit; is there an upcoming update to openperipherals that might be able to do this?
Most likely not.

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 30 May 2014 - 02:04 PM

View PostCreeperGoBoom, on 30 May 2014 - 06:18 AM, said:

edit; is there an upcoming update to openperipherals that might be able to do this?
not that I know of; also Mikee would fight it, stating it was to over powered.

#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 30 May 2014 - 02:16 PM

I gather Aperture Science turtles might be able to pull it off, but I suspect they're not available for whatever version of minecraft you're using.

To a point, you can do this by checking whether the block next to a turtle is a given type of peripheral. Obviously OpenPeripheral extends the range of blocks which can be detected in this manner, but wool can't be picked up via this method.

#7 CreeperGoBoom

  • Members
  • 91 posts

Posted 31 May 2014 - 01:34 AM

thanks bomb bloke ill give that a shot

edit:hmm cant seem to get any block to appear as a form of peripheral other than the terminal glasses bridge or a chest, or anything else other than the blocks designated as "peripherals" like note blocks

Edited by CreeperGoBoom, 31 May 2014 - 02:13 AM.


#8 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 31 May 2014 - 05:37 AM

That's what I mean by "to a point". Wool, for example, isn't a peripheral and so can't be detected by looking for peripherals... I suspect railcraft tank blocks might make for a good cheap-ish "road".





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users