mirror of
https://github.com/ZNixian/equivalent_exchange.git
synced 2024-12-26 23:17:28 +01:00
organized
This commit is contained in:
parent
382b869c71
commit
dac276bc3a
@ -1,3 +1,5 @@
|
|||||||
|
local modname = "equivalent_exchange:"
|
||||||
|
|
||||||
-- chest = {
|
-- chest = {
|
||||||
-- talisman_check = function(pos)
|
-- talisman_check = function(pos)
|
||||||
-- local meta = minetest.get_meta(pos)
|
-- local meta = minetest.get_meta(pos)
|
||||||
@ -11,7 +13,7 @@
|
|||||||
|
|
||||||
-- Registering Nodes --
|
-- Registering Nodes --
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange:alchemical_chest", {
|
minetest.register_node(modname.."alchemical_chest", {
|
||||||
description = "Alchemical Chest",
|
description = "Alchemical Chest",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_alchemical_chest_top.png",
|
"equivalent_exchange_alchemical_chest_top.png",
|
||||||
@ -53,21 +55,12 @@ minetest.register_node("equivalent_exchange:alchemical_chest", {
|
|||||||
emc = 8987
|
emc = 8987
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Registering Craft Items --
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:talisman_of_repair", {
|
|
||||||
description = "Talisman of Repair",
|
|
||||||
inventory_image = "equivalent_exchange_talisman_of_repair.png",
|
|
||||||
stack_max = 1,
|
|
||||||
emc = 10000,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Registering Crafts --
|
-- Registering Crafts --
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange:alchemical_chest",
|
output = modname.."alchemical_chest",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange:low_covalence", "equivalent_exchange:medium_covalence", "equivalent_exchange:high_covalence"},
|
{modname.."low_covalence", modname.."medium_covalence", modname.."high_covalence"},
|
||||||
{"default:stone", "default:diamond", "default:stone"},
|
{"default:stone", "default:diamond", "default:stone"},
|
||||||
{"default:steel_ingot", "default:chest", "default:steel_ingot"}
|
{"default:steel_ingot", "default:chest", "default:steel_ingot"}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
local modname = "equivalent_exchange:"
|
||||||
|
|
||||||
condenser = {
|
condenser = {
|
||||||
convert = function(pos)
|
convert = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
@ -51,7 +53,7 @@ condenser = {
|
|||||||
-- Registering ABMs --
|
-- Registering ABMs --
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"equivalent_exchange:condenser"},
|
nodenames = {modname.."condenser"},
|
||||||
interval = 1.5,
|
interval = 1.5,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
@ -60,7 +62,7 @@ minetest.register_abm({
|
|||||||
})
|
})
|
||||||
-- Registering Nodes --
|
-- Registering Nodes --
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange:condenser", {
|
minetest.register_node(modname.."condenser", {
|
||||||
description = "Energy Condenser",
|
description = "Energy Condenser",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_condenser_top.png",
|
"equivalent_exchange_condenser_top.png",
|
||||||
@ -107,10 +109,10 @@ minetest.register_node("equivalent_exchange:condenser", {
|
|||||||
--Registering Crafts--
|
--Registering Crafts--
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange:condenser",
|
output = modname.."condenser",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:obsidian", "default:mese", "default:obsidian"},
|
{"default:obsidian", "default:mese", "default:obsidian"},
|
||||||
{"default:mese", "equivalent_exchange:alchemical_chest", "default:mese"},
|
{"default:mese", modname.."alchemical_chest", "default:mese"},
|
||||||
{"default:obsidian", "default:mese", "default:obsidian"}
|
{"default:obsidian", "default:mese", "default:obsidian"}
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -1,18 +1,20 @@
|
|||||||
|
local modname = "equivalent_exchange:"
|
||||||
|
|
||||||
-- Registering Craft Items --
|
-- Registering Craft Items --
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:low_covalence", {
|
minetest.register_craftitem(modname.."low_covalence", {
|
||||||
description = "Low Covalence Dust",
|
description = "Low Covalence Dust",
|
||||||
inventory_image = "equivalent_exchange_low_covalence.png",
|
inventory_image = "equivalent_exchange_low_covalence.png",
|
||||||
emc = 1,
|
emc = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:medium_covalence", {
|
minetest.register_craftitem(modname.."medium_covalence", {
|
||||||
description = "Medium Covalence Dust",
|
description = "Medium Covalence Dust",
|
||||||
inventory_image = "equivalent_exchange_medium_covalence.png",
|
inventory_image = "equivalent_exchange_medium_covalence.png",
|
||||||
emc = 8,
|
emc = 8,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:high_covalence", {
|
minetest.register_craftitem(modname.."high_covalence", {
|
||||||
description = "High Covalence Dust",
|
description = "High Covalence Dust",
|
||||||
inventory_image = "equivalent_exchange_high_covalence.png",
|
inventory_image = "equivalent_exchange_high_covalence.png",
|
||||||
emc = 208,
|
emc = 208,
|
||||||
@ -22,7 +24,7 @@ minetest.register_craftitem("equivalent_exchange:high_covalence", {
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "equivalent_exchange:low_covalence 40",
|
output = modname.."low_covalence 40",
|
||||||
recipe = {"default:cobble", "default:cobble", "default:cobble",
|
recipe = {"default:cobble", "default:cobble", "default:cobble",
|
||||||
"default:cobble", "default:cobble", "default:cobble",
|
"default:cobble", "default:cobble", "default:cobble",
|
||||||
"default:cobble", "default:cobble", "default:coal_lump"}
|
"default:cobble", "default:cobble", "default:coal_lump"}
|
||||||
@ -30,13 +32,13 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "equivalent_exchange:medium_covalence 40",
|
output = modname.."medium_covalence 40",
|
||||||
recipe = {"default:steel_ingot", "default:bronze_ingot"}
|
recipe = {"default:steel_ingot", "default:bronze_ingot"}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "equivalent_exchange:high_covalence 40",
|
output = modname.."high_covalence 40",
|
||||||
recipe = {"default:diamond", "default:mese_crystal"}
|
recipe = {"default:diamond", "default:mese_crystal"}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -51,7 +53,7 @@ for i = 1,6 do
|
|||||||
minetest["register_craft"]({
|
minetest["register_craft"]({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = type[j]..tools[j]..materials[i],
|
output = type[j]..tools[j]..materials[i],
|
||||||
recipe = {"equivalent_exchange:"..covalence[i], "equivalent_exchange:"..covalence[i], "equivalent_exchange:"..covalence[i], type[j]..tools[j]..materials[i]}
|
recipe = {modname..covalence[i], modname..covalence[i], modname..covalence[i], type[j]..tools[j]..materials[i]}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -59,5 +61,5 @@ end
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "screwdriver:screwdriver",
|
output = "screwdriver:screwdriver",
|
||||||
recipe = {"equivalent_exchange:medium_covalence", "equivalent_exchange:medium_covalence", "equivalent_exchange:medium_covalence", "screwdriver:screwdriver"}
|
recipe = {modname.."medium_covalence", modname.."medium_covalence", modname.."medium_covalence", "screwdriver:screwdriver"}
|
||||||
})
|
})
|
@ -1,6 +1,8 @@
|
|||||||
|
local modname = "equivalent_exchange:"
|
||||||
|
|
||||||
-- Registering Craft Items --
|
-- Registering Craft Items --
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:philosophers_stone", {
|
minetest.register_craftitem(modname.."philosophers_stone", {
|
||||||
description = "Philosopher's Stone",
|
description = "Philosopher's Stone",
|
||||||
inventory_image = "equivalent_exchange_philosophers_stone.png",
|
inventory_image = "equivalent_exchange_philosophers_stone.png",
|
||||||
emc = 8892,
|
emc = 8892,
|
||||||
@ -9,7 +11,7 @@ minetest.register_craftitem("equivalent_exchange:philosophers_stone", {
|
|||||||
-- Registering Crafts --
|
-- Registering Crafts --
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange:philosophers_stone",
|
output = modname.."philosophers_stone",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:mese", "default:desert_stone", "default:mese"},
|
{"default:mese", "default:desert_stone", "default:mese"},
|
||||||
{"default:desert_stone", "default:diamond", "default:mese"},
|
{"default:desert_stone", "default:diamond", "default:mese"},
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
local modname = "equivalent_exchange_alchemy_bags:"
|
||||||
local colors = {'grey','dark_grey','black','blue','cyan','green','dark_green','yellow','orange','brown','red','pink','magenta','violet'}
|
local colors = {'grey','dark_grey','black','blue','cyan','green','dark_green','yellow','orange','brown','red','pink','magenta','violet'}
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange_alchemy_bags:white", {
|
minetest.register_craftitem("equivalent_exchange_alchemy_bags:white", {
|
||||||
@ -19,7 +20,7 @@ for i = 1,14 do
|
|||||||
|
|
||||||
-- Registering Craft Items --
|
-- Registering Craft Items --
|
||||||
|
|
||||||
minetest["register_craftitem"](":".."equivalent_exchange_alchemy_bags:"..colors[i], {
|
minetest["register_craftitem"](":"..modname..colors[i], {
|
||||||
description = colors[i]:gsub("^%l", string.upper).." Alchemy Bag",
|
description = colors[i]:gsub("^%l", string.upper).." Alchemy Bag",
|
||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
inventory_image = "equivalent_exchange_alchemy_bag_"..colors[i]..".png",
|
inventory_image = "equivalent_exchange_alchemy_bag_"..colors[i]..".png",
|
||||||
@ -29,7 +30,7 @@ for i = 1,14 do
|
|||||||
-- Registering Crafts --
|
-- Registering Crafts --
|
||||||
|
|
||||||
minetest["register_craft"]({
|
minetest["register_craft"]({
|
||||||
output = "equivalent_exchange_alchemy_bags:"..colors[i],
|
output = modname..colors[i],
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"},
|
||||||
{"wool:"..colors[i], "equivalent_exchange:alchemical_chest", "wool:"..colors[i]},
|
{"wool:"..colors[i], "equivalent_exchange:alchemical_chest", "wool:"..colors[i]},
|
||||||
@ -39,7 +40,7 @@ for i = 1,14 do
|
|||||||
|
|
||||||
minetest["register_craft"]({
|
minetest["register_craft"]({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "equivalent_exchange_alchemy_bags:"..colors[i],
|
output = modname..colors[i],
|
||||||
recipe = {"equivalent_exchange_alchemy_bags:white", "dye:"..colors[i]}
|
recipe = {"equivalent_exchange_alchemy_bags:white", "dye:"..colors[i]}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
local modname = "equivalent_exchange_energy_collectors:"
|
||||||
|
|
||||||
collector = {
|
collector = {
|
||||||
emc_gather = function(orig_emc, mark,multiplier)
|
emc_gather = function(orig_emc, mark,multiplier)
|
||||||
return orig_emc + (10^(mark - 1)) * multiplier
|
return orig_emc + (10^(mark - 1)) * multiplier
|
||||||
@ -45,7 +47,7 @@ collector = {
|
|||||||
-- Registering ABMs --
|
-- Registering ABMs --
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"equivalent_exchange_energy_collectors:mk1"},
|
nodenames = {modname.."mk1"},
|
||||||
interval = 1.0,
|
interval = 1.0,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
@ -63,7 +65,7 @@ minetest.register_abm({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"equivalent_exchange_energy_collectors:mk2"},
|
nodenames = {modname.."mk2"},
|
||||||
interval = 1.0,
|
interval = 1.0,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
@ -81,7 +83,7 @@ minetest.register_abm({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"equivalent_exchange_energy_collectors:mk3"},
|
nodenames = {modname.."mk3"},
|
||||||
interval = 1.0,
|
interval = 1.0,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
@ -118,7 +120,7 @@ minetest.register_abm({
|
|||||||
|
|
||||||
-- Registering Nodes --
|
-- Registering Nodes --
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:mk1", {
|
minetest.register_node(modname.."mk1", {
|
||||||
description = "Energy Collector Mark 1",
|
description = "Energy Collector Mark 1",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_energy_collector_mk1_top.png",
|
"equivalent_exchange_energy_collector_mk1_top.png",
|
||||||
@ -152,7 +154,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:mk1", {
|
|||||||
emc = 529605
|
emc = 529605
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:mk2", {
|
minetest.register_node(modname.."mk2", {
|
||||||
description = "Energy Collector Mark 2",
|
description = "Energy Collector Mark 2",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_energy_collector_mk2_top.png",
|
"equivalent_exchange_energy_collector_mk2_top.png",
|
||||||
@ -186,7 +188,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:mk2", {
|
|||||||
emc = 529605
|
emc = 529605
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:mk3", {
|
minetest.register_node(modname.."mk3", {
|
||||||
description = "Energy Collector Mark 3",
|
description = "Energy Collector Mark 3",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_energy_collector_mk3_top.png",
|
"equivalent_exchange_energy_collector_mk3_top.png",
|
||||||
@ -220,7 +222,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:mk3", {
|
|||||||
emc = 529605
|
emc = 529605
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:antimatter_collector", {
|
minetest.register_node(modname.."antimatter_collector", {
|
||||||
description = "Antimatter Collector",
|
description = "Antimatter Collector",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_antimatter_collector_top.png",
|
"equivalent_exchange_antimatter_collector_top.png",
|
||||||
@ -254,7 +256,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:antimatter_collect
|
|||||||
emc = 269554885
|
emc = 269554885
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:interdiction_stone", {
|
minetest.register_node(modname.."interdiction_stone", {
|
||||||
description = "Interdiction Stone",
|
description = "Interdiction Stone",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_interdiction_stone.png",
|
"equivalent_exchange_interdiction_stone.png",
|
||||||
@ -278,7 +280,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:interdiction_stone
|
|||||||
-- Registering Crafts --
|
-- Registering Crafts --
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:mk1",
|
output = modname.."mk1",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:mese", "default:glass", "default:mese"},
|
{"default:mese", "default:glass", "default:mese"},
|
||||||
{"default:mese", "default:diamondblock", "default:mese"},
|
{"default:mese", "default:diamondblock", "default:mese"},
|
||||||
@ -287,28 +289,28 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:mk2",
|
output = modname.."mk2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:mese", "equivalent_exchange_energy_collectors:red_matter", "default:mese"},
|
{"default:mese", modname.."red_matter", "default:mese"},
|
||||||
{"default:mese", "equivalent_exchange_energy_collectors:mk1", "default:mese"},
|
{"default:mese", modname.."mk1", "default:mese"},
|
||||||
{"default:mese", "default:mese", "default:mese"}
|
{"default:mese", "default:mese", "default:mese"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:mk3",
|
output = modname.."mk3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:mese", "equivalent_exchange_energy_collectors:antimatter", "default:mese"},
|
{"default:mese", modname.."antimatter", "default:mese"},
|
||||||
{"default:mese", "equivalent_exchange_energy_collectors:mk2", "default:mese"},
|
{"default:mese", modname.."mk2", "default:mese"},
|
||||||
{"default:mese", "default:mese", "default:mese"}
|
{"default:mese", "default:mese", "default:mese"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:interdiction_stone",
|
output = modname.."interdiction_stone",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:torch", "equivalent_exchange_energy_collectors:aeternalis_fuel", "default:torch"},
|
{"default:torch", modname.."aeternalis_fuel", "default:torch"},
|
||||||
{"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange:philosophers_stone", "equivalent_exchange_energy_collectors:aeternalis_fuel"},
|
{modname.."aeternalis_fuel", "equivalent_exchange:philosophers_stone", modname.."aeternalis_fuel"},
|
||||||
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"}
|
{"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"}
|
||||||
},
|
},
|
||||||
replacements = {
|
replacements = {
|
||||||
@ -317,10 +319,10 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:antimatter_collector",
|
output = modname.."antimatter_collector",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter"},
|
{modname.."condensed_antimatter", modname.."condensed_antimatter", modname.."condensed_antimatter"},
|
||||||
{"equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors_energy_collectors:mk3", "equivalent_exchange_energy_collectors:condensed_antimatter"},
|
{modname.."condensed_antimatter", "equivalent_exchange_energy_collectors_energy_collectors:mk3", modname.."condensed_antimatter"},
|
||||||
{"equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter"}
|
{modname.."condensed_antimatter", modname.."condensed_antimatter", modname.."condensed_antimatter"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
local modname = "equivalent_exchange_energy_collectors:"
|
||||||
|
|
||||||
-- Registering Nodes --
|
-- Registering Nodes --
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:red_matter_block", {
|
minetest.register_node(modname.."red_matter_block", {
|
||||||
description = "Red Matter Block",
|
description = "Red Matter Block",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_red_matter_block.png",
|
"equivalent_exchange_red_matter_block.png",
|
||||||
@ -17,7 +19,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:red_matter_block",
|
|||||||
emc = 1253376
|
emc = 1253376
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:antimatter_block", {
|
minetest.register_node(modname.."antimatter_block", {
|
||||||
description = "Antimatter Block",
|
description = "Antimatter Block",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_antimatter_block.png",
|
"equivalent_exchange_antimatter_block.png",
|
||||||
@ -34,7 +36,7 @@ minetest.register_node("equivalent_exchange_energy_collectors:antimatter_block",
|
|||||||
emc = 4202496
|
emc = 4202496
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("equivalent_exchange_energy_collectors:condensed_antimatter", {
|
minetest.register_node(modname.."condensed_antimatter", {
|
||||||
description = "Condensed Antimatter",
|
description = "Condensed Antimatter",
|
||||||
tiles = {
|
tiles = {
|
||||||
"equivalent_exchange_condensed_antimatter.png",
|
"equivalent_exchange_condensed_antimatter.png",
|
||||||
@ -53,31 +55,31 @@ minetest.register_node("equivalent_exchange_energy_collectors:condensed_antimatt
|
|||||||
|
|
||||||
-- Registering Craft Items --
|
-- Registering Craft Items --
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange_energy_collectors:alchemical_crystal", {
|
minetest.register_craftitem(modname.."alchemical_crystal", {
|
||||||
description = "Alchemical Crystal",
|
description = "Alchemical Crystal",
|
||||||
inventory_image = "equivalent_exchange_alchemical_crystal.png",
|
inventory_image = "equivalent_exchange_alchemical_crystal.png",
|
||||||
emc = 512,
|
emc = 512,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange_energy_collectors:mobius_fuel", {
|
minetest.register_craftitem(modname.."mobius_fuel", {
|
||||||
description = "Mobius Fuel",
|
description = "Mobius Fuel",
|
||||||
inventory_image = "equivalent_exchange_mobius_fuel.png",
|
inventory_image = "equivalent_exchange_mobius_fuel.png",
|
||||||
emc = 2048,
|
emc = 2048,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange_energy_collectors:aeternalis_fuel", {
|
minetest.register_craftitem(modname.."aeternalis_fuel", {
|
||||||
description = "Aeternalis Fuel",
|
description = "Aeternalis Fuel",
|
||||||
inventory_image = "equivalent_exchange_aeternalis_fuel.png",
|
inventory_image = "equivalent_exchange_aeternalis_fuel.png",
|
||||||
emc = 8192,
|
emc = 8192,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange_energy_collectors:red_matter", {
|
minetest.register_craftitem(modname.."red_matter", {
|
||||||
description = "Red Matter",
|
description = "Red Matter",
|
||||||
inventory_image = "equivalent_exchange_red_matter.png",
|
inventory_image = "equivalent_exchange_red_matter.png",
|
||||||
emc = 139264
|
emc = 139264
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange_energy_collectors:antimatter", {
|
minetest.register_craftitem(modname.."antimatter", {
|
||||||
description = "Antimatter",
|
description = "Antimatter",
|
||||||
inventory_image = "equivalent_exchange_antimatter.png",
|
inventory_image = "equivalent_exchange_antimatter.png",
|
||||||
emc = 466944
|
emc = 466944
|
||||||
@ -85,7 +87,7 @@ minetest.register_craftitem("equivalent_exchange_energy_collectors:antimatter",
|
|||||||
|
|
||||||
-- Registering Crafts --
|
-- Registering Crafts --
|
||||||
|
|
||||||
local fuels = {"default:diamond","equivalent_exchange_energy_collectors:alchemical_crystal","equivalent_exchange_energy_collectors:mobius_fuel","equivalent_exchange_energy_collectors:aeternalis_fuel"}
|
local fuels = {"default:diamond",modname.."alchemical_crystal",modname.."mobius_fuel",modname.."aeternalis_fuel"}
|
||||||
|
|
||||||
for i = 2,4 do
|
for i = 2,4 do
|
||||||
minetest["register_craft"]({
|
minetest["register_craft"]({
|
||||||
@ -107,46 +109,46 @@ for i = 2,4 do
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:red_matter",
|
output = modname.."red_matter",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"},
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"},
|
||||||
{"equivalent_exchange_energy_collectors:aeternalis_fuel", "default:mese", "equivalent_exchange_energy_collectors:aeternalis_fuel"},
|
{modname.."aeternalis_fuel", "default:mese", modname.."aeternalis_fuel"},
|
||||||
{"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"}
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:antimatter",
|
output = modname.."antimatter",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"},
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"},
|
||||||
{"equivalent_exchange_energy_collectors:red_matter","equivalent_exchange_energy_collectors:red_matter","equivalent_exchange_energy_collectors:red_matter"},
|
{modname.."red_matter",modname.."red_matter",modname.."red_matter"},
|
||||||
{"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"}
|
{modname.."aeternalis_fuel", modname.."aeternalis_fuel", modname.."aeternalis_fuel"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:red_matter_block",
|
output = modname.."red_matter_block",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter"},
|
{modname.."red_matter", modname.."red_matter", modname.."red_matter"},
|
||||||
{"equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter"},
|
{modname.."red_matter", modname.."red_matter", modname.."red_matter"},
|
||||||
{"equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter"}
|
{modname.."red_matter", modname.."red_matter", modname.."red_matter"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:antimatter_block",
|
output = modname.."antimatter_block",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter"},
|
{modname.."antimatter", modname.."antimatter", modname.."antimatter"},
|
||||||
{"equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter"},
|
{modname.."antimatter", modname.."antimatter", modname.."antimatter"},
|
||||||
{"equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter"}
|
{modname.."antimatter", modname.."antimatter", modname.."antimatter"}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "equivalent_exchange_energy_collectors:condensed_antimatter",
|
output = modname.."condensed_antimatter",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block"},
|
{modname.."antimatter_block", modname.."antimatter_block", modname.."antimatter_block"},
|
||||||
{"equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:antimatter_block"},
|
{modname.."antimatter_block", modname.."aeternalis_fuel", modname.."antimatter_block"},
|
||||||
{"equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block"}
|
{modname.."antimatter_block", modname.."antimatter_block", modname.."antimatter_block"}
|
||||||
}
|
}
|
||||||
})
|
})
|
20
equivalent_exchange_extras/alchemical_items.lua
Normal file
20
equivalent_exchange_extras/alchemical_items.lua
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
local modname = "equivalent_exchange_extras:"
|
||||||
|
-- Registering Craft Items --
|
||||||
|
|
||||||
|
minetest.register_craftitem(modname.."talisman_of_repair", {
|
||||||
|
description = "Talisman of Repair",
|
||||||
|
inventory_image = "equivalent_exchange_talisman_of_repair.png",
|
||||||
|
stack_max = 1,
|
||||||
|
emc = 10000,
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Registering Crafts --
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = modname.."talisman_of_repair",
|
||||||
|
recipe = {
|
||||||
|
{"equivalent_exchange:low_covalence", "equivalent_exchange:medium_covalence", "equivalent_exchange:high_covalence"},
|
||||||
|
{"farming:string", "wool:white", "farming:string"},
|
||||||
|
{"equivalent_exchange:high_covalence", "equivalent_exchange:medium_covalence", "equivalent_exchange:low_covalence"}
|
||||||
|
}
|
||||||
|
})
|
@ -1 +1,3 @@
|
|||||||
|
dofile(minetest.get_modpath("equivalent_exchange_extras").."/alchemical_items.lua")
|
||||||
|
|
||||||
print ("[equivalent_exchange_extras] Mod loaded!")
|
print ("[equivalent_exchange_extras] Mod loaded!")
|
Loading…
Reference in New Issue
Block a user