mirror of
				https://codeberg.org/tenplus1/mobs_animal.git
				synced 2025-10-31 07:35:24 +01:00 
			
		
		
		
	protect/capture returns added
This commit is contained in:
		| @@ -52,12 +52,9 @@ mobs:register_mob("mobs_animal:chicken", { | ||||
|  | ||||
| 	on_rightclick = function(self, clicker) | ||||
|  | ||||
| 		if mobs:feed_tame(self, clicker, 8, true, true) then | ||||
| 			return | ||||
| 		end | ||||
|  | ||||
| 		mobs:protect(self, clicker) | ||||
| 		mobs:capture_mob(self, clicker, 30, 50, 80, false, nil) | ||||
| 		if mobs:feed_tame(self, clicker, 8, true, true) then return end | ||||
| 		if mobs:protect(self, clicker) then return end | ||||
| 		if mobs:capture_mob(self, clicker, 30, 50, 80, false, nil) then return end | ||||
| 	end, | ||||
|  | ||||
| 	do_custom = function(self, dtime) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user