Make llamas shift click breedable

This commit is contained in:
jordan4ibanez 2021-04-24 00:27:17 -04:00
parent 53c96cae2d
commit efce97c172
1 changed files with 10 additions and 8 deletions

View File

@ -138,6 +138,7 @@ mobs:register_mob("mobs_mc:llama", {
return return
end end
if clicker:get_player_control().sneak then
--attempt to enter breed state --attempt to enter breed state
if mobs.enter_breed_state(self,clicker) then if mobs.enter_breed_state(self,clicker) then
return return
@ -148,6 +149,7 @@ mobs:register_mob("mobs_mc:llama", {
mobs.make_baby_grow_faster(self,clicker) mobs.make_baby_grow_faster(self,clicker)
return return
end end
end
-- Make sure tamed llama is mature and being clicked by owner only -- Make sure tamed llama is mature and being clicked by owner only