From 0d2eb391de9f5686de0024eb534524dac4dfd5b6 Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Wed, 31 Jul 2024 12:20:36 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D1=83=D1=80=D0=B0?= =?UTF-8?q?=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2,=20=D0=B8=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20node=20=D0=B4=D0=BE=D0=B7=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- craft.lua | 8 ++++++++ init.lua | 1 + locale/surface_effect.ru.tr | 2 +- nodes.lua | 13 ++----------- 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 craft.lua diff --git a/craft.lua b/craft.lua new file mode 100644 index 0000000..b9da119 --- /dev/null +++ b/craft.lua @@ -0,0 +1,8 @@ +minetest.register_craft({ + output = 'surface_effect:dosimeter', + recipe = { + {'basic_materials:plastic_sheet', 'technic:chromium_ingot', ''}, + {'technic:control_logic_unit', 'basic_materials:ic', ''}, + {'technic:battery', 'technic:battery', ''}, + } +}) \ No newline at end of file diff --git a/init.lua b/init.lua index c86bfdd..3e60b14 100644 --- a/init.lua +++ b/init.lua @@ -6,6 +6,7 @@ local timer = 0 dofile(minetest.get_modpath("surface_effect") .. "/function.lua") dofile(minetest.get_modpath("surface_effect") .. "/nodes.lua") +dofile(minetest.get_modpath("surface_effect") .. "/craft.lua") dofile(minetest.get_modpath("surface_effect") .. "/register_abm.lua") minetest.register_globalstep(function(dtime) diff --git a/locale/surface_effect.ru.tr b/locale/surface_effect.ru.tr index 84fdc70..51f40c8 100644 --- a/locale/surface_effect.ru.tr +++ b/locale/surface_effect.ru.tr @@ -4,4 +4,4 @@ Chemical protection status: @1%=Состояние химзащиты: @1% #nodes lua Irradiated Earth=Облученная земля -Dosimeter=Дозиметр \ No newline at end of file +Dosimeter (inserted into the charging slot)=Дозиметр (вставляется в слот для зарядки) \ No newline at end of file diff --git a/nodes.lua b/nodes.lua index 4eb6e79..f17030f 100644 --- a/nodes.lua +++ b/nodes.lua @@ -17,7 +17,7 @@ minetest.register_node("surface_effect:radioactive_earth", { }) minetest.register_tool("surface_effect:dosimeter", { - description = S("Dosimeter"), + description = S("Dosimeter (inserted into the charging slot)"), inventory_image = "surface_effect_dosimeter.png", wear_represents = "technic_RE_charge", groups = {not_in_creative_inventory = 0}, @@ -25,13 +25,4 @@ minetest.register_tool("surface_effect:dosimeter", { if minetest.get_modpath("technic") then technic.register_power_tool("surface_effect:dosimeter", 65535) -end - -minetest.register_craft({ - output = 'surface_effect:dosimeter', - recipe = { - {'basic_materials:plastic_sheet', 'technic:chromium_ingot', ''}, - {'technic:control_logic_unit', 'basic_materials:ic', ''}, - {'technic:battery', 'technic:battery', ''}, - } -}) \ No newline at end of file +end \ No newline at end of file