Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- hGmpXW4T
- local Terminal = require("/terminal").new()
- function Main()
- Terminal:reset()
- print("Calculate the amount of blocks this turtle can mine using mine.lua")
- print()
- local w = Terminal:promptNum("Enter the width:")
- Terminal:reset()
- print("Calculate the amount of blocks this turtle can mine using mine.lua")
- print()
- local h = Terminal:promptNum("Enter the height:")
- Terminal:reset()
- local layer = w*h
- local fLevel = turtle.getFuelLevel()
- local fLimit = turtle.getFuelLimit()
- local limitDepth = math.floor((fLimit/layer))
- local maxDepth = math.floor((fLevel/layer))
- print("Results ~")
- print()
- print("Width: "..w)
- print("Height: "..h)
- print()
- print("Current Fuel......."..fLevel)
- print("Max depth.........."..maxDepth.." ("..math.floor(maxDepth/16).." chunks)")
- print("Max depth on tank.."..limitDepth.." ("..math.floor(limitDepth/16).." chunks)")
- print()
- Terminal:pressAnyKeyToContinue()
- end
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement