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?











