mirror of
				https://codeberg.org/tenplus1/mobs_animal.git
				synced 2025-10-30 23:25:37 +01:00 
			
		
		
		
	protect/capture returns added
This commit is contained in:
		| @@ -50,9 +50,9 @@ mobs:register_mob("mobs_animal:bunny", { | ||||
| 	on_rightclick = function(self, clicker) | ||||
|  | ||||
| 		-- feed or tame | ||||
| 		if mobs:feed_tame(self, clicker, 4, true, true) then | ||||
| 			return | ||||
| 		end | ||||
| 		if mobs:feed_tame(self, clicker, 4, 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 | ||||
|  | ||||
| 		-- Monty Python tribute | ||||
| 		local item = clicker:get_wielded_item() | ||||
| @@ -73,9 +73,6 @@ mobs:register_mob("mobs_animal:bunny", { | ||||
|  | ||||
| 			return | ||||
| 		end | ||||
|  | ||||
| 		mobs:protect(self, clicker) | ||||
| 		mobs:capture_mob(self, clicker, 30, 50, 80, false, nil) | ||||
| 	end, | ||||
|  | ||||
| 	attack_type = "dogfight", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user