better colored leather textures + optipng -o7 -zm1-9 -nc -strip all -clobber
|
@ -31,6 +31,7 @@ local function calculate_color(first, last)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_texture_function(texture)
|
local function get_texture_function(texture)
|
||||||
|
--TODO: add enchantments support
|
||||||
local function get_texture(_, itemstack)
|
local function get_texture(_, itemstack)
|
||||||
local color = itemstack:get_meta():get_string("color")
|
local color = itemstack:get_meta():get_string("color")
|
||||||
if color == "" or color == nil then
|
if color == "" or color == nil then
|
||||||
|
@ -59,16 +60,16 @@ mcl_armor.register_set({
|
||||||
feet = 1,
|
feet = 1,
|
||||||
},
|
},
|
||||||
textures = {
|
textures = {
|
||||||
head = get_texture_function("mcl_armor_helmet_leather.png"),
|
head = get_texture_function("mcl_armor_helmet_colored_leather.png"),
|
||||||
torso = get_texture_function("mcl_armor_chestplate_leather.png"),
|
torso = get_texture_function("mcl_armor_chestplate_colored_leather.png"),
|
||||||
legs = get_texture_function("mcl_armor_leggings_leather.png"),
|
legs = get_texture_function("mcl_armor_leggings_colored_leather.png"),
|
||||||
feet = get_texture_function("mcl_armor_boots_leather.png"),
|
feet = get_texture_function("mcl_armor_boots_colored_leather.png"),
|
||||||
},
|
},
|
||||||
inventory = {
|
inventory = {
|
||||||
head = "mcl_armor_inv_helmet_leather.png",
|
head = "mcl_armor_inv_helmet_colored_leather.png",
|
||||||
torso = "mcl_armor_inv_chestplate_leather.png",
|
torso = "mcl_armor_inv_chestplate_colored_leather.png",
|
||||||
legs = "mcl_armor_inv_leggings_leather.png",
|
legs = "mcl_armor_inv_leggings_colored_leather.png",
|
||||||
feet = "mcl_armor_inv_boots_leather.png",
|
feet = "mcl_armor_inv_boots_colored_leather.png",
|
||||||
},
|
},
|
||||||
repair_material = "mcl_mobitems:leather",
|
repair_material = "mcl_mobitems:leather",
|
||||||
groups = {armor_leather_colored = 1},
|
groups = {armor_leather_colored = 1},
|
||||||
|
|
After Width: | Height: | Size: 140 B |
After Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 316 B After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 275 B |
After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 409 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 274 B |
After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 355 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 217 B |
After Width: | Height: | Size: 159 B |
After Width: | Height: | Size: 174 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 197 B |
After Width: | Height: | Size: 190 B |