Jump to content




[1.3] Eye


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

#1 Sebra

  • Members
  • 726 posts

Posted 03 March 2012 - 08:33 PM

Can I suggest an Eye for turtle?
It would useful to not be lost in the world...
Eye located in the middle of forward side of turtle.
Usage:
light, r, name, id, meta = turtle.look(a,:unsure:/>
where: a,b - a way to determine the scanline from the turtle eye, vertical and horizontal angles or tangenses;
light - light level of first block found;
r - if light level > 0 then r is a range to block found;
name, id, meta - if light level is high enough then turtle can see correct block info.


turtle.detect() can be upgraded too to
found, name, id, meta = turtle.detect()
where name, id, meta provided only if block found.

and of course slots contents needs to be known.

If you so much against giving out id and meta, at least allow us know the names.

#2 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 03 March 2012 - 09:15 PM

sebra i have a beta function that can detect (with limitations) what the turtle dug, so upgrading the detect is not so urgent. The eye's a nice idea however, I'd like to have the ability to know what light level the turtle's in.

#3 passinglurker

  • New Members
  • 88 posts

Posted 03 March 2012 - 10:47 PM

I like it

it could mean simple security cameras especially when paired with the monitor coming in 1.31.

but i wouldn't want this to delay 1.31

#4 rockymc

  • Members
  • 103 posts

Posted 03 March 2012 - 10:48 PM

Turtles are blind.

#5 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 03 March 2012 - 10:50 PM

but i'd gladly see at least a playerDetect() function in 1.31

#6 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 04 March 2012 - 02:04 AM

I think they're will be a turtle.compare()

#7 passinglurker

  • New Members
  • 88 posts

Posted 04 March 2012 - 02:39 AM

compare? what is that supposed to mean?

#8 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 04 March 2012 - 02:42 AM

View Postpassinglurker, on 04 March 2012 - 02:39 AM, said:

compare? what is that supposed to mean?

Compare

#9 passinglurker

  • New Members
  • 88 posts

Posted 04 March 2012 - 04:49 AM

I know that!
i mean what does that mean to the turtle and how is it supposed to detect a player with a function labeled compare?

#10 Sebra

  • Members
  • 726 posts

Posted 04 March 2012 - 07:59 AM

View PostLiraal, on 03 March 2012 - 09:15 PM, said:

sebra i have a beta function that can detect (with limitations) what the turtle dug, so upgrading the detect is not so urgent. The eye's a nice idea however, I'd like to have the ability to know what light level the turtle's in.
All, we can do now, is look, which slot got digged result. It is not enough.

View Postpassinglurker, on 03 March 2012 - 10:47 PM, said:

it could mean simple security cameras especially when paired with the monitor coming in 1.31.
Doubt it.

Quote

but i wouldn't want this to delay 1.31
I'm too.

View Postrockymc, on 03 March 2012 - 10:48 PM, said:

Turtles are blind.
And I want that to change.

View PostLiraal, on 03 March 2012 - 10:50 PM, said:

but i'd gladly see at least a playerDetect() function in 1.31
Mob and item detection needed too. But not all at once.

#11 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 04 March 2012 - 09:33 AM

You have mob detection now actually :unsure:/>

#12 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 04 March 2012 - 09:35 AM

like this?
if turtle.detect() and not turtle.dig then print("MOB!") end


#13 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 04 March 2012 - 09:36 AM

Yeah, detect will return false if a mob is in the way, but you won't be able to dig/move into a mob :unsure:/>

#14 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 04 March 2012 - 09:38 AM

but it'll behave badly when near bedrock :unsure:/>

#15 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 04 March 2012 - 09:45 AM

Bedrock: detect - true dig/move - false
Mob: detect - false dig/move - false

#16 Sebra

  • Members
  • 726 posts

Posted 04 March 2012 - 11:53 AM

So anything except mobs and bedrock can be digged?

#17 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 04 March 2012 - 11:53 AM

Yep pretty sure :unsure:/>

#18 Liraal

  • New Members
  • 477 posts
  • LocationPoland

Posted 04 March 2012 - 12:22 PM

how about ender portal frame? I suppose this calls for testing.

#19 rockymc

  • Members
  • 103 posts

Posted 04 March 2012 - 07:15 PM

View PostSebra, on 04 March 2012 - 07:59 AM, said:

View PostLiraal, on 03 March 2012 - 09:15 PM, said:

sebra i have a beta function that can detect (with limitations) what the turtle dug, so upgrading the detect is not so urgent. The eye's a nice idea however, I'd like to have the ability to know what light level the turtle's in.
All, we can do now, is look, which slot got digged result. It is not enough.

View Postpassinglurker, on 03 March 2012 - 10:47 PM, said:

it could mean simple security cameras especially when paired with the monitor coming in 1.31.
Doubt it.

Quote

but i wouldn't want this to delay 1.31
I'm too.

View Postrockymc, on 03 March 2012 - 10:48 PM, said:

Turtles are blind.
And I want that to change.

View PostLiraal, on 03 March 2012 - 10:50 PM, said:

but i'd gladly see at least a playerDetect() function in 1.31
Mob and item detection needed too. But not all at once.

You can't change it. Turtles will be blind.

#20 coolblockj

  • Members
  • 84 posts

Posted 04 March 2012 - 07:27 PM

I too, would LOVE the idea of security cameras for turtles. Well, something like that





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users