add armor trim templates
@ -53,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")
|
2
mods/ITEMS/mcl_armor_trims/locale/mcl_armor_trims.de.tr
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# textdomain: mcl_armor_trims
|
||||||
|
Smithing Template '@1'=Schiedevorlage '@1'
|
2
mods/ITEMS/mcl_armor_trims/locale/template.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# textdomain: mcl_armor_trims
|
||||||
|
Smithing Template '@1'
|
@ -1,4 +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
|
depends = mcl_enchanting, mcl_core, mcl_end
|
46
mods/ITEMS/mcl_armor_trims/templates.lua
Normal file
@ -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, },
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
BIN
textures/coast_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
textures/dune_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
textures/eye_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
textures/rib_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
textures/sentry_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
textures/snout_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
textures/spire_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
textures/tide_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
textures/vex_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 848 B |
BIN
textures/ward_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
textures/wild_armor_trim_smithing_template.png
Normal file
After Width: | Height: | Size: 6.2 KiB |