изменена структура файлов, изменено описание node дозиметра

This commit is contained in:
Vitaliy Olkhin 2024-07-31 12:20:36 +05:00
parent fb681818af
commit 0d2eb391de
4 changed files with 12 additions and 12 deletions

8
craft.lua Normal file
View File

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

View File

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

View File

@ -4,4 +4,4 @@ Chemical protection status: @1%=Состояние химзащиты: @1%
#nodes lua
Irradiated Earth=Облученная земля
Dosimeter=Дозиметр
Dosimeter (inserted into the charging slot)=Дозиметр (вставляется в слот для зарядки)

View File

@ -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},
@ -26,12 +26,3 @@ 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', ''},
}
})