From e0ae8272b1313ba70d0ebc374ba38fb9cb69a0f5 Mon Sep 17 00:00:00 2001 From: cora Date: Wed, 28 Sep 2022 15:57:58 +0200 Subject: [PATCH] fix chest tex to work with carpet, add chest drop --- mods/ENTITIES/mobs_mc/llama.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/llama.lua b/mods/ENTITIES/mobs_mc/llama.lua index a34c45c22..a3a07a0bf 100644 --- a/mods/ENTITIES/mobs_mc/llama.lua +++ b/mods/ENTITIES/mobs_mc/llama.lua @@ -130,8 +130,13 @@ mcl_mobs:register_mob("mobs_mc:llama", { item:take_item() clicker:set_wielded_item(item) self._has_chest = true - self.textures[1] = "mcl_chests_normal.png" - self.object:set_properties({textures = self.textures}) + local tex_chest = "mcl_chests_normal.png" + self.base_texture = table.copy(self.base_texture) + self.base_texture[1] = tex_chest + self.object:set_properties({ + textures = self.base_texture, + }) + table.insert(self.drops,{name = "mcl_chests:chest",chance=1,min=1,max=1}) else -- Feed with anything else if mcl_mobs:feed_tame(self, clicker, 1, false, true) then return end