From 439fb9752ae1006c7df851728fc987869490c220 Mon Sep 17 00:00:00 2001 From: Vitaliy olkhin Date: Tue, 4 Mar 2025 20:06:57 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D0=BA=D0=B8=20=D0=B4=D0=BB=D1=8F=20unified=5Finventory?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D1=81=D1=82=D0=BE=D0=BB=D0=B5=20=D0=BA=D1=80?= =?UTF-8?q?=D0=B0=D1=84=D1=82=D0=B0,=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=D0=BE=D0=B2,=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=BE=D0=B1=D1=8F=D0=B7=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE?= =?UTF-8?q?=D1=81=D1=8C=20unified=5Finventory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + craft.lua | 12 ++++++++++++ locale/surface_effect.ru.tr | 8 +++++++- locale/template.txt | 3 ++- mod.conf | 2 +- 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4e504f6..ee86b4f 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,5 @@ luac.out *.iml i18n.py +*.old diff --git a/craft.lua b/craft.lua index 4e59b3f..89cd63f 100644 --- a/craft.lua +++ b/craft.lua @@ -1,3 +1,5 @@ +local S = minetest.get_translator("surface_effect") + minetest.register_craft({ output = 'surface_effect:dosimeter', recipe = { @@ -7,6 +9,16 @@ minetest.register_craft({ } }) +--Задействовать если подключено два мода technic и unified_inventory +if minetest.get_modpath("technic") and minetest.get_modpath("unified_inventory") then + unified_inventory.register_craft_type("grinding", { + description = S("Grinder"), + icon = "technic_lv_grinder_front.png", -- Иконка для типа рецепта + width = 1, + height = 1 + }) +end + if minetest.get_modpath("technic") and minetest.get_modpath("space_travel") then technic.register_grinder_recipe({ input = {'space_travel:irradiated_space_cobble'}, diff --git a/locale/surface_effect.ru.tr b/locale/surface_effect.ru.tr index 33de1a8..af9cd6f 100644 --- a/locale/surface_effect.ru.tr +++ b/locale/surface_effect.ru.tr @@ -1,10 +1,16 @@ # textdomain: surface_effect +Grinder=Гриндер Chemical protection status: @1%=Состояние химзащиты: @1% Attention! High levels of radiation.=Внимание! Высокий уровень радиации. #nodes lua Irradiated Earth=Облученная земля Dosimeter (inserted into the charging slot)=Дозиметр (вставляется в слот для зарядки) Software version: @1=Версия ПО: @1 -Air temperature: @1=Температура воздуха: @1 Tablet=Планшет +No charge, device needs to be charged=Не заряжается, устройство необходимо зарядить Not charged, the device needs to be charged=Не заряжается, устройство необходимо зарядить + + +##### not used anymore ##### + +Air temperature: @1=Температура воздуха: @1 diff --git a/locale/template.txt b/locale/template.txt index 4ee0696..3ae0a92 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,9 +1,10 @@ # textdomain: surface_effect +Grinder= Chemical protection status: @1%= Attention! High levels of radiation.= Irradiated Earth= Dosimeter (inserted into the charging slot)= Software version: @1= -Air temperature: @1= Tablet= No charge, device needs to be charged= +Not charged, the device needs to be charged= diff --git a/mod.conf b/mod.conf index c10b0f3..955b0ed 100644 --- a/mod.conf +++ b/mod.conf @@ -1,7 +1,7 @@ name = surface_effect description = surface effect depends = default, persistent_effects, mobs_monster, radiant_damage, hazmat_suit, ethereal -optional_depends = technic, farming, space_travel, bunker +optional_depends = technic, farming, space_travel, bunker, unified_inventory min_minetest_version = 5.7 title = Surface Effect release = 0