Mise à jour de 'mods/ITEMS/mcl_raw_ores/init.lua'

This commit is contained in:
3raven 2022-08-24 03:44:05 +00:00
parent 207c6bf639
commit 49ac1bc260

View file

@ -1,3 +1,5 @@
local S = minetest.get_translator(minetest.get_current_modname())
local function register_raw_ore(description, n)
local ore = description:lower()
local n = n or ""
@ -5,15 +7,15 @@ local function register_raw_ore(description, n)
local texture = "mcl_raw_ores_raw_"..ore
minetest.register_craftitem(raw_ingot, {
description = ("Raw "..description),
_doc_items_longdesc = ("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."),
description = S("Raw "..description),
_doc_items_longdesc = S("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."),
inventory_image = texture..".png",
groups = { craftitem = 1, blast_furnace_smeltable = 1 },
})
minetest.register_node(raw_ingot.."_block", {
description = ("Block of Raw "..description),
_doc_items_longdesc = ("A block of raw "..ore.." is mostly a decorative block but also useful as a compact storage of raw "..ore.."."),
description = S("Block of Raw "..description),
_doc_items_longdesc = S("A block of raw "..ore.." is mostly a decorative block but also useful as a compact storage of raw "..ore.."."),
tiles = { texture.."_block.png" },
is_ground_content = false,
groups = { pickaxey = 2, building_block = 1, blast_furnace_smeltable = 1 },