Enchanted 3d_armor stuff : use original textures and get rid of custom ones

This commit is contained in:
jp 2015-12-04 21:06:17 +01:00
parent 5f7ce91e8b
commit 95ea7908fd
41 changed files with 8 additions and 6 deletions

View File

@ -89,14 +89,15 @@ end
function enchanting.put(_, listname, _, stack, _) function enchanting.put(_, listname, _, stack, _)
local toolstack = stack:get_name() local toolstack = stack:get_name()
local toolname = toolstack:match("[%w_]+:([%w_]+)") local toolname = toolstack:match("[%w_]+:([%w_]+)")
local count = stack:get_count()
if listname == "mese" and toolstack ~= "default:mese_crystal" then if listname == "mese" and toolstack == "default:mese_crystal" then
return 0 return count
elseif listname == "tool" and not allowed(toolname) then elseif listname == "tool" and allowed(toolname) then
return 0 return 1
end end
return 1 return 0
end end
xdecor.register("enchantment_table", { xdecor.register("enchantment_table", {
@ -218,7 +219,8 @@ for _, ench in pairs(tooldef[3]) do
minetest.register_tool(":"..mod..":enchanted_"..tool.."_"..material.."_"..enchant, { minetest.register_tool(":"..mod..":enchanted_"..tool.."_"..material.."_"..enchant, {
description = string.format("Enchanted %s %s (%s)", cap(material), cap(tool), cap(enchant)), description = string.format("Enchanted %s %s (%s)", cap(material), cap(tool), cap(enchant)),
inventory_image = original_tool.inventory_image.."^[colorize:blue:20", inventory_image = original_tool.inventory_image,
texture = "3d_armor_"..tool.."_"..material,
wield_image = original_tool.wield_image, wield_image = original_tool.wield_image,
groups = armorcaps, groups = armorcaps,
wear = 0 wear = 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 436 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B