Redo sheep texturing

Thanks to 22i
This commit is contained in:
Wuzzy 2018-05-30 18:05:49 +02:00
parent c10f4311f7
commit 8b6f5d3dec
7 changed files with 19 additions and 16 deletions

@ -32,9 +32,14 @@ if minetest.get_modpath("mcl_wool") ~= nil then
end
local sheep_texture = function(color_group)
return {"mobs_mc_sheep.png^(mobs_mc_sheep_fur.png^[colorize:"..colors[color_group][2]..")"}
return {
"mobs_mc_sheep_fur.png^[colorize:"..colors[color_group][2],
"mobs_mc_sheep.png",
}
end
local gotten_texture = { "blank.png", "mobs_mc_sheep.png" }
--mcsheep
mobs:register_mob("mobs_mc:sheep", {
type = "animal",
@ -46,8 +51,8 @@ mobs:register_mob("mobs_mc:sheep", {
visual = "mesh",
visual_size = {x=3, y=3},
mesh = "mobs_mc_sheepfur.b3d",
gotten_mesh = "mobs_mc_sheepnaked.b3d",
textures = { sheep_texture("unicolor_white") },
gotten_texture = gotten_texture,
color = "unicolor_white",
makes_footstep_sound = true,
walk_velocity = 1,
@ -99,9 +104,6 @@ mobs:register_mob("mobs_mc:sheep", {
min = 1,
max = 1,},
}
self.object:set_properties({
mesh = "mobs_mc_sheepfur.b3d",
})
end,
-- Set random color on spawn
@ -159,8 +161,9 @@ mobs:register_mob("mobs_mc:sheep", {
self.color = "unicolor_white"
end
minetest.add_item(pos, ItemStack(colors[self.color][1].." "..math.random(1,3)))
self.base_texture = gotten_texture
self.object:set_properties({
mesh = "mobs_mc_sheepnaked.b3d",
textures = self.base_texture,
})
if not minetest.settings:get_bool("creative_mode") then
item:add_wear(mobs_mc.misc.shears_wear)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 914 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 773 B

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -718,8 +718,8 @@ Source path,Source file,Target path,Target file,xs,ys,xl,yl,xt,yt,Blacklisted?
/assets/minecraft/textures/entity/rabbit,toast.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_rabbit_toast.png,,,,,,,
/assets/minecraft/textures/entity/rabbit,white.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_rabbit_white.png,,,,,,,
/assets/minecraft/textures/entity/rabbit,white_splotched.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_rabbit_white_splotched.png,,,,,,,
/assets/minecraft/textures/entity/sheep,sheep_fur.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_sheep_fur.png,,,,,,,y
/assets/minecraft/textures/entity/sheep,sheep.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_sheep.png,,,,,,,y
/assets/minecraft/textures/entity/sheep,sheep_fur.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_sheep_fur.png,,,,,,,
/assets/minecraft/textures/entity/sheep,sheep.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_sheep.png,,,,,,,
/assets/minecraft/textures/entity/shulker,shulker_black.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_shulker_black.png,,,,,,,y
/assets/minecraft/textures/entity/shulker,shulker_blue.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_shulker_blue.png,,,,,,,y
/assets/minecraft/textures/entity/shulker,shulker_brown.png,/mods/ENTITIES/mobs_mc/textures,mobs_mc_shulker_brown.png,,,,,,,y

1 Source path Source file Target path Target file xs ys xl yl xt yt Blacklisted?
718 /assets/minecraft/textures/entity/rabbit toast.png /mods/ENTITIES/mobs_mc/textures mobs_mc_rabbit_toast.png
719 /assets/minecraft/textures/entity/rabbit white.png /mods/ENTITIES/mobs_mc/textures mobs_mc_rabbit_white.png
720 /assets/minecraft/textures/entity/rabbit white_splotched.png /mods/ENTITIES/mobs_mc/textures mobs_mc_rabbit_white_splotched.png
721 /assets/minecraft/textures/entity/sheep sheep_fur.png /mods/ENTITIES/mobs_mc/textures mobs_mc_sheep_fur.png y
722 /assets/minecraft/textures/entity/sheep sheep.png /mods/ENTITIES/mobs_mc/textures mobs_mc_sheep.png y
723 /assets/minecraft/textures/entity/shulker shulker_black.png /mods/ENTITIES/mobs_mc/textures mobs_mc_shulker_black.png y
724 /assets/minecraft/textures/entity/shulker shulker_blue.png /mods/ENTITIES/mobs_mc/textures mobs_mc_shulker_blue.png y
725 /assets/minecraft/textures/entity/shulker shulker_brown.png /mods/ENTITIES/mobs_mc/textures mobs_mc_shulker_brown.png y