From 87e3bc9176d06a858323c929e65c23cab3c099de Mon Sep 17 00:00:00 2001 From: Sokomine Date: Tue, 2 Aug 2022 18:22:48 +0200 Subject: [PATCH] added mobs_redo sheep and cow as example --- config.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/config.lua b/config.lua index f7cf736..9f6e31a 100644 --- a/config.lua +++ b/config.lua @@ -46,6 +46,14 @@ yl_speak_up.mesh_data["skinsdb_3d_armor_character_5.b3d"] = { -- call textures2skin in order to convert the textures (wielded items) textures_to_skin = true, } +yl_speak_up.mesh_data["mobs_sheep.b3d"] = { + texture_index = 1, +} +yl_speak_up.mesh_data["mobs_cow.b3d"] = { + texture_index = 1, +} + + -- diffrent mob types may want to wear diffrent skins - even if they share the @@ -63,6 +71,13 @@ yl_speak_up.mob_skins["mobs_npc:igor"] = { yl_speak_up.mob_skins["mobs_npc:trader"] = { "mobs_trader.png", "mobs_trader2.png", "mobs_trader3.png"} +yl_speak_up.mob_skins["mobs_animal:sheep_white"] = { + "mobs_sheep_base.png^(mobs_sheep_wool.png^[colorize:#abababc0)"} +yl_speak_up.mob_skins["mobs_animal:sheep_red"] = { + "mobs_sheep_base.png^(mobs_sheep_wool.png^[colorize:#ff0000a0)"} +yl_speak_up.mob_skins["mobs_animal:cow"] = { + "mobs_cow.png", "mobs_cow2.png"} + -- this here uses 64 x 64 textures: yl_speak_up.mob_skins["yl_speak_up:human"] = { "yl_speak_up_main_default.png", "some_skin.png", "2022_06_28_the-lonley-lumberjack-20494635.png"} @@ -75,7 +90,8 @@ yl_speak_up.mob_capes["yl_speak_up:human"] = { -- stand and walking when they're right-clicked; emulate this behaviour for NPC in -- this list yl_speak_up.emulate_orders_on_rightclick = { - "mobs_npc:npc", "mobs_npc:igor", "mobs_npc:trader"} + "mobs_npc:npc", "mobs_npc:igor", "mobs_npc:trader", + "mobs_animal:sheep_white", "mobs_animal:sheep_red", "mobs_animal:cow"} -- some properties from external NPC can be edited and changed (they have the self. prefix), @@ -230,3 +246,4 @@ local function read_skins_and_capes_from_folders(races) end end read_skins_and_capes_from_folders({"dwarf","elf","goblin","human","npc","orc"}) +