Added a sleep function
This commit is contained in:
parent
ef84490431
commit
fdcc4f3eba
@ -12,6 +12,8 @@ if not fs.exists('choptree.lua') then
|
||||
end
|
||||
|
||||
while true do
|
||||
-- First of all, wait a few minutes
|
||||
os.sleep(300)
|
||||
-- Check if turtle has enough fuel
|
||||
if turtle.getFuelLevel() < (2 * (3 * NUM_OF_TREES)) then
|
||||
hare.selectItem('minecraft:' .. TREE_SAPLING .. 'log')
|
||||
|
Loading…
Reference in New Issue
Block a user