Enchanted 3d_armor stuff : use original textures and get rid of custom ones
@ -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
|
||||||
|
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 297 B |
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 297 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 446 B |
Before Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 420 B |
Before Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 345 B |
Before Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 298 B |