Jump to content




Enchanting with Turtles


  • You cannot reply to this topic
1 reply to this topic

#1 Dodedodo33

  • New Members
  • 1 posts

Posted 19 May 2013 - 06:37 AM

Hi People,

I am using CC on MC 1.4.7 with Miscperipherals and I am trying to build a nice code for enchanting with the xp turtles. Now, the problem where I run in to is that I want to build in a failsafe system. I am using a while true do loop to keep the program looping. Now my problem is that when you put a non enchantable (or no item) in it will exit the program when you try to enchant. Now that is understandable because the m.enchant() function will return false instead of true and so it will exit the loop. At least, so I thought...

code:
Spoiler

I tried putting in some stuff after the loop would finish:
Spoiler

And even later on Irealised functions are seen as a variable so I tried this:
Spoiler

But it still exits the program without showing the text or clearing the terminal... Does the m.enchant() function make the program stop if it fails? Or what am I missing here?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 19 May 2013 - 11:22 PM

Split into new topic.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users