Lua スクリプトを終了するにはどうすればよいですか? 現在、exit() に問題があり、その理由がわかりません。(これは、含まれている API を使用するため、Minecraft ComputerCraft に関する質問です。) これが私のコードです。
while true do
if turtle.detect() then
if turtle.getItemCount(16) == 64 then
exit() --here is where I get problems
end
turtle.dig() --digs block in front of it
end
end