SHOW:
|
|
- or go back to the newest paste.
| 1 | m=peripheral.wrap("right")
| |
| 2 | m.setAutoCollect(true) | |
| 3 | while true do | |
| 4 | - | rs.setOutput("top", false)
|
| 4 | + | rs.setOutput("top", false)
|
| 5 | - | term.clear() |
| 5 | + | term.clear() |
| 6 | - | term.setCursorPos(1, 1) |
| 6 | + | term.setCursorPos(1, 1) |
| 7 | - | XPcount = m.getLevels() |
| 7 | + | XPcount = m.getLevels() |
| 8 | - | print("I have "..XPcount.." Levels of XP Stored")
|
| 8 | + | print("I have "..XPcount.." Levels of XP Stored")
|
| 9 | - | if XPcount >= 30 and turtle.getItemCount(1) == 1 then |
| 9 | + | if XPcount >= 30 and turtle.getItemCount(1) == 1 then |
| 10 | - | m.enchant(30) |
| 10 | + | m.enchant(30) |
| 11 | - | else if XPcount >= 30 and turtle.getItemCount(1) < 1 then |
| 11 | + | else if XPcount >= 30 and turtle.getItemCount(1) < 1 then |
| 12 | - | term.setCursorPos(1, 3) |
| 12 | + | term.setCursorPos(1, 3) |
| 13 | - | print("Ready To Enchant")
|
| 13 | + | print("Ready To Enchant")
|
| 14 | - | sleep(1) |
| 14 | + | sleep(1) |
| 15 | - | else if XPcount < 30 then |
| 15 | + | else if XPcount < 30 then |
| 16 | - | XPneed = (30-XPcount) |
| 16 | + | XPneed = (30-XPcount) |
| 17 | - | term.setCursorPos(1, 3) |
| 17 | + | term.setCursorPos(1, 3) |
| 18 | - | print("I need "..XPneed.." More Levels of XP")
|
| 18 | + | print("I need "..XPneed.." More Levels of XP")
|
| 19 | - | sleep(1) |
| 19 | + | sleep(1) |
| 20 | - | end |
| 20 | + | end |
| 21 | - | end |
| 21 | + |