From 95aadd40b9e2bf0b5968fa5ed53f903838f051fb Mon Sep 17 00:00:00 2001 From: blitzdoughnuts Date: Fri, 16 Aug 2024 22:28:08 +0200 Subject: [PATCH] Add charcoal blocks as an item (#4589) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: blitzdoughnuts Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4589 Reviewed-by: Mikita Wiśniewski Co-authored-by: blitzdoughnuts Co-committed-by: blitzdoughnuts --- LEGAL.md | 3 +++ mods/ITEMS/mcl_core/crafting.lua | 22 +++++++++++++++++++ mods/ITEMS/mcl_core/locale/mcl_core.de.tr | 2 ++ mods/ITEMS/mcl_core/locale/mcl_core.es.tr | 2 ++ mods/ITEMS/mcl_core/locale/mcl_core.fr.tr | 2 ++ mods/ITEMS/mcl_core/locale/mcl_core.ja.tr | 4 +++- mods/ITEMS/mcl_core/locale/mcl_core.pl.tr | 2 ++ mods/ITEMS/mcl_core/locale/mcl_core.pt_BR.tr | 2 ++ mods/ITEMS/mcl_core/locale/mcl_core.ru.tr | 2 ++ mods/ITEMS/mcl_core/locale/mcl_core.zh_TW.tr | 2 ++ mods/ITEMS/mcl_core/locale/template.txt | 2 ++ mods/ITEMS/mcl_core/nodes_base.lua | 12 ++++++++++ textures/mcl_core_charcoal_block.png | Bin 0 -> 224 bytes 13 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 textures/mcl_core_charcoal_block.png diff --git a/LEGAL.md b/LEGAL.md index d95f17624..a9c1be5ea 100644 --- a/LEGAL.md +++ b/LEGAL.md @@ -46,6 +46,9 @@ Armor trim models were created by Aeonix_Aeon Source: License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) +Charcoal block texture was created by [blitzdoughnuts](https://gitlab.com/ApplemunchFromDaDead), based on the Pixel Perfection coal block. +License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/) + The main menu images are released under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/) All other files, unless mentioned otherwise, fall under: diff --git a/mods/ITEMS/mcl_core/crafting.lua b/mods/ITEMS/mcl_core/crafting.lua index ffba04a7b..7baddbefd 100644 --- a/mods/ITEMS/mcl_core/crafting.lua +++ b/mods/ITEMS/mcl_core/crafting.lua @@ -165,6 +165,22 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "mcl_core:charcoalblock", + recipe = { + {"mcl_core:charcoal_lump", "mcl_core:charcoal_lump", "mcl_core:charcoal_lump"}, + {"mcl_core:charcoal_lump", "mcl_core:charcoal_lump", "mcl_core:charcoal_lump"}, + {"mcl_core:charcoal_lump", "mcl_core:charcoal_lump", "mcl_core:charcoal_lump"}, + } +}) + +minetest.register_craft({ + output = "mcl_core:charcoal_lump 9", + recipe = { + {"mcl_core:charcoalblock"}, + } +}) + minetest.register_craft({ output = "mcl_core:ironblock", recipe = { @@ -497,6 +513,12 @@ minetest.register_craft({ burntime = 800, }) +minetest.register_craft({ + type = "fuel", + recipe = "mcl_core:charcoalblock", + burntime = 800, +}) + minetest.register_craft({ type = "fuel", recipe = "mcl_core:coal_lump", diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.de.tr b/mods/ITEMS/mcl_core/locale/mcl_core.de.tr index 4f9071825..3be982bbb 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.de.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.de.tr @@ -35,11 +35,13 @@ Birch Wood Planks=Birkenholzplanken Birch leaves are grown from birch trees.=Birkenblätter wachsen an Birken. Black Stained Glass=Schwarzes Buntglas Block of Coal=Kohleblock +Block of Charcoal= Block of Diamond=Diamantblock Block of Emerald=Smaragdblock Block of Gold=Goldblock Block of Iron=Eisenblock Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=Kohleblöcke sind für eine kompakte Aufbewahrung von Kohle nützlich und sehr nützlich als Ofenbrennstoff. Ein Kohleblock ist so effizient wie 10 mal Kohle. +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=Blaues Buntglas Bone Block=Knochenblock Bone blocks are decorative blocks and a compact storage of bone meal.=Knochenblöcke sind Deko-Blöcke und geeignet zur kompakten Aufbewahrung von Knochenmehl. diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.es.tr b/mods/ITEMS/mcl_core/locale/mcl_core.es.tr index cf16e5bda..9d276152e 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.es.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.es.tr @@ -35,11 +35,13 @@ Birch Wood Planks=Madera de abedul Birch leaves are grown from birch trees.=Las hojas de abedul se cultivan a partir de abedules. Black Stained Glass=Cristal negro Block of Coal=Bloque de carbón +Block of Charcoal= Block of Diamond=Bloque de diamante Block of Emerald=Bloque de esmeralda Block of Gold=Bloque de oro Block of Iron=Bloque de hierro Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=Los bloques de carbón son útiles como almacenamiento compacto de carbón y son muy útiles como combustible de horno. Un bloque de carbón es tan eficiente como 10 de carbón. +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=Cristal azul Bone Block=Bloque de hueso Bone blocks are decorative blocks and a compact storage of bone meal.=Los bloques óseos son bloques decorativos y un almacenamiento compacto de harina de huesos. diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.fr.tr b/mods/ITEMS/mcl_core/locale/mcl_core.fr.tr index db90b43c6..bd0809653 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.fr.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.fr.tr @@ -35,11 +35,13 @@ Birch Wood Planks=Planches de bouleau Birch leaves are grown from birch trees.=Les feuilles de bouleau poussent sur les bouleaux. Black Stained Glass=Verre noir Block of Coal=Bloc de charbon +Block of Charcoal= Block of Diamond=Bloc de diamant Block of Emerald=Bloc d'émeraude Block of Gold=Bloc d'or Block of Iron=Bloc de fer Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=Les blocs de charbon sont utiles pour stocker du charbon et très utiles comme combustible de four. Un bloc de charbon est aussi efficace que 10 charbon. +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=Verre bleu Bone Block=Bloc d'os Bone blocks are decorative blocks and a compact storage of bone meal.=Les blocs d'os sont des blocs décoratifs et servent à stocker la poudre d'os. diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.ja.tr b/mods/ITEMS/mcl_core/locale/mcl_core.ja.tr index 401b02700..a722d51c9 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.ja.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.ja.tr @@ -35,11 +35,13 @@ Birch Wood Planks=シラカバの板材 Birch leaves are grown from birch trees.=シラカバの葉は、シラカバの木から育ちます。 Black Stained Glass=黒色ガラス Block of Coal=石炭ブロック +Block of Charcoal= Block of Diamond=ダイヤモンドブロック Block of Emerald=エメラルドブロック Block of Gold=金ブロック Block of Iron=鉄ブロック Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=石炭ブロックは、石炭をコンパクトに保管でき、炉の燃料として非常に便利です。1個の石炭ブロックは、10個の石炭と同じ効率です。 +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=青色ガラス Bone Block=骨ブロック Bone blocks are decorative blocks and a compact storage of bone meal.=骨ブロックは装飾用ブロックで、骨粉をコンパクトに保管できます。 @@ -283,4 +285,4 @@ Grows on sand or dirt next to water=水辺の砂や土の上に生育 Stackable=スタック可能 Crying Obsidian=泣く黒曜石 Crying obsidian is a luminous obsidian that can generate as part of ruined portals.=泣く黒曜石は、廃墟のポータルの一部として生成可能な、発光する黒曜石です。 -Enchanted Golden Apple=エンチャントされた金のリンゴ \ No newline at end of file +Enchanted Golden Apple=エンチャントされた金のリンゴ diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.pl.tr b/mods/ITEMS/mcl_core/locale/mcl_core.pl.tr index 669e4bc9b..94b19a4e8 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.pl.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.pl.tr @@ -35,11 +35,13 @@ Birch Wood Planks=Brzozowe deski Birch leaves are grown from birch trees.=Brzozowe liście rosną na brzozach. Black Stained Glass=Czarne szkło Block of Coal=Blok węgla +Block of Charcoal= Block of Diamond=Blok diamentu Block of Emerald=Blok szmaragdu Block of Gold=Blok złota Block of Iron=Blok żelaza Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=Bloki węgla są użyteczne do kompaktowego przechowywania diamentów i bardzo użyteczne jako paliwo do pieca. +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=Niebieskie szkło Bone Block=Blok kości Bone blocks are decorative blocks and a compact storage of bone meal.=Bloki kości są blokami dekoracyjnymi i są użyteczne do kompaktowego przechowywania mączki kostnej. diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.pt_BR.tr b/mods/ITEMS/mcl_core/locale/mcl_core.pt_BR.tr index c8ed5b8c3..b593181e2 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.pt_BR.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.pt_BR.tr @@ -35,11 +35,13 @@ Birch Wood Planks=Tábuas de Bétula Birch leaves are grown from birch trees.=Folhas de bétula crescem a partir de árvores de bétula. Black Stained Glass=Vidro Tingido de Preto Block of Coal=Bloco de Carvão +Block of Charcoal= Block of Diamond=Bloco de Diamante Block of Emerald=Bloco de Esmeralda Block of Gold=Bloco de Ouro Block of Iron=Bloco de Ferro Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=Blocos de carvão são úteis para armzenad carvão de forma compacta e muito úteis como combustível de fornalas. Um bloco de carvão é tão eficiente quanto 10 carvões. +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=Vidro Tingido de Azul Bone Block=Bloco de Osso Bone blocks are decorative blocks and a compact storage of bone meal.=Blocos de osso são blocos decorativos e uma forma compacta de armazenar farinha de osso. diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.ru.tr b/mods/ITEMS/mcl_core/locale/mcl_core.ru.tr index 6f29bd37e..25cb17343 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.ru.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.ru.tr @@ -35,11 +35,13 @@ Birch Wood Planks=Берёзовые доски Birch leaves are grown from birch trees.=Листва берёзы произрастает на берёзах. Black Stained Glass=Чёрное стекло Block of Coal=Угольный блок +Block of Charcoal=Блок древесного угля Block of Diamond=Алмазный блок Block of Emerald=Изумрудный блок Block of Gold=Золотой блок Block of Iron=Железный блок Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=Угольный блок удобен для компактного хранения угля, а также полезен как топливо для печи. +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.=Блок древесного угля удобен для компактного хранения древесного угля, а также полезен как топливо для печи. Blue Stained Glass=Синее стекло Bone Block=Костный блок Bone blocks are decorative blocks and a compact storage of bone meal.=Костные блоки это декоративные блоки, а также способ компактного хранения костной муки. diff --git a/mods/ITEMS/mcl_core/locale/mcl_core.zh_TW.tr b/mods/ITEMS/mcl_core/locale/mcl_core.zh_TW.tr index 74f3297a1..93fa55d1a 100644 --- a/mods/ITEMS/mcl_core/locale/mcl_core.zh_TW.tr +++ b/mods/ITEMS/mcl_core/locale/mcl_core.zh_TW.tr @@ -34,11 +34,13 @@ Birch Wood Planks=白樺樹木材 Birch leaves are grown from birch trees.=白樺樹葉是由白樺樹樹生長出來的。 Black Stained Glass=黑色玻璃 Block of Coal=煤炭磚 +Block of Charcoal= Block of Diamond=鑽石磚 Block of Emerald=綠寶石磚 Block of Gold=金磚 Block of Iron=鐵磚 Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.=煤炭磚作為煤炭的省位存儲方式,作為熔爐燃料非常有用。一個煤炭磚的燃燒時間相當於10塊煤炭。 +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass=藍色玻璃 Bone Block=骨塊 Bone blocks are decorative blocks and a compact storage of bone meal.=骨粉塊是一個裝飾方塊,也是骨粉的省位存儲方式。 diff --git a/mods/ITEMS/mcl_core/locale/template.txt b/mods/ITEMS/mcl_core/locale/template.txt index 911746699..6ea2e21f2 100644 --- a/mods/ITEMS/mcl_core/locale/template.txt +++ b/mods/ITEMS/mcl_core/locale/template.txt @@ -35,11 +35,13 @@ Birch Wood Planks= Birch leaves are grown from birch trees.= Black Stained Glass= Block of Coal= +Block of Charcoal= Block of Diamond= Block of Emerald= Block of Gold= Block of Iron= Blocks of coal are useful as a compact storage of coal and very useful as a furnace fuel. A block of coal is as efficient as 10 coal.= +Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal.= Blue Stained Glass= Bone Block= Bone blocks are decorative blocks and a compact storage of bone meal.= diff --git a/mods/ITEMS/mcl_core/nodes_base.lua b/mods/ITEMS/mcl_core/nodes_base.lua index 28e83a7a7..b691c6dfe 100644 --- a/mods/ITEMS/mcl_core/nodes_base.lua +++ b/mods/ITEMS/mcl_core/nodes_base.lua @@ -798,6 +798,18 @@ minetest.register_node("mcl_core:coalblock", { _mcl_hardness = 5, }) +minetest.register_node("mcl_core:charcoalblock", { + description = S("Block of Charcoal"), + _doc_items_longdesc = S("Blocks of charcoal are useful as a compact storage of charcoal and very useful as a furnace fuel. A block of charcoal is as efficient as 10 charcoal."), + tiles = {"mcl_core_charcoal_block.png"}, + is_ground_content = false, + stack_max = 64, + groups = {pickaxey=1, flammable=1, building_block=1, material_stone=1, fire_encouragement=5, fire_flammability=5}, + sounds = mcl_sounds.node_sound_stone_defaults(), + _mcl_blast_resistance = 6, + _mcl_hardness = 5, +}) + minetest.register_node("mcl_core:ironblock", { description = S("Block of Iron"), _doc_items_longdesc = S("A block of iron is mostly a decorative block but also useful as a compact storage of iron ingots."), diff --git a/textures/mcl_core_charcoal_block.png b/textures/mcl_core_charcoal_block.png new file mode 100644 index 0000000000000000000000000000000000000000..bd33b910eefdd946b8f2f273c9f219d4495a4ed3 GIT binary patch literal 224 zcmV<603ZK}P)?2DmXqSH3b zWlF3U)Gv3zz!Ok0n((YZK@Rlllz{lE0te`~6R=eodnLTph%i87&4s-^y%Cx@Y(ulbW0000