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