1
0
Fork 0

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
1 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
local S = minetest.get_translator(minetest.get_current_modname())
local function register_raw_ore(description, n) local function register_raw_ore(description, n)
local ore = description:lower() local ore = description:lower()
local n = n or "" local n = n or ""
@ -5,15 +7,15 @@ local function register_raw_ore(description, n)
local texture = "mcl_raw_ores_raw_"..ore local texture = "mcl_raw_ores_raw_"..ore
minetest.register_craftitem(raw_ingot, { minetest.register_craftitem(raw_ingot, {
description = ("Raw "..description), description = S("Raw "..description),
_doc_items_longdesc = ("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."), _doc_items_longdesc = S("Raw "..ore..". Mine a"..n.." "..ore.." ore to get it."),
inventory_image = texture..".png", inventory_image = texture..".png",
groups = { craftitem = 1, blast_furnace_smeltable = 1 }, groups = { craftitem = 1, blast_furnace_smeltable = 1 },
}) })
minetest.register_node(raw_ingot.."_block", { minetest.register_node(raw_ingot.."_block", {
description = ("Block of Raw "..description), description = S("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.."."), _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" }, tiles = { texture.."_block.png" },
is_ground_content = false, is_ground_content = false,
groups = { pickaxey = 2, building_block = 1, blast_furnace_smeltable = 1 }, groups = { pickaxey = 2, building_block = 1, blast_furnace_smeltable = 1 },