Skip to content

Instantly share code, notes, and snippets.

term.clear()
term.setCursorPos(1,1)
io.write("Quarry Size: ")
local size = tonumber(io.read())
io.write("Start Y-Coordinate: ")
local elevation = tonumber(io.read())
if size % 2 == 0 then
estimated_fuel_cost = size * size * 2 + size * 2 + (elevation - 11) * 2