Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Turtle XP Blaze Farm")
- m = peripheral.wrap("right")
- var1 = true
- function readKey()
- while true do
- local _, param1 = os.pullEvent("key")
- if tostring(param1) == "57" then
- print("Mettez un livre dans le slot 1")
- os.sleep(2)
- turtle.select(1)
- m.enchant(30)
- end
- end
- end
- coroutine.create(readKey)
- while true do
- for i = 1, 10 do
- turtle.attack()
- end
- if var1 == true then
- for i = 1, 16 do
- turtle.select(i)
- turtle.dropDown()
- end
- end
- if m.getLevels() > 30 then
- rs.setOutput("top", false)
- else
- rs.setOutput("top", true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment