2023-11-19 01:48:35 +01:00
|
|
|
local S = minetest.get_translator()
|
|
|
|
|
2023-05-27 02:24:02 +02:00
|
|
|
local function get_level(level)
|
2023-09-29 01:23:49 +02:00
|
|
|
if exchangeclone.mcl then
|
2023-05-27 02:24:02 +02:00
|
|
|
return nil
|
|
|
|
else
|
|
|
|
return level
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craftitem("exchangeclone:alchemical_coal", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Alchemical Coal"),
|
2023-05-27 02:24:02 +02:00
|
|
|
wield_image = "exchangeclone_alchemical_coal.png",
|
|
|
|
inventory_image = "exchangeclone_alchemical_coal.png",
|
|
|
|
groups = { craftitem=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("exchangeclone:mobius_fuel", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Mobius Fuel"),
|
2023-05-27 02:24:02 +02:00
|
|
|
wield_image = "exchangeclone_mobius_fuel.png",
|
|
|
|
inventory_image = "exchangeclone_mobius_fuel.png",
|
|
|
|
groups = { craftitem=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("exchangeclone:aeternalis_fuel", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Aeternalis Fuel"),
|
2023-05-27 02:24:02 +02:00
|
|
|
wield_image = "exchangeclone_aeternalis_fuel.png",
|
|
|
|
inventory_image = "exchangeclone_aeternalis_fuel.png",
|
|
|
|
groups = { craftitem=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "exchangeclone:alchemical_coal",
|
|
|
|
burntime = 320,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "exchangeclone:mobius_fuel",
|
|
|
|
burntime = 1280,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "exchangeclone:aeternalis_fuel",
|
|
|
|
burntime = 5120,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("exchangeclone:dark_matter", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Dark Matter Orb"),
|
2023-05-27 02:24:02 +02:00
|
|
|
wield_image = "exchangeclone_dark_matter.png",
|
|
|
|
inventory_image = "exchangeclone_dark_matter.png",
|
|
|
|
groups = {craftitem = 1}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("exchangeclone:red_matter", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Red Matter Orb"),
|
2023-05-27 02:24:02 +02:00
|
|
|
wield_image = "exchangeclone_red_matter.png",
|
|
|
|
inventory_image = "exchangeclone_red_matter.png",
|
|
|
|
groups = {craftitem = 1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("exchangeclone:dark_matter_block", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Dark Matter Block"),
|
2023-05-27 02:24:02 +02:00
|
|
|
tiles = {"exchangeclone_dark_matter_block.png"},
|
|
|
|
is_ground_content = false,
|
2023-09-25 16:41:23 +02:00
|
|
|
sounds = exchangeclone.sound_mod.node_sound_stone_defaults(),
|
2023-05-27 02:24:02 +02:00
|
|
|
groups = {pickaxey=5, material_stone=1, cracky = 3, level = get_level(4)}, --ridiculous workaround
|
|
|
|
_mcl_blast_resistance = 1500,
|
2024-01-26 17:52:38 +01:00
|
|
|
_mcl_hardness = 12,
|
2023-05-27 02:24:02 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("exchangeclone:red_matter_block", {
|
2023-11-19 01:48:35 +01:00
|
|
|
description = S("Red Matter Block"),
|
2023-05-27 02:24:02 +02:00
|
|
|
tiles = {"exchangeclone_red_matter_block.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
light_source = 14,
|
2023-09-25 16:41:23 +02:00
|
|
|
sounds = exchangeclone.sound_mod.node_sound_stone_defaults(),
|
2023-12-25 18:56:50 +01:00
|
|
|
groups = {pickaxey=6, material_stone=1, cracky = 3, level = get_level(5)},
|
2023-05-27 02:24:02 +02:00
|
|
|
_mcl_blast_resistance = 1500,
|
2024-01-26 17:52:38 +01:00
|
|
|
_mcl_hardness = 37,
|
2023-05-27 02:24:02 +02:00
|
|
|
})
|
2023-09-29 01:23:49 +02:00
|
|
|
if exchangeclone.mcl then
|
2023-06-21 23:45:22 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "exchangeclone:dark_matter",
|
|
|
|
recipe = {
|
|
|
|
{"exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel"},
|
|
|
|
{"exchangeclone:aeternalis_fuel", "mcl_core:diamondblock", "exchangeclone:aeternalis_fuel"},
|
|
|
|
{"exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "exchangeclone:dark_matter",
|
|
|
|
recipe = {
|
|
|
|
{"exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel"},
|
|
|
|
{"exchangeclone:aeternalis_fuel", "default:diamondblock", "exchangeclone:aeternalis_fuel"},
|
|
|
|
{"exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
2023-05-27 02:24:02 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "exchangeclone:red_matter",
|
|
|
|
recipe = {
|
|
|
|
{"exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel"},
|
|
|
|
{"exchangeclone:dark_matter", "exchangeclone:dark_matter", "exchangeclone:dark_matter"},
|
|
|
|
{"exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel", "exchangeclone:aeternalis_fuel"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2023-11-13 02:30:16 +01:00
|
|
|
output = "exchangeclone:dark_matter_block",
|
2023-05-27 02:24:02 +02:00
|
|
|
recipe = {
|
|
|
|
{"exchangeclone:dark_matter", "exchangeclone:dark_matter"},
|
|
|
|
{"exchangeclone:dark_matter", "exchangeclone:dark_matter"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2023-11-13 02:30:16 +01:00
|
|
|
output = "exchangeclone:red_matter_block",
|
2023-05-27 02:24:02 +02:00
|
|
|
recipe = {
|
|
|
|
{"exchangeclone:red_matter", "exchangeclone:red_matter"},
|
|
|
|
{"exchangeclone:red_matter", "exchangeclone:red_matter"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "exchangeclone:dark_matter 4",
|
|
|
|
recipe = {
|
2023-11-13 02:30:16 +01:00
|
|
|
{"exchangeclone:dark_matter_block"}
|
2023-05-27 02:24:02 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "exchangeclone:red_matter 4",
|
|
|
|
recipe = {
|
2023-11-13 02:30:16 +01:00
|
|
|
{"exchangeclone:red_matter_block",}
|
2023-05-27 02:24:02 +02:00
|
|
|
}
|
|
|
|
})
|