2015-08-01 14:42:22 +02:00
|
|
|
local modname = "equivalent_exchange_energy_collectors:"
|
|
|
|
|
2015-08-01 14:23:25 +02:00
|
|
|
-- Registering Nodes --
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_node(modname.."red_matter_block", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Red Matter Block",
|
|
|
|
tiles = {
|
2015-08-01 15:04:31 +02:00
|
|
|
"ee_energy_collectors_red_matter_block.png",
|
|
|
|
"ee_energy_collectors_red_matter_block.png",
|
|
|
|
"ee_energy_collectors_red_matter_block.png",
|
|
|
|
"ee_energy_collectors_red_matter_block.png",
|
|
|
|
"ee_energy_collectors_red_matter_block.png",
|
|
|
|
"ee_energy_collectors_red_matter_block.png"
|
2015-08-01 14:23:25 +02:00
|
|
|
},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky = 3},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
emc = 1253376
|
|
|
|
})
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_node(modname.."antimatter_block", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Antimatter Block",
|
|
|
|
tiles = {
|
2015-08-01 15:04:31 +02:00
|
|
|
"ee_energy_collectors_antimatter_block.png",
|
|
|
|
"ee_energy_collectors_antimatter_block.png",
|
|
|
|
"ee_energy_collectors_antimatter_block.png",
|
|
|
|
"ee_energy_collectors_antimatter_block.png",
|
|
|
|
"ee_energy_collectors_antimatter_block.png",
|
|
|
|
"ee_energy_collectors_antimatter_block.png"
|
2015-08-01 14:23:25 +02:00
|
|
|
},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky = 3},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
emc = 4202496
|
|
|
|
})
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_node(modname.."condensed_antimatter", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Condensed Antimatter",
|
|
|
|
tiles = {
|
2015-08-01 15:04:31 +02:00
|
|
|
"ee_energy_collectors_condensed_antimatter.png",
|
|
|
|
"ee_energy_collectors_condensed_antimatter.png",
|
|
|
|
"ee_energy_collectors_condensed_antimatter.png",
|
|
|
|
"ee_energy_collectors_condensed_antimatter.png",
|
|
|
|
"ee_energy_collectors_condensed_antimatter.png",
|
|
|
|
"ee_energy_collectors_condensed_antimatter.png"
|
2015-08-01 14:23:25 +02:00
|
|
|
},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {cracky = 5},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
emc = 33628160
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Registering Craft Items --
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_craftitem(modname.."alchemical_crystal", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Alchemical Crystal",
|
2015-08-01 15:04:31 +02:00
|
|
|
inventory_image = "ee_energy_collectors_alchemical_crystal.png",
|
2015-08-01 14:23:25 +02:00
|
|
|
emc = 512,
|
|
|
|
})
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_craftitem(modname.."mobius_fuel", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Mobius Fuel",
|
2015-08-01 15:04:31 +02:00
|
|
|
inventory_image = "ee_energy_collectors_mobius_fuel.png",
|
2015-08-01 14:23:25 +02:00
|
|
|
emc = 2048,
|
|
|
|
})
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_craftitem(modname.."aeternalis_fuel", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Aeternalis Fuel",
|
2015-08-01 15:04:31 +02:00
|
|
|
inventory_image = "ee_energy_collectors_aeternalis_fuel.png",
|
2015-08-01 14:23:25 +02:00
|
|
|
emc = 8192,
|
|
|
|
})
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_craftitem(modname.."red_matter", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Red Matter",
|
2015-08-01 15:04:31 +02:00
|
|
|
inventory_image = "ee_energy_collectors_red_matter.png",
|
2015-08-01 14:23:25 +02:00
|
|
|
emc = 139264
|
|
|
|
})
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
minetest.register_craftitem(modname.."antimatter", {
|
2015-08-01 14:23:25 +02:00
|
|
|
description = "Antimatter",
|
2015-08-01 15:04:31 +02:00
|
|
|
inventory_image = "ee_energy_collectors_antimatter.png",
|
2015-08-01 14:23:25 +02:00
|
|
|
emc = 466944
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Registering Crafts --
|
|
|
|
|
2015-08-01 14:42:22 +02:00
|
|
|
local fuels = {"default:diamond",modname.."alchemical_crystal",modname.."mobius_fuel",modname.."aeternalis_fuel"}
|
2015-08-01 14:23:25 +02:00
|
|
|
|
|
|
|
for i = 2,4 do
|
|
|
|
minetest["register_craft"]({
|
|
|
|
type = "shapeless",
|
|
|
|
output = fuels[i],
|
|
|
|
recipe = {"equivalent_exchange:philosophers_stone", fuels[i-1], fuels[i-1], fuels[i-1],fuels[i-1]},
|
|
|
|
replacements = {
|
|
|
|
{"equivalent_exchange:philosophers_stone", "equivalent_exchange:philosophers_stone"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest["register_craft"]({
|
|
|
|
type = "shapeless",
|
|
|
|
output = fuels[i-1].." 4",
|
|
|
|
recipe = {"equivalent_exchange:philosophers_stone", fuels[i]},
|
|
|
|
replacements = {
|
|
|
|
{"equivalent_exchange:philosophers_stone", "equivalent_exchange:philosophers_stone"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-08-01 14:42:22 +02:00
|
|
|
output = modname.."red_matter",
|
2015-08-01 14:23:25 +02:00
|
|
|
recipe = {
|
2015-08-01 14:42:22 +02:00
|
|
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"},
|
|
|
|
{modname.."aeternalis_fuel", "default:mese", modname.."aeternalis_fuel"},
|
|
|
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"}
|
2015-08-01 14:23:25 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-08-01 14:42:22 +02:00
|
|
|
output = modname.."antimatter",
|
2015-08-01 14:23:25 +02:00
|
|
|
recipe = {
|
2015-08-01 14:42:22 +02:00
|
|
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"},
|
|
|
|
{modname.."red_matter",modname.."red_matter",modname.."red_matter"},
|
|
|
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"}
|
2015-08-01 14:23:25 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-08-01 14:42:22 +02:00
|
|
|
output = modname.."red_matter_block",
|
2015-08-01 14:23:25 +02:00
|
|
|
recipe = {
|
2015-08-01 14:42:22 +02:00
|
|
|
{modname.."red_matter", modname.."red_matter", modname.."red_matter"},
|
|
|
|
{modname.."red_matter", modname.."red_matter", modname.."red_matter"},
|
|
|
|
{modname.."red_matter", modname.."red_matter", modname.."red_matter"}
|
2015-08-01 14:23:25 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-08-01 14:42:22 +02:00
|
|
|
output = modname.."antimatter_block",
|
2015-08-01 14:23:25 +02:00
|
|
|
recipe = {
|
2015-08-01 14:42:22 +02:00
|
|
|
{modname.."antimatter", modname.."antimatter", modname.."antimatter"},
|
|
|
|
{modname.."antimatter", modname.."antimatter", modname.."antimatter"},
|
|
|
|
{modname.."antimatter", modname.."antimatter", modname.."antimatter"}
|
2015-08-01 14:23:25 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
2015-08-01 14:42:22 +02:00
|
|
|
output = modname.."condensed_antimatter",
|
2015-08-01 14:23:25 +02:00
|
|
|
recipe = {
|
2015-08-01 14:42:22 +02:00
|
|
|
{modname.."antimatter_block", modname.."antimatter_block", modname.."antimatter_block"},
|
|
|
|
{modname.."antimatter_block", modname.."aeternalis_fuel", modname.."antimatter_block"},
|
|
|
|
{modname.."antimatter_block", modname.."antimatter_block", modname.."antimatter_block"}
|
2015-08-01 14:23:25 +02:00
|
|
|
}
|
|
|
|
})
|