diff --git a/.luacheckrc b/.luacheckrc index ea3c1e8..76e8184 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -2,6 +2,7 @@ unused_args = false globals = { "minetest", + "core", } read_globals = { diff --git a/init.lua b/init.lua index 6ae8015..b343b72 100644 --- a/init.lua +++ b/init.lua @@ -1,8 +1,9 @@ +local S = core.get_translator("ice") -- Ice Brick -minetest.register_node("ice:brick", { - description = "Ice Brick", +core.register_node("ice:brick", { + description = S("Ice Brick"), tiles = { "ice_brick_tb.png", "ice_brick_tb.png", @@ -15,7 +16,7 @@ minetest.register_node("ice:brick", { sounds = default.node_sound_ice_defaults(), }) -minetest.register_craft{ +core.register_craft{ output = "ice:brick", recipe = { {"default:ice", "default:ice"}, @@ -28,14 +29,14 @@ minetest.register_craft{ walls.register( "ice:wall", - "Ice Brick Wall", + S("Ice Brick Wall"), "ice_brick_sides.png", "ice:brick", default.node_sound_ice_defaults() ) -- Fix groups (ice is not stone) -minetest.override_item("ice:wall", { +core.override_item("ice:wall", { groups = {cracky = 3, cools_lava = 1, slippery = 3, wall = 1} }) @@ -44,7 +45,7 @@ minetest.override_item("ice:wall", { doors.register("ice:door", { tiles = {"ice_door.png"}, - description = "Ice Door", + description = S("Ice Door"), inventory_image = "ice_door_inv.png", groups = {cracky = 3, cools_lava = 1, slippery = 3}, sounds = default.node_sound_ice_defaults(), diff --git a/locale/ice.de.po b/locale/ice.de.po new file mode 100644 index 0000000..6b22f00 --- /dev/null +++ b/locale/ice.de.po @@ -0,0 +1,30 @@ +# German translations for ice mod. +# Copyright (C) 2026 +# This file is distributed under GPL-3.0.. +# Automatically generated, 2026. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-30 19:51-0500\n" +"PO-Revision-Date: 2026-05-30 19:51-0500\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: init.lua:6 +msgid "Ice Brick" +msgstr "Ziegel aus Eis" + +#: init.lua:32 +msgid "Ice Brick Wall" +msgstr "Ziegelmauer aus Eis" + +#: init.lua:48 +msgid "Ice Door" +msgstr "Tuer aus Eis" diff --git a/locale/ice.es.po b/locale/ice.es.po new file mode 100644 index 0000000..521783d --- /dev/null +++ b/locale/ice.es.po @@ -0,0 +1,30 @@ +# Spanish translations for ice mod. +# Copyright (C) 2026 +# This file is distributed under GPL-3.0. +# Automatically generated, 2026. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-30 19:51-0500\n" +"PO-Revision-Date: 2026-05-30 19:51-0500\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: init.lua:6 +msgid "Ice Brick" +msgstr "Ladrillo de hielo" + +#: init.lua:32 +msgid "Ice Brick Wall" +msgstr "Muro de ladrillo de hielo" + +#: init.lua:48 +msgid "Ice Door" +msgstr "Puerta de hielo" diff --git a/locale/ice.fr.po b/locale/ice.fr.po new file mode 100644 index 0000000..86939b3 --- /dev/null +++ b/locale/ice.fr.po @@ -0,0 +1,30 @@ +# French translations for ice mod. +# Copyright (C) 2026 +# This file is distributed under GPL-3.0. +# Automatically generated, 2026. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-30 19:51-0500\n" +"PO-Revision-Date: 2026-05-30 19:51-0500\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: init.lua:6 +msgid "Ice Brick" +msgstr "Brique de glace" + +#: init.lua:32 +msgid "Ice Brick Wall" +msgstr "Mur de brique de glace" + +#: init.lua:48 +msgid "Ice Door" +msgstr "Porte de glace" diff --git a/locale/ice.it.po b/locale/ice.it.po new file mode 100644 index 0000000..2c8f74b --- /dev/null +++ b/locale/ice.it.po @@ -0,0 +1,30 @@ +# Italian translations for ice mod. +# Copyright (C) 2026 +# This file is distributed under GPL-3.0. +# Automatically generated, 2026. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-30 19:51-0500\n" +"PO-Revision-Date: 2026-05-30 19:51-0500\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: init.lua:6 +msgid "Ice Brick" +msgstr "Mattonella di ghiaccio" + +#: init.lua:32 +msgid "Ice Brick Wall" +msgstr "Muro di mattonella di ghiaccio" + +#: init.lua:48 +msgid "Ice Door" +msgstr "Porta di ghiaccio" diff --git a/locale/ice.pot b/locale/ice.pot new file mode 100644 index 0000000..0a6761f --- /dev/null +++ b/locale/ice.pot @@ -0,0 +1,28 @@ +# Copyright (C) 2026 +# This file is distributed under GPL-3.0. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-05-30 19:51-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: init.lua:6 +msgid "Ice Brick" +msgstr "" + +#: init.lua:32 +msgid "Ice Brick Wall" +msgstr "" + +#: init.lua:48 +msgid "Ice Door" +msgstr "" diff --git a/mod.conf b/mod.conf index a68967a..162186c 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,4 @@ name = ice description = Adds more ice nodes depends = default, walls, doors +min_minetest_version = 5.10 \ No newline at end of file