gur111 icon

stairs.lua

gur111 | PRO | 06/14/25 12:38:52 AM UTC (Edited) | 0 ⭐ | 9059 👁️ | Never ⏰ | []
Lua |

2.13 KB

|

None

|

0 👍

/

0 👎

-- Function to parse command line arguments
local function parseArgs(args)
    local count = tonumber(args[1])
    local acceptAny = false
 
    if args[2] == "--accept-any" then
        acceptAny = true
    end
 
    return count, acceptAny
end
 
-- Function to find and select more stairs
local function selectStairs(initialItemDetail, acceptAny)
    for slot = 1, 16 do
        local itemDetail = turtle.getItemDetail(slot)
        if itemDetail then
            if acceptAny or (itemDetail.name == initialItemDetail.name) then
                turtle.select(slot)
                return true
            end
        end
    end
    return false
end
 
-- Function to place a stair block below the turtle
local function placeStair(initialItemDetail, acceptAny)
    while not turtle.placeDown() do
        turtle.digDown()
        if turtle.getItemCount() == 0 then
            if not selectStairs(initialItemDetail, acceptAny) then
                print("Out of stairs!")
                return false
            end
        end
    end
    return true
end
 
-- Function to move the turtle up safely
local function moveUp()
    while not turtle.up() do
        turtle.digUp()
    end
    while turtle.detectUp() do
        turtle.digUp()
    end
end
 
-- Function to move the turtle forward safely
local function moveForward()
    while not turtle.forward() do
        turtle.dig()
    end
end
 
-- Main function to build stairs
local function buildStairs(count, acceptAny)
    local initialItemDetail = turtle.getItemDetail(1)
    if not initialItemDetail then
        print("No stairs in slot 1!")
        return
    end
 
    for i = 1, count do
        if not placeStair(initialItemDetail, acceptAny) then
            break
        end
        moveUp()
        moveForward()
    end
end
 
-- Get command line arguments
local tArgs = {...}
local stairsCount, acceptAny = parseArgs(tArgs)
 
-- Check if the number of stairs is provided
if not stairsCount then
    print("Usage: buildStairs <number_of_stairs> [--accept-any]")
    return
end
 
-- Start building stairs
buildStairs(stairsCount, acceptAny)
 

Comments

  • Vinyuxor icon
    03/29/26 10:01:02 PM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
    
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎