изменена структура файлов, изменено описание node дозиметра
This commit is contained in:
parent
fb681818af
commit
0d2eb391de
8
craft.lua
Normal file
8
craft.lua
Normal 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', ''},
|
||||
}
|
||||
})
|
1
init.lua
1
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)
|
||||
|
@ -4,4 +4,4 @@ Chemical protection status: @1%=Состояние химзащиты: @1%
|
||||
|
||||
#nodes lua
|
||||
Irradiated Earth=Облученная земля
|
||||
Dosimeter=Дозиметр
|
||||
Dosimeter (inserted into the charging slot)=Дозиметр (вставляется в слот для зарядки)
|
13
nodes.lua
13
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', ''},
|
||||
}
|
||||
})
|
||||
end
|
Loading…
Reference in New Issue
Block a user