Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldF = _G.turtle.forward
- oldB = _G.turtle.back
- oldU = _G.turtle.up
- oldD = _G.turtle.down
- oldR = _g.turtle.refuel
- local function lab()
- os.setComputerLabel("Matts Turtle | ".. turtle.getFuelLevel())
- end
- _G.turtle.forward = function()
- oldF()
- return lab()
- end
- _G.turtle.back = function()
- oldB()
- return lab()
- end
- _G.turtle.up = function()
- oldU()
- return lab()
- end
- _G.turtle.down = function()
- oldD()
- return lab()
- end
- _G.turtle.refuel = function()
- oldR()
- return lab()
- end
Add Comment
Please, Sign In to add comment