Added a sleep function
This commit is contained in:
		@@ -12,7 +12,9 @@ if not fs.exists('choptree.lua') then
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
while true do
 | 
			
		||||
   -- Check if turtle has enough fuel
 | 
			
		||||
    -- 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')
 | 
			
		||||
	turtle.refuel(2)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user