Hiranus icon

NightMaker

Hiranus | PRO | 06/02/15 01:02:10 PM UTC | 0 ⭐ | 924 👁️ | Never ⏰ | []
Lua |

1.09 KB

|

None

|

0 👍

/

0 👎

local stone_axe = nil
local quicklime = nil
 
function Activate_Ritual ()
    rs.setOutput("bottom", true)
    sleep(5)
    rs.setOutput("bottom",false)
end
 
function Is_Quicklime ()
    slot = turtle.getItemDetail()
    if slot == nil then
        return false
    end
    if slot["name"] == "witchery:ingredient" then
        if slot["damage"] == 16 then
            return true
        end
    end
    return false
end
function Is_Stone_Axe ()
    slot = turtle.getItemDetail()
    if slot == nil then
        return false
    end
    if slot["name"] == "minecraft:stone_axe" then
        return true
    end
    return false
end
while true do
    if (os.time() > 5.5) and (os.time() < 19) then
        stone_axe = nil
        quicklime = nil
        for i=1,16 do
            turtle.select(i)
            if Is_Quicklime() then
                quicklime = i
            end
            if Is_Stone_Axe() then
                stone_axe = i
            end
        end
        if (quicklime == nil) or (stone_axe == nil) then
             print("MISSIMG INGREDIENTS")
        else
            turtle.select(stone_axe)
            turtle.dropDown(1)
            turtle.select(quicklime)
            turtle.dropDown(1)
            sleep(1)
            
            Activate_Ritual()
        end
    end
    sleep(1)
end

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎