добавлен вывод иконки для unified_inventory на столе крафта, обновления для переводов, добавлена необязательная зависимось unified_inventory

This commit is contained in:
Vitaliy olkhin 2025-03-04 20:06:57 +05:00
parent 84b7f3d795
commit 439fb9752a
5 changed files with 23 additions and 3 deletions

1
.gitignore vendored
View File

@ -41,4 +41,5 @@ luac.out
*.iml
i18n.py
*.old

View File

@ -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'},

View File

@ -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

View File

@ -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=

View File

@ -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