diff --git a/craft.lua b/craft.lua new file mode 100644 index 0000000..b9da119 --- /dev/null +++ b/craft.lua @@ -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', ''}, + } +}) \ No newline at end of file diff --git a/init.lua b/init.lua index c86bfdd..3e60b14 100644 --- a/init.lua +++ b/init.lua @@ -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) diff --git a/locale/surface_effect.ru.tr b/locale/surface_effect.ru.tr index 84fdc70..51f40c8 100644 --- a/locale/surface_effect.ru.tr +++ b/locale/surface_effect.ru.tr @@ -4,4 +4,4 @@ Chemical protection status: @1%=Состояние химзащиты: @1% #nodes lua Irradiated Earth=Облученная земля -Dosimeter=Дозиметр \ No newline at end of file +Dosimeter (inserted into the charging slot)=Дозиметр (вставляется в слот для зарядки) \ No newline at end of file diff --git a/nodes.lua b/nodes.lua index 4eb6e79..f17030f 100644 --- a/nodes.lua +++ b/nodes.lua @@ -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}, @@ -25,13 +25,4 @@ 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', ''}, - } -}) \ No newline at end of file +end \ No newline at end of file