From efce97c1723ac25e9dabdfd9572781a6d50f0821 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sat, 24 Apr 2021 00:27:17 -0400 Subject: [PATCH] Make llamas shift click breedable --- mods/ENTITIES/mobs_mc/llama.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/llama.lua b/mods/ENTITIES/mobs_mc/llama.lua index cd3b1ea2cc..c396635280 100644 --- a/mods/ENTITIES/mobs_mc/llama.lua +++ b/mods/ENTITIES/mobs_mc/llama.lua @@ -138,15 +138,17 @@ mobs:register_mob("mobs_mc:llama", { return end - --attempt to enter breed state - if mobs.enter_breed_state(self,clicker) then - return - end + if clicker:get_player_control().sneak then + --attempt to enter breed state + if mobs.enter_breed_state(self,clicker) then + return + end - --make baby grow faster - if self.baby then - mobs.make_baby_grow_faster(self,clicker) - return + --make baby grow faster + if self.baby then + mobs.make_baby_grow_faster(self,clicker) + return + end end