добавлен вывод иконки для unified_inventory на столе крафта, обновления для переводов, добавлена необязательная зависимось unified_inventory
This commit is contained in:
parent
84b7f3d795
commit
439fb9752a
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,4 +41,5 @@ luac.out
|
||||
*.iml
|
||||
|
||||
i18n.py
|
||||
*.old
|
||||
|
||||
|
12
craft.lua
12
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'},
|
||||
|
@ -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
|
||||
|
@ -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=
|
||||
|
2
mod.conf
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user