Compare commits
No commits in common. "8431ac34d0ade02351b666ebe6133a15b7ebaaf1" and "b4273af24575639ce39a52ca1e572b77da63c35d" have entirely different histories.
8431ac34d0
...
b4273af245
|
@ -1,7 +1,7 @@
|
|||
mcl_armor_trims = {
|
||||
blacklisted = {["mcl_farming:pumpkin_face"]=true, ["mcl_armor:elytra"]=true, ["mcl_armor:elytra_enchanted"]=true},
|
||||
overlays = {"sentry","dune","coast","wild","tide","ward","vex","rib","snout","eye","spire"},
|
||||
colors = {["amethyst"]="#8246a5",["gold"]="#ce9627",["emerald"]="#1b9958",["copper"]="#c36447",["diamond"]="#5faed8",["iron"]="#938e88",["lapis"]="#1c306b",["netherite"]="#302a26",["quartz"]="#c9bcb9",["redstone"]="#af2c23"}
|
||||
colors = {"bf352d"}
|
||||
}
|
||||
|
||||
local function define_items()
|
||||
|
@ -9,41 +9,33 @@ local function define_items()
|
|||
for itemname, itemdef in pairs(minetest.registered_tools) do
|
||||
if itemdef._mcl_armor_texture and type(itemdef._mcl_armor_texture) == "string" and not mcl_armor_trims.blacklisted[itemname] then
|
||||
for _, overlay in pairs(mcl_armor_trims.overlays) do
|
||||
for mineral, color in pairs(mcl_armor_trims.colors) do
|
||||
local new_name = itemname .. "_trimmed_" .. overlay .. "_" .. mineral
|
||||
local new_def = table.copy(itemdef)
|
||||
local new_name = itemname .. "_trimmed_" .. overlay
|
||||
minetest.override_item(itemname, {_mcl_armor_trims_trim = new_name})
|
||||
local new_def = table.copy(itemdef)
|
||||
|
||||
local piece_overlay = overlay
|
||||
local invOverlay = ""
|
||||
if string.find(itemname,"helmet") then
|
||||
invOverlay = "^(helmet_trim.png"
|
||||
piece_overlay = piece_overlay .. "_helmet"
|
||||
elseif string.find(itemname,"chestplate") then
|
||||
invOverlay = "^(chestplate_trim.png"
|
||||
piece_overlay = piece_overlay .. "_chestplate"
|
||||
elseif string.find(itemname,"leggings") then
|
||||
invOverlay = "^(leggings_trim.png"
|
||||
piece_overlay = piece_overlay .. "_leggings"
|
||||
elseif string.find(itemname,"boots") then
|
||||
invOverlay = "^(boots_trim.png"
|
||||
piece_overlay = piece_overlay .. "_boots"
|
||||
end
|
||||
|
||||
invOverlay = invOverlay .. "^[colorize:" .. color .. ":150)"
|
||||
piece_overlay = piece_overlay .. ".png"
|
||||
|
||||
new_def.groups.not_in_creative_inventory = 1
|
||||
new_def.groups.not_in_craft_guide = 1
|
||||
new_def._mcl_armor_texture = new_def._mcl_armor_texture .. "^(" .. piece_overlay .. "^[colorize:" .. color .. ":150)"
|
||||
new_def.inventory_image = itemdef.inventory_image .. invOverlay
|
||||
|
||||
if string.find(itemname, "_enchanted") then
|
||||
new_def._mcl_enchanting_enchanted_tool = new_name
|
||||
else
|
||||
new_def._mcl_enchanting_enchanted_tool = itemname .. "_enchanted_trimmed_" .. overlay .. "_" .. mineral
|
||||
end
|
||||
register_list[":" .. new_name] = new_def
|
||||
local piece_overlay = overlay
|
||||
local invOverlay = ""
|
||||
if string.find(itemname,"helmet") then
|
||||
invOverlay = "^helmet_trim.png"
|
||||
elseif string.find(itemname,"chestplate") then
|
||||
invOverlay = "^chestplate_trim.png"
|
||||
elseif string.find(itemname,"leggings") then
|
||||
invOverlay = "^leggings_trim.png"
|
||||
piece_overlay = piece_overlay .. "_leggings"
|
||||
elseif string.find(itemname,"boots") then
|
||||
invOverlay = "^boots_trim.png"
|
||||
end
|
||||
|
||||
piece_overlay = piece_overlay .. ".png"
|
||||
|
||||
new_def.groups.not_in_creative_inventory = 0 --set this to 1 later!
|
||||
new_def.groups.not_in_craft_guide = 1
|
||||
new_def._mcl_armor_texture = new_def._mcl_armor_texture .. "^(" .. piece_overlay .. "^[colorize:purple)"
|
||||
|
||||
new_def.inventory_image = itemdef.inventory_image .. invOverlay
|
||||
new_def._mcl_armor_trims_trim = new_name
|
||||
|
||||
register_list[":" .. new_name] = new_def
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -54,4 +46,3 @@ local function define_items()
|
|||
end
|
||||
|
||||
minetest.register_on_mods_loaded(define_items)
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/templates.lua")
|
|
@ -1,2 +0,0 @@
|
|||
# textdomain: mcl_armor_trims
|
||||
Smithing Template '@1'=Schiedevorlage '@1'
|
|
@ -1,2 +0,0 @@
|
|||
# textdomain: mcl_armor_trims
|
||||
Smithing Template '@1'
|
|
@ -1,4 +1,3 @@
|
|||
name = mcl_armor_trims
|
||||
author = chmodsayshello
|
||||
optional_depends = mcl_armor
|
||||
depends = mcl_enchanting, mcl_core, mcl_end
|
|
@ -1,46 +0,0 @@
|
|||
local modname = minetest.get_current_modname()
|
||||
local S = minetest.get_translator(modname)
|
||||
|
||||
for _, template_name in pairs(mcl_armor_trims.overlays) do
|
||||
minetest.register_craftitem(modname .. ":" .. template_name, {
|
||||
description = S("Smithing Template '@1'", template_name),
|
||||
inventory_image = template_name .. "_armor_trim_smithing_template.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":" .. template_name .. " 2",
|
||||
recipe = {
|
||||
{"mcl_core:diamond",modname .. ":" .. template_name,"mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:cobble","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--temp craft recipies
|
||||
minetest.register_craft({
|
||||
output = modname .. ":eye",
|
||||
recipe = {
|
||||
{"mcl_core:diamond","mcl_end:ender_eye","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_end:ender_eye","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":ward",
|
||||
recipe = {
|
||||
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:apple_gold_enchanted","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = modname .. ":snout",
|
||||
recipe = {
|
||||
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:goldblock","mcl_core:diamond"},
|
||||
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
|
||||
}
|
||||
})
|
|
@ -188,7 +188,6 @@ mcl_structures.register_structure("nether_bulwark",{
|
|||
stacks_max = 1,
|
||||
items = {
|
||||
{ itemstring = "mcl_compass:lodestone" },
|
||||
{ itemstring = "mcl_armor_trims:rib" },
|
||||
}
|
||||
}}
|
||||
},
|
||||
|
|
|
@ -69,7 +69,6 @@ mcl_structures.register_structure("desert_temple",{
|
|||
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 5, },
|
||||
{ itemstring = "mcl_core:diamond", weight = 5, amount_min = 1, amount_max = 3 },
|
||||
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
||||
{ itemstring = "mcl_armor_trims:dune", weight = 20, amount_min = 2, amount_max = 2},
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -58,7 +58,6 @@ mcl_structures.register_structure("end_shipwreck",{
|
|||
{ itemstring = "mcl_core:diamond", weight = 3, amount_min = 2, amount_max = 7 },
|
||||
{ itemstring = "mcl_mobitems:saddle", weight = 3, },
|
||||
{ itemstring = "mcl_core:emerald", weight = 2, amount_min = 1, amount_max = 3 },
|
||||
{ itemstring = "mcl_armor_trims:spire", amount_min = 1, amount_max = 1 },
|
||||
{ itemstring = "mcl_books:book", weight = 1, func = function(stack, pr)
|
||||
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
||||
end },
|
||||
|
|
|
@ -38,7 +38,6 @@ mcl_structures.register_structure("jungle_temple",{
|
|||
{ itemstring = "mcl_mobitems:gold_horse_armor", weight = 1, },
|
||||
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 1, },
|
||||
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
||||
{ itemstring = "mcl_armor_trims:wild", amount_min = 1, amount_max = 1, },
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,6 @@ mcl_structures.register_structure("pillager_outpost",{
|
|||
{ itemstring = "mcl_books:book", weight = 1, func = function(stack, pr)
|
||||
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
||||
end },
|
||||
{ itemstring = "mcl_armor_trims:sentry"},
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -166,7 +166,7 @@ mcl_structures.register_structure("shipwreck",{
|
|||
{ itemstring = "mcl_clock:clock", weight = 1, amount_min = 1, amount_max = 1 },
|
||||
{ itemstring = "mcl_compass:compass", weight = 1, amount_min = 1, amount_max = 1 },
|
||||
{ itemstring = "mcl_maps:empty_map", weight = 1, amount_min = 1, amount_max = 1 },
|
||||
{ itemstring = "mcl_armor_trims:coast", weight = 20, amount_min = 2, amount_max = 2},
|
||||
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
@ -63,7 +63,6 @@ mcl_structures.register_structure("woodland_cabin",{
|
|||
{ itemstring = "mcl_armor:chestplate_chain", weight = 1, },
|
||||
{ itemstring = "mcl_armor:chestplate_diamond", weight = 1, },
|
||||
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
||||
{ itemstring = "mcl_armor_trims:vex", amount_max = 1, },
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 622 B |
Before Width: | Height: | Size: 625 B |
Before Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 633 B |
Before Width: | Height: | Size: 711 B |
Before Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 667 B |
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 644 B |
Before Width: | Height: | Size: 689 B |
Before Width: | Height: | Size: 656 B |
After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 628 B |
Before Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 681 B |
After Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 683 B |
After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 619 B |
Before Width: | Height: | Size: 757 B |
Before Width: | Height: | Size: 640 B |
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 748 B |
Before Width: | Height: | Size: 719 B |
After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 712 B |
Before Width: | Height: | Size: 673 B |