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

minetest.register_craftitem("pmb_items:nitrite", {
    description = S("Nitrite"),
    inventory_image = "pmb_items_nitrite.png",
    groups = { craftitem = 1, chemical = 1 },
})

minetest.register_craftitem("pmb_items:sulphur", {
    description = S("Sulphur"),
    inventory_image = "pmb_items_sulphur.png",
    groups = { craftitem = 1, chemical = 1 },
})

minetest.register_craftitem("pmb_items:gunpowder", {
    description = S("Black Powder"),
    inventory_image = "pmb_items_gunpowder.png",
    groups = { craftitem = 1, chemical = 1, explosive = 1 },
})
pmb_tcraft.register_craft({
    output = "pmb_items:gunpowder 10",
    items = {
        ["pmb_items:nitrite"] = 15,
        ["pmb_items:sulphur"] = 2,
        ["pmb_items:charcoal"] = 3,
    },
})
