2025-03-04 20:06:57 +05:00
|
|
|
local S = minetest.get_translator("surface_effect")
|
|
|
|
|
2024-07-31 12:20:36 +05:00
|
|
|
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', ''},
|
|
|
|
}
|
2025-01-02 14:49:44 +05:00
|
|
|
})
|
|
|
|
|
2025-03-04 20:06:57 +05:00
|
|
|
--Задействовать если подключено два мода 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
|
|
|
|
|
2025-01-02 14:49:44 +05:00
|
|
|
if minetest.get_modpath("technic") and minetest.get_modpath("space_travel") then
|
|
|
|
technic.register_grinder_recipe({
|
|
|
|
input = {'space_travel:irradiated_space_cobble'},
|
|
|
|
output = {'technic:stone_dust'}
|
|
|
|
})
|
2025-01-03 13:09:04 +05:00
|
|
|
technic.register_grinder_recipe({
|
|
|
|
input = {'space_travel:space_cobble'},
|
2025-01-03 16:01:07 +03:00
|
|
|
output = {'space_travel:space_gravel'}
|
|
|
|
})
|
2025-01-04 12:01:20 +05:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'default:gravel',
|
|
|
|
recipe={{'space_travel:space_gravel'}}
|
2025-01-03 13:09:04 +05:00
|
|
|
})
|
2025-03-03 21:44:52 +05:00
|
|
|
end
|
|
|
|
|
|
|
|
--Исправление в зависимостях рецепта
|
|
|
|
if minetest.get_modpath("bunker") and minetest.get_modpath("technic") then
|
|
|
|
minetest.clear_craft({
|
|
|
|
output = "bunker:cement_powder"
|
|
|
|
})
|
|
|
|
|
|
|
|
technic.register_grinder_recipe({
|
|
|
|
input = {'default:clay_lump'},
|
2025-03-04 17:38:19 +05:00
|
|
|
output = 'bunker:cement_powder 1'
|
2025-03-03 21:44:52 +05:00
|
|
|
})
|
2025-01-02 14:49:44 +05:00
|
|
|
end
|