Jump to content




turtle.use()


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

#1 PROdotes

  • New Members
  • 34 posts

Posted 04 September 2012 - 05:03 PM

was considering making tree farms with bonemeal or a turtle that can empty a lava/water lake... but without the turtles being able to "right click" items... that is kinda hard... any info on that? or did i just miss it :D/>

edit: speaking of... a way to detect liquids would be nice... not sure how you handle that currently if you want to fill water in...

#2 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 04 September 2012 - 05:46 PM

Turtles can use bonemeal and buckets easily - turtle.place() handles that.

#3 cant_delete_account

  • Members
  • 484 posts

Posted 04 September 2012 - 07:25 PM

View PostCloudy, on 04 September 2012 - 05:46 PM, said:

Turtles can use bonemeal and buckets easily - turtle.place() handles that.
In 1.4, not if someone's using Tekkit.

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 04 September 2012 - 08:33 PM

View Postthesbros, on 04 September 2012 - 07:25 PM, said:

View PostCloudy, on 04 September 2012 - 05:46 PM, said:

Turtles can use bonemeal and buckets easily - turtle.place() handles that.
In 1.4, not if someone's using Tekkit.

Which is my problem why...? This is a suggestion. I was pointing out it is already in the game - I can't cater to people with earlier versions.

#5 PROdotes

  • New Members
  • 34 posts

Posted 05 September 2012 - 03:16 PM

So... i could put 1-2 stacks of empy IC2 cells in it and write some code that would empty a lava pool for me?
Not sure yet how i would handle it, since I don't think there's liquid detection... it would have to detect the "edges" of a lava lake, mine all around it and check if it can turtle.place() the cell... but place returns nil... and i would need a lava "block" to compare... any ideas? this is turning into a tutorial now more then suggestion :D/>

#6 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 05 September 2012 - 03:40 PM

View PostPROdotes, on 05 September 2012 - 03:16 PM, said:

So... i could put 1-2 stacks of empy IC2 cells in it and write some code that would empty a lava pool for me?
Not sure yet how i would handle it, since I don't think there's liquid detection... it would have to detect the "edges" of a lava lake, mine all around it and check if it can turtle.place() the cell... but place returns nil... and i would need a lava "block" to compare... any ideas? this is turning into a tutorial now more then suggestion :D/>

Not all items work. However most do - we will look into improving that in the future to remove special cases in our code.

#7 PROdotes

  • New Members
  • 34 posts

Posted 05 September 2012 - 04:11 PM

oki doki... tyvm ^^

#8 PROdotes

  • New Members
  • 34 posts

Posted 08 September 2012 - 12:29 PM

I have to ask...
how does turtle.place() handle fluids?
Since from testing it it seems like it does "if empty bucket is selected and block in front is water, remove water block and replace empty bucket with water bucket"...
that will be a pain to handle for "every" mod out there... specially since forge is now handling liquids i think... and don't know if it has any implemented "fill" option... say you have a block of oil and a forestry capsule... you would have to tell the CC mod "if forestry is loaded and if buildcraft is loaded, if capsule is used on oil, remove oil and replace calsule with oil capsule"...
that's a lof of ifs :D/>

#9 PROdotes

  • New Members
  • 34 posts

Posted 08 September 2012 - 12:49 PM

maybe forge should have a liquid handler... register block X as liquid... register item Y as empty container... and Z as filled container... and a way to just tell it to handle stuff like that...
my brain is kinda burnt out atm tho from coding for 3 days ^^

#10 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 08 September 2012 - 03:12 PM

There is a bucket place event which does enough. And I guess it is used already as it is yielded by the ItemBucket class itself.

#11 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 08 September 2012 - 03:13 PM

Please don't triple post. We check the type of item and then use right click behavior depending on the item - and bucket is one of those items.

As I said before we will look into improving this behavior in a future version.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users