Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- obs = 13
- while true do
- axe = 0
- quicklime = 0
- time = os.time()
- if time < 4.750 and time > 4.250 then
- turtle.up()
- turtle.select(obs)
- turtle.placeDown()
- for i = 1, 12 do
- turtle.select(i)
- item = turtle.getItemDetail()
- if item then
- if item.name == "minecraft:stone_axe" then
- axe = turtle.getSelectedSlot
- print(axe, ": Axe detected...")
- end
- if item.name == "witchery:ingredient" and item.damage == 16 then
- quicklime = turtle.getSelectedSlot()
- print(quicklime: "Quicklime detected...")
- end
- end
- end
- if axe == 0 or quicklime == 0 then
- print("!!!ALERT: Out of supplies. Daytime imminent!!!")
- else
- print("Daylight detected. Removing...")
- turtle.select(axe)
- turtle.drop()
- turtle.select(quicklime)
- turtle.drop()
- trtl.use()
- turtle.digDown()
- turtle.down()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement