Compare commits
	
		
			3 Commits
		
	
	
		
			7828d754f5
			...
			e85d02cee2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						e85d02cee2
	
				 | 
					
					
						|||
| 
						
						
							
						
						ab3ff0ab16
	
				 | 
					
					
						|||
| 
						
						
							
						
						f96ad40276
	
				 | 
					
					
						
@@ -111,10 +111,6 @@ function attack_entities(target_kind, minimum)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function check_food(hunger)
 | 
			
		||||
	if not hunger then
 | 
			
		||||
		hunger = client.hunger
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	if hunger.food >= 20 then
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
 
 | 
			
		||||
@@ -61,11 +61,9 @@ function update_listeners()
 | 
			
		||||
			message = function()
 | 
			
		||||
				info("bot successfully logged in!")
 | 
			
		||||
			end,
 | 
			
		||||
		},
 | 
			
		||||
		spawn = {
 | 
			
		||||
			eat = function()
 | 
			
		||||
				sleep(5000)
 | 
			
		||||
				check_food()
 | 
			
		||||
				check_food(client.hunger)
 | 
			
		||||
			end,
 | 
			
		||||
		},
 | 
			
		||||
		death = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user