local mod_name = minetest.get_current_modname()
local mod_path = minetest.get_modpath(mod_name)
local S = minetest.get_translator(mod_name)



minetest.register_craftitem("aom_muskets:flintlock_mechanism", {
    description = S("Flintlock Mechanism"),
    _tt_color = 3,
    _tt_long_desc = S("Used in crafting flintlock firearms"),
    inventory_image = "aom_muskets_mechanism.png",
    groups = { item_tin_bar = 1, craftitem = 1, },
})

if aom_vars.technology_level >= 4 then
    local m = "aom_items:bronze_sheet"
    local g = "aom_items:iron_sheet"
    local b = "aom_items:iron_bar"
    minetest.register_craft({
        output = "aom_muskets:flintlock_mechanism",
        recipe = {
        {"",b, b},
        {"",g, ""},
        {m, m, m},
        },
    })
end
