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
0 B
|👍
/👎