1
0
Fork 0

Set llama chest texture when equipping chest

light_dump
cora 2022-09-28 15:36:57 +02:00 committed by Gitea
parent 673f970fb3
commit ae71b19ede
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ 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})
else
-- Feed with anything else
if mcl_mobs:feed_tame(self, clicker, 1, false, true) then return end