Brick icon

LUA FTB Auto-Enchanter

Brick | PRO | 08/30/15 12:13:47 PM UTC | 0 ⭐ | 225 👁️ | Never ⏰ | []
Lua |

550 B

|

None

|

0 👍

/

0 👎

m=peripheral.wrap("right")
m.setAutoCollect(true)
while true do
    rs.setOutput("top", false)
    term.clear()
    term.setCursorPos(1, 1)
    XPcount = m.getLevels()
    print("I have "..XPcount.." Levels of XP Stored")
    if XPcount >= 30 and turtle.getItemCount(1) == 1 then
        m.enchant(30)
    else if XPcount >= 30 and turtle.getItemCount(1) < 1 then
        term.setCursorPos(1, 3)
        print("Ready To Enchant")
        sleep(1)
    else if XPcount < 30 then
        XPneed = (30-XPcount)
        term.setCursorPos(1, 3)
        print("I need "..XPneed.." More Levels of XP")
        sleep(1)
    end 
end

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎