2024-07-26 15:26:43 +03:00
|
|
|
local S = minetest.get_translator("surface_effect")
|
|
|
|
|
|
|
|
minetest.register_node("surface_effect:radioactive_earth", {
|
|
|
|
description = S("Irradiated Earth"),
|
|
|
|
tiles = {
|
|
|
|
"surface_effect_radioactive_earth_up.png",
|
|
|
|
"surface_effect_radioactive_eartha_front.png",
|
|
|
|
"surface_effect_radioactive_eartha_front.png",
|
|
|
|
"surface_effect_radioactive_eartha_front.png",
|
|
|
|
"surface_effect_radioactive_eartha_front.png",
|
|
|
|
"surface_effect_radioactive_eartha_front.png",
|
|
|
|
},
|
|
|
|
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name = "default_grass_footstep", gain = 0.25},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2024-07-30 12:21:16 +03:00
|
|
|
minetest.register_tool("surface_effect:dosimeter", {
|
|
|
|
description = S("Dosimeter"),
|
2024-07-30 18:10:59 +03:00
|
|
|
inventory_image = "surface_effect_dosimeter.png",
|
|
|
|
wear_represents = "technic_RE_charge",
|
|
|
|
groups = {not_in_creative_inventory = 0},
|
|
|
|
})
|
|
|
|
|
|
|
|
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', ''},
|
|
|
|
}
|
2024-07-26 15:26:43 +03:00
|
|
|
})
|