Compare commits
9 Commits
b4273af245
...
8431ac34d0
Author | SHA1 | Date |
---|---|---|
chmodsayshello | 8431ac34d0 | |
chmodsayshello | 049128972f | |
chmodsayshello | 0c65d9d11a | |
chmodsayshello | 311beeb31c | |
chmodsayshello | bc3da8dab8 | |
chmodsayshello | ed5232411b | |
chmodsayshello | 6c6a27320d | |
chmodsayshello | 82f2f4784e | |
chmodsayshello | 8476865ea7 |
|
@ -1,7 +1,7 @@
|
||||||
mcl_armor_trims = {
|
mcl_armor_trims = {
|
||||||
blacklisted = {["mcl_farming:pumpkin_face"]=true, ["mcl_armor:elytra"]=true, ["mcl_armor:elytra_enchanted"]=true},
|
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"},
|
overlays = {"sentry","dune","coast","wild","tide","ward","vex","rib","snout","eye","spire"},
|
||||||
colors = {"bf352d"}
|
colors = {["amethyst"]="#8246a5",["gold"]="#ce9627",["emerald"]="#1b9958",["copper"]="#c36447",["diamond"]="#5faed8",["iron"]="#938e88",["lapis"]="#1c306b",["netherite"]="#302a26",["quartz"]="#c9bcb9",["redstone"]="#af2c23"}
|
||||||
}
|
}
|
||||||
|
|
||||||
local function define_items()
|
local function define_items()
|
||||||
|
@ -9,33 +9,41 @@ local function define_items()
|
||||||
for itemname, itemdef in pairs(minetest.registered_tools) do
|
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
|
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 _, overlay in pairs(mcl_armor_trims.overlays) do
|
||||||
local new_name = itemname .. "_trimmed_" .. overlay
|
for mineral, color in pairs(mcl_armor_trims.colors) do
|
||||||
minetest.override_item(itemname, {_mcl_armor_trims_trim = new_name})
|
local new_name = itemname .. "_trimmed_" .. overlay .. "_" .. mineral
|
||||||
local new_def = table.copy(itemdef)
|
local new_def = table.copy(itemdef)
|
||||||
|
|
||||||
local piece_overlay = overlay
|
local piece_overlay = overlay
|
||||||
local invOverlay = ""
|
local invOverlay = ""
|
||||||
if string.find(itemname,"helmet") then
|
if string.find(itemname,"helmet") then
|
||||||
invOverlay = "^helmet_trim.png"
|
invOverlay = "^(helmet_trim.png"
|
||||||
elseif string.find(itemname,"chestplate") then
|
piece_overlay = piece_overlay .. "_helmet"
|
||||||
invOverlay = "^chestplate_trim.png"
|
elseif string.find(itemname,"chestplate") then
|
||||||
elseif string.find(itemname,"leggings") then
|
invOverlay = "^(chestplate_trim.png"
|
||||||
invOverlay = "^leggings_trim.png"
|
piece_overlay = piece_overlay .. "_chestplate"
|
||||||
piece_overlay = piece_overlay .. "_leggings"
|
elseif string.find(itemname,"leggings") then
|
||||||
elseif string.find(itemname,"boots") then
|
invOverlay = "^(leggings_trim.png"
|
||||||
invOverlay = "^boots_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
|
||||||
end
|
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
|
end
|
||||||
end
|
end
|
||||||
|
@ -45,4 +53,5 @@ local function define_items()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_mods_loaded(define_items)
|
minetest.register_on_mods_loaded(define_items)
|
||||||
|
dofile(minetest.get_modpath(minetest.get_current_modname()).."/templates.lua")
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain: mcl_armor_trims
|
||||||
|
Smithing Template '@1'=Schiedevorlage '@1'
|
|
@ -0,0 +1,2 @@
|
||||||
|
# textdomain: mcl_armor_trims
|
||||||
|
Smithing Template '@1'
|
|
@ -1,3 +1,4 @@
|
||||||
name = mcl_armor_trims
|
name = mcl_armor_trims
|
||||||
author = chmodsayshello
|
author = chmodsayshello
|
||||||
optional_depends = mcl_armor
|
optional_depends = mcl_armor
|
||||||
|
depends = mcl_enchanting, mcl_core, mcl_end
|
|
@ -0,0 +1,46 @@
|
||||||
|
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,6 +188,7 @@ mcl_structures.register_structure("nether_bulwark",{
|
||||||
stacks_max = 1,
|
stacks_max = 1,
|
||||||
items = {
|
items = {
|
||||||
{ itemstring = "mcl_compass:lodestone" },
|
{ itemstring = "mcl_compass:lodestone" },
|
||||||
|
{ itemstring = "mcl_armor_trims:rib" },
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
},
|
},
|
||||||
|
|
|
@ -69,6 +69,7 @@ mcl_structures.register_structure("desert_temple",{
|
||||||
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 5, },
|
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 5, },
|
||||||
{ itemstring = "mcl_core:diamond", weight = 5, amount_min = 1, amount_max = 3 },
|
{ itemstring = "mcl_core:diamond", weight = 5, amount_min = 1, amount_max = 3 },
|
||||||
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
||||||
|
{ itemstring = "mcl_armor_trims:dune", weight = 20, amount_min = 2, amount_max = 2},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,6 +58,7 @@ mcl_structures.register_structure("end_shipwreck",{
|
||||||
{ itemstring = "mcl_core:diamond", weight = 3, amount_min = 2, amount_max = 7 },
|
{ itemstring = "mcl_core:diamond", weight = 3, amount_min = 2, amount_max = 7 },
|
||||||
{ itemstring = "mcl_mobitems:saddle", weight = 3, },
|
{ itemstring = "mcl_mobitems:saddle", weight = 3, },
|
||||||
{ itemstring = "mcl_core:emerald", weight = 2, amount_min = 1, amount_max = 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)
|
{ itemstring = "mcl_books:book", weight = 1, func = function(stack, pr)
|
||||||
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
||||||
end },
|
end },
|
||||||
|
|
|
@ -38,6 +38,7 @@ mcl_structures.register_structure("jungle_temple",{
|
||||||
{ itemstring = "mcl_mobitems:gold_horse_armor", weight = 1, },
|
{ itemstring = "mcl_mobitems:gold_horse_armor", weight = 1, },
|
||||||
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 1, },
|
{ itemstring = "mcl_mobitems:diamond_horse_armor", weight = 1, },
|
||||||
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
||||||
|
{ itemstring = "mcl_armor_trims:wild", amount_min = 1, amount_max = 1, },
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ mcl_structures.register_structure("pillager_outpost",{
|
||||||
{ itemstring = "mcl_books:book", weight = 1, func = function(stack, pr)
|
{ itemstring = "mcl_books:book", weight = 1, func = function(stack, pr)
|
||||||
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
||||||
end },
|
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_clock:clock", weight = 1, amount_min = 1, amount_max = 1 },
|
||||||
{ itemstring = "mcl_compass:compass", 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_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,6 +63,7 @@ mcl_structures.register_structure("woodland_cabin",{
|
||||||
{ itemstring = "mcl_armor:chestplate_chain", weight = 1, },
|
{ itemstring = "mcl_armor:chestplate_chain", weight = 1, },
|
||||||
{ itemstring = "mcl_armor:chestplate_diamond", weight = 1, },
|
{ itemstring = "mcl_armor:chestplate_diamond", weight = 1, },
|
||||||
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
{ itemstring = "mcl_core:apple_gold_enchanted", weight = 2, },
|
||||||
|
{ itemstring = "mcl_armor_trims:vex", amount_max = 1, },
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 648 B |
After Width: | Height: | Size: 635 B |
After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 622 B |
After Width: | Height: | Size: 625 B |
After Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 633 B |
After Width: | Height: | Size: 711 B |
After Width: | Height: | Size: 603 B |
BIN
textures/rib.png
Before Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 690 B |
After Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 644 B |
After Width: | Height: | Size: 689 B |
After Width: | Height: | Size: 656 B |
Before Width: | Height: | Size: 261 B |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 631 B |
After Width: | Height: | Size: 735 B |
After Width: | Height: | Size: 636 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 681 B |
Before Width: | Height: | Size: 258 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 632 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 683 B |
BIN
textures/vex.png
Before Width: | Height: | Size: 250 B |
After Width: | Height: | Size: 848 B |
After Width: | Height: | Size: 619 B |
After Width: | Height: | Size: 757 B |
After Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 748 B |
After Width: | Height: | Size: 719 B |
Before Width: | Height: | Size: 248 B |
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 631 B |
After Width: | Height: | Size: 712 B |
After Width: | Height: | Size: 673 B |