Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getEnergy()
- local x = peripheral.find("draconic_rf_storage")
- if x ~= nil then
- energy = x.getEnergyStored()
- end
- x = 0
- end
- drop = 0
- function putStar()
- if drop == 1 then
- turtle.turnLeft()
- turtle.back()
- turtle.turnRight()
- drop = 0
- end
- if energy <= 99000000 and energy >= 1 and drop == 0 then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.drop()
- drop = 1
- sleep(125)
- end
- end
- while true do
- getEnergy()
- putStar()
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement