Posted 22 June 2014 - 04:33 AM
Hi,
I was messing around with a Turtle and an ExtraUtilities Trading Station to see if I could build an automated trader (sell paper, buy enchants, stuff like that)
Spent a quarter of an hour learning the syntax of all of the api calls and their returns, started to work up to the final masterpiece of code, ran it and.. the final function performTrade failed. There was no reason for this failure as far as I can tell, the turtle has plenty of emeralds in inventory, and I set him up with only 1 villager nearby wanting to sell for 1 emerald. No matter what I do, it always returns False.
Has anyone else run into this and is there a workaround?
http://pastebin.com/LVSwvCKd is a stripped down version of the code that reproduces the problem.
Setup is:
That code prints out a load of things unnecessarily but it was more to prove to myself at that point that I wasn't gong crazy.
I was messing around with a Turtle and an ExtraUtilities Trading Station to see if I could build an automated trader (sell paper, buy enchants, stuff like that)
Spent a quarter of an hour learning the syntax of all of the api calls and their returns, started to work up to the final masterpiece of code, ran it and.. the final function performTrade failed. There was no reason for this failure as far as I can tell, the turtle has plenty of emeralds in inventory, and I set him up with only 1 villager nearby wanting to sell for 1 emerald. No matter what I do, it always returns False.
Has anyone else run into this and is there a workaround?
http://pastebin.com/LVSwvCKd is a stripped down version of the code that reproduces the problem.
Setup is:
- Turtle with Trading Station on right hand side,
- villager in front
That code prints out a load of things unnecessarily but it was more to prove to myself at that point that I wasn't gong crazy.