better colored leather textures + optipng -o7 -zm1-9 -nc -strip all -clobber

This commit is contained in:
AFCMS 2022-05-01 01:49:23 +02:00
parent 0e42e58901
commit a3d2761215
Signed by untrusted user: AFCMS
GPG Key ID: 8720389A25B652E3
17 changed files with 9 additions and 8 deletions

View File

@ -31,6 +31,7 @@ local function calculate_color(first, last)
end
local function get_texture_function(texture)
--TODO: add enchantments support
local function get_texture(_, itemstack)
local color = itemstack:get_meta():get_string("color")
if color == "" or color == nil then
@ -59,16 +60,16 @@ mcl_armor.register_set({
feet = 1,
},
textures = {
head = get_texture_function("mcl_armor_helmet_leather.png"),
torso = get_texture_function("mcl_armor_chestplate_leather.png"),
legs = get_texture_function("mcl_armor_leggings_leather.png"),
feet = get_texture_function("mcl_armor_boots_leather.png"),
head = get_texture_function("mcl_armor_helmet_colored_leather.png"),
torso = get_texture_function("mcl_armor_chestplate_colored_leather.png"),
legs = get_texture_function("mcl_armor_leggings_colored_leather.png"),
feet = get_texture_function("mcl_armor_boots_colored_leather.png"),
},
inventory = {
head = "mcl_armor_inv_helmet_leather.png",
torso = "mcl_armor_inv_chestplate_leather.png",
legs = "mcl_armor_inv_leggings_leather.png",
feet = "mcl_armor_inv_boots_leather.png",
head = "mcl_armor_inv_helmet_colored_leather.png",
torso = "mcl_armor_inv_chestplate_colored_leather.png",
legs = "mcl_armor_inv_leggings_colored_leather.png",
feet = "mcl_armor_inv_boots_colored_leather.png",
},
repair_material = "mcl_mobitems:leather",
groups = {armor_leather_colored = 1},

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 B

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B