diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 27a444e..0000000 --- a/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -default -buildtest? -pipeworks? \ No newline at end of file diff --git a/alchemical_chest.lua b/equivalent_exchange/alchemical_chest.lua similarity index 100% rename from alchemical_chest.lua rename to equivalent_exchange/alchemical_chest.lua diff --git a/condenser.lua b/equivalent_exchange/condenser.lua similarity index 100% rename from condenser.lua rename to equivalent_exchange/condenser.lua diff --git a/equivalent_exchange/depends.txt b/equivalent_exchange/depends.txt new file mode 100644 index 0000000..331d858 --- /dev/null +++ b/equivalent_exchange/depends.txt @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/emcs.lua b/equivalent_exchange/emcs.lua similarity index 100% rename from emcs.lua rename to equivalent_exchange/emcs.lua diff --git a/init.lua b/equivalent_exchange/init.lua similarity index 73% rename from init.lua rename to equivalent_exchange/init.lua index 1d533f2..1a8a2a2 100644 --- a/init.lua +++ b/equivalent_exchange/init.lua @@ -1,8 +1,6 @@ dofile(minetest.get_modpath("equivalent_exchange").."/emcs.lua") dofile(minetest.get_modpath("equivalent_exchange").."/alchemical_chest.lua") -dofile(minetest.get_modpath("equivalent_exchange").."/alchemy_bag.lua") dofile(minetest.get_modpath("equivalent_exchange").."/condenser.lua") -dofile(minetest.get_modpath("equivalent_exchange").."/energy_collector.lua") dofile(minetest.get_modpath("equivalent_exchange").."/philosophers_stone.lua") dofile(minetest.get_modpath("equivalent_exchange").."/normal_items.lua") diff --git a/equivalent_exchange/normal_items.lua b/equivalent_exchange/normal_items.lua new file mode 100644 index 0000000..7bfbacf --- /dev/null +++ b/equivalent_exchange/normal_items.lua @@ -0,0 +1,63 @@ +-- Registering Craft Items -- + +minetest.register_craftitem("equivalent_exchange:low_covalence", { + description = "Low Covalence Dust", + inventory_image = "equivalent_exchange_low_covalence.png", + emc = 1, +}) + +minetest.register_craftitem("equivalent_exchange:medium_covalence", { + description = "Medium Covalence Dust", + inventory_image = "equivalent_exchange_medium_covalence.png", + emc = 8, +}) + +minetest.register_craftitem("equivalent_exchange:high_covalence", { + description = "High Covalence Dust", + inventory_image = "equivalent_exchange_high_covalence.png", + emc = 208, +}) + +-- Registering Crafts -- + +minetest.register_craft({ + type = "shapeless", + output = "equivalent_exchange:low_covalence 40", + recipe = {"default:cobble", "default:cobble", "default:cobble", + "default:cobble", "default:cobble", "default:cobble", + "default:cobble", "default:cobble", "default:coal_lump"} +}) + +minetest.register_craft({ + type = "shapeless", + output = "equivalent_exchange:medium_covalence 40", + recipe = {"default:steel_ingot", "default:bronze_ingot"} +}) + +minetest.register_craft({ + type = "shapeless", + output = "equivalent_exchange:high_covalence 40", + recipe = {"default:diamond", "default:mese_crystal"} +}) + +local materials = {"wood","stone","steel","bronze","mese","diamond"} +local covalence = {"low_covalence","low_covalence","medium_covalence","medium_covalence","high_covalence","high_covalence"} +local tools = {"pick_","shovel_","axe_","sword_","hoe_"} +local type = {"default:","default:","default:","default:","farming:"} + + +for i = 1,6 do + for j = 1,5 do + minetest["register_craft"]({ + type = "shapeless", + 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]} + }) + end +end + +minetest.register_craft({ + type = "shapeless", + output = "screwdriver:screwdriver", + recipe = {"equivalent_exchange:medium_covalence", "equivalent_exchange:medium_covalence", "equivalent_exchange:medium_covalence", "screwdriver:screwdriver"} +}) \ No newline at end of file diff --git a/philosophers_stone.lua b/equivalent_exchange/philosophers_stone.lua similarity index 100% rename from philosophers_stone.lua rename to equivalent_exchange/philosophers_stone.lua diff --git a/textures/equivalent_exchange_alchemical_chest_bottom.png b/equivalent_exchange/textures/equivalent_exchange_alchemical_chest_bottom.png similarity index 100% rename from textures/equivalent_exchange_alchemical_chest_bottom.png rename to equivalent_exchange/textures/equivalent_exchange_alchemical_chest_bottom.png diff --git a/textures/equivalent_exchange_alchemical_chest_front.png b/equivalent_exchange/textures/equivalent_exchange_alchemical_chest_front.png similarity index 100% rename from textures/equivalent_exchange_alchemical_chest_front.png rename to equivalent_exchange/textures/equivalent_exchange_alchemical_chest_front.png diff --git a/textures/equivalent_exchange_alchemical_chest_side.png b/equivalent_exchange/textures/equivalent_exchange_alchemical_chest_side.png similarity index 100% rename from textures/equivalent_exchange_alchemical_chest_side.png rename to equivalent_exchange/textures/equivalent_exchange_alchemical_chest_side.png diff --git a/textures/equivalent_exchange_alchemical_chest_top.png b/equivalent_exchange/textures/equivalent_exchange_alchemical_chest_top.png similarity index 100% rename from textures/equivalent_exchange_alchemical_chest_top.png rename to equivalent_exchange/textures/equivalent_exchange_alchemical_chest_top.png diff --git a/textures/equivalent_exchange_condenser_bottom.png b/equivalent_exchange/textures/equivalent_exchange_condenser_bottom.png similarity index 100% rename from textures/equivalent_exchange_condenser_bottom.png rename to equivalent_exchange/textures/equivalent_exchange_condenser_bottom.png diff --git a/textures/equivalent_exchange_condenser_side.png b/equivalent_exchange/textures/equivalent_exchange_condenser_side.png similarity index 100% rename from textures/equivalent_exchange_condenser_side.png rename to equivalent_exchange/textures/equivalent_exchange_condenser_side.png diff --git a/textures/equivalent_exchange_condenser_top.png b/equivalent_exchange/textures/equivalent_exchange_condenser_top.png similarity index 100% rename from textures/equivalent_exchange_condenser_top.png rename to equivalent_exchange/textures/equivalent_exchange_condenser_top.png diff --git a/textures/equivalent_exchange_high_covalence.png b/equivalent_exchange/textures/equivalent_exchange_high_covalence.png similarity index 100% rename from textures/equivalent_exchange_high_covalence.png rename to equivalent_exchange/textures/equivalent_exchange_high_covalence.png diff --git a/textures/equivalent_exchange_low_covalence.png b/equivalent_exchange/textures/equivalent_exchange_low_covalence.png similarity index 100% rename from textures/equivalent_exchange_low_covalence.png rename to equivalent_exchange/textures/equivalent_exchange_low_covalence.png diff --git a/textures/equivalent_exchange_medium_covalence.png b/equivalent_exchange/textures/equivalent_exchange_medium_covalence.png similarity index 100% rename from textures/equivalent_exchange_medium_covalence.png rename to equivalent_exchange/textures/equivalent_exchange_medium_covalence.png diff --git a/textures/equivalent_exchange_philosophers_stone.png b/equivalent_exchange/textures/equivalent_exchange_philosophers_stone.png similarity index 100% rename from textures/equivalent_exchange_philosophers_stone.png rename to equivalent_exchange/textures/equivalent_exchange_philosophers_stone.png diff --git a/alchemy_bag.lua b/equivalent_exchange_alchemy_bags/alchemy_bag.lua similarity index 74% rename from alchemy_bag.lua rename to equivalent_exchange_alchemy_bags/alchemy_bag.lua index 3b655b7..f000673 100644 --- a/alchemy_bag.lua +++ b/equivalent_exchange_alchemy_bags/alchemy_bag.lua @@ -1,13 +1,13 @@ local colors = {'grey','dark_grey','black','blue','cyan','green','dark_green','yellow','orange','brown','red','pink','magenta','violet'} -minetest.register_craftitem("equivalent_exchange:alchemy_bag_white", { +minetest.register_craftitem("equivalent_exchange_alchemy_bags:white", { description = "White Alchemy Bag", inventory_image = "equivalent_exchange_alchemy_bag_white.png", emc = 9631, }) minetest.register_craft({ - output = "equivalent_exchange:equivalent_exchange:alchemy_bag", + output = "equivalent_exchange:alchemy_bag_white", recipe = { {"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"}, {"wool:white", "equivalent_exchange:alchemical_chest", "wool:white"}, @@ -19,7 +19,7 @@ for i = 1,14 do -- Registering Craft Items -- - minetest["register_craftitem"](":".."equivalent_exchange:alchemy_bag_"..colors[i], { + minetest["register_craftitem"](":".."equivalent_exchange_alchemy_bags:"..colors[i], { description = colors[i]:gsub("^%l", string.upper).." Alchemy Bag", groups = {not_in_creative_inventory = 1}, inventory_image = "equivalent_exchange_alchemy_bag_"..colors[i]..".png", @@ -29,7 +29,7 @@ for i = 1,14 do -- Registering Crafts -- minetest["register_craft"]({ - output = "equivalent_exchange:alchemy_bag_"..colors[i], + output = "equivalent_exchange_alchemy_bags:"..colors[i], recipe = { {"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"}, {"wool:"..colors[i], "equivalent_exchange:alchemical_chest", "wool:"..colors[i]}, @@ -39,8 +39,8 @@ for i = 1,14 do minetest["register_craft"]({ type = "shapeless", - output = "equivalent_exchange:alchemy_bag_"..colors[i], - recipe = {"equivalent_exchange:alchemy_bag_white", "dye:"..colors[i]} + output = "equivalent_exchange_alchemy_bags:"..colors[i], + recipe = {"equivalent_exchange_alchemy_bags:white", "dye:"..colors[i]} }) end \ No newline at end of file diff --git a/equivalent_exchange_alchemy_bags/depends.txt b/equivalent_exchange_alchemy_bags/depends.txt new file mode 100644 index 0000000..e472448 --- /dev/null +++ b/equivalent_exchange_alchemy_bags/depends.txt @@ -0,0 +1,2 @@ +default +equivalent_exchange \ No newline at end of file diff --git a/equivalent_exchange_alchemy_bags/init.lua b/equivalent_exchange_alchemy_bags/init.lua new file mode 100644 index 0000000..fad79c8 --- /dev/null +++ b/equivalent_exchange_alchemy_bags/init.lua @@ -0,0 +1,3 @@ +dofile(minetest.get_modpath("equivalent_exchange_alchemy_bags").."/alchemy_bag.lua") + +print("[equivalent_exchange_alchemy_bags] Mod loaded!") \ No newline at end of file diff --git a/textures/equivalent_exchange_alchemy_bag_black.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_black.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_black.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_black.png diff --git a/textures/equivalent_exchange_alchemy_bag_blue.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_blue.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_blue.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_blue.png diff --git a/textures/equivalent_exchange_alchemy_bag_brown.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_brown.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_brown.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_brown.png diff --git a/textures/equivalent_exchange_alchemy_bag_cyan.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_cyan.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_cyan.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_cyan.png diff --git a/textures/equivalent_exchange_alchemy_bag_dark_green.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_dark_green.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_dark_green.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_dark_green.png diff --git a/textures/equivalent_exchange_alchemy_bag_dark_grey.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_dark_grey.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_dark_grey.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_dark_grey.png diff --git a/textures/equivalent_exchange_alchemy_bag_green.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_green.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_green.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_green.png diff --git a/textures/equivalent_exchange_alchemy_bag_grey.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_grey.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_grey.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_grey.png diff --git a/textures/equivalent_exchange_alchemy_bag_magenta.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_magenta.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_magenta.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_magenta.png diff --git a/textures/equivalent_exchange_alchemy_bag_orange.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_orange.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_orange.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_orange.png diff --git a/textures/equivalent_exchange_alchemy_bag_pink.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_pink.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_pink.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_pink.png diff --git a/textures/equivalent_exchange_alchemy_bag_red.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_red.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_red.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_red.png diff --git a/textures/equivalent_exchange_alchemy_bag_violet.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_violet.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_violet.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_violet.png diff --git a/textures/equivalent_exchange_alchemy_bag_white.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_white.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_white.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_white.png diff --git a/textures/equivalent_exchange_alchemy_bag_yellow.png b/equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_yellow.png similarity index 100% rename from textures/equivalent_exchange_alchemy_bag_yellow.png rename to equivalent_exchange_alchemy_bags/textures/equivalent_exchange_alchemy_bag_yellow.png diff --git a/equivalent_exchange_energy_collectors/depends.txt b/equivalent_exchange_energy_collectors/depends.txt new file mode 100644 index 0000000..e472448 --- /dev/null +++ b/equivalent_exchange_energy_collectors/depends.txt @@ -0,0 +1,2 @@ +default +equivalent_exchange \ No newline at end of file diff --git a/energy_collector.lua b/equivalent_exchange_energy_collectors/energy_collector.lua similarity index 82% rename from energy_collector.lua rename to equivalent_exchange_energy_collectors/energy_collector.lua index ea03d55..a12c8a1 100644 --- a/energy_collector.lua +++ b/equivalent_exchange_energy_collectors/energy_collector.lua @@ -45,7 +45,7 @@ collector = { -- Registering ABMs -- minetest.register_abm({ - nodenames = {"equivalent_exchange:energy_collector_mk1"}, + nodenames = {"equivalent_exchange_energy_collectors:mk1"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) @@ -63,7 +63,7 @@ minetest.register_abm({ }) minetest.register_abm({ - nodenames = {"equivalent_exchange:energy_collector_mk2"}, + nodenames = {"equivalent_exchange_energy_collectors:mk2"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) @@ -81,7 +81,7 @@ minetest.register_abm({ }) minetest.register_abm({ - nodenames = {"equivalent_exchange:energy_collector_mk3"}, + nodenames = {"equivalent_exchange_energy_collectors:mk3"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) @@ -99,7 +99,7 @@ minetest.register_abm({ }) minetest.register_abm({ - nodenames = {"equivalent_exchange:antimatter_collector"}, + nodenames = {"equivalent_exchange+energy_collectors:antimatter_collector"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) @@ -118,7 +118,7 @@ minetest.register_abm({ -- Registering Nodes -- -minetest.register_node("equivalent_exchange:energy_collector_mk1", { +minetest.register_node("equivalent_exchange_energy_collectors:mk1", { description = "Energy Collector Mark 1", tiles = { "equivalent_exchange_energy_collector_mk1_top.png", @@ -152,7 +152,7 @@ minetest.register_node("equivalent_exchange:energy_collector_mk1", { emc = 529605 }) -minetest.register_node("equivalent_exchange:energy_collector_mk2", { +minetest.register_node("equivalent_exchange_energy_collectors:mk2", { description = "Energy Collector Mark 2", tiles = { "equivalent_exchange_energy_collector_mk2_top.png", @@ -186,7 +186,7 @@ minetest.register_node("equivalent_exchange:energy_collector_mk2", { emc = 529605 }) -minetest.register_node("equivalent_exchange:energy_collector_mk3", { +minetest.register_node("equivalent_exchange_energy_collectors:mk3", { description = "Energy Collector Mark 3", tiles = { "equivalent_exchange_energy_collector_mk3_top.png", @@ -220,7 +220,7 @@ minetest.register_node("equivalent_exchange:energy_collector_mk3", { emc = 529605 }) -minetest.register_node("equivalent_exchange:antimatter_collector", { +minetest.register_node("equivalent_exchange_energy_collectors:antimatter_collector", { description = "Antimatter Collector", tiles = { "equivalent_exchange_antimatter_collector_top.png", @@ -254,7 +254,7 @@ minetest.register_node("equivalent_exchange:antimatter_collector", { emc = 269554885 }) -minetest.register_node("equivalent_exchange:interdiction_stone", { +minetest.register_node("equivalent_exchange_energy_collectors:interdiction_stone", { description = "Interdiction Stone", tiles = { "equivalent_exchange_interdiction_stone.png", @@ -278,7 +278,7 @@ minetest.register_node("equivalent_exchange:interdiction_stone", { -- Registering Crafts -- minetest.register_craft({ - output = "equivalent_exchange:energy_collector_mk1", + output = "equivalent_exchange_energy_collectors:mk1", recipe = { {"default:mese", "default:glass", "default:mese"}, {"default:mese", "default:diamondblock", "default:mese"}, @@ -287,28 +287,28 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "equivalent_exchange:energy_collector_mk2", + output = "equivalent_exchange_energy_collectors:mk2", recipe = { - {"default:mese", "equivalent_exchange:red_matter", "default:mese"}, - {"default:mese", "equivalent_exchange:energy_collector_mk1", "default:mese"}, + {"default:mese", "equivalent_exchange_energy_collectors:red_matter", "default:mese"}, + {"default:mese", "equivalent_exchange_energy_collectors:mk1", "default:mese"}, {"default:mese", "default:mese", "default:mese"} } }) minetest.register_craft({ - output = "equivalent_exchange:energy_collector_mk3", + output = "equivalent_exchange_energy_collectors:mk3", recipe = { - {"default:mese", "equivalent_exchange:antimatter", "default:mese"}, - {"default:mese", "equivalent_exchange:energy_collector_mk2", "default:mese"}, + {"default:mese", "equivalent_exchange_energy_collectors:antimatter", "default:mese"}, + {"default:mese", "equivalent_exchange_energy_collectors:mk2", "default:mese"}, {"default:mese", "default:mese", "default:mese"} } }) minetest.register_craft({ - output = "equivalent_exchange:interdiction_stone", + output = "equivalent_exchange_energy_collectors:interdiction_stone", recipe = { - {"default:torch", "equivalent_exchange:aeternalis_fuel", "default:torch"}, - {"equivalent_exchange:aeternalis_fuel", "equivalent_exchange:philosophers_stone", "equivalent_exchange:aeternalis_fuel"}, + {"default:torch", "equivalent_exchange_energy_collectors:aeternalis_fuel", "default:torch"}, + {"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange:philosophers_stone", "equivalent_exchange_energy_collectors:aeternalis_fuel"}, {"equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence", "equivalent_exchange:high_covalence"} }, replacements = { @@ -317,10 +317,10 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "equivalent_exchange:antimatter_collector", + output = "equivalent_exchange_energy_collectors:antimatter_collector", recipe = { - {"equivalent_exchange:condensed_antimatter", "equivalent_exchange:condensed_antimatter", "equivalent_exchange:condensed_antimatter"}, - {"equivalent_exchange:condensed_antimatter", "equivalent_exchange:energy_collector_mk3", "equivalent_exchange:condensed_antimatter"}, - {"equivalent_exchange:condensed_antimatter", "equivalent_exchange:condensed_antimatter", "equivalent_exchange:condensed_antimatter"} + {"equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter"}, + {"equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors_energy_collectors:mk3", "equivalent_exchange_energy_collectors:condensed_antimatter"}, + {"equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter", "equivalent_exchange_energy_collectors:condensed_antimatter"} } }) diff --git a/equivalent_exchange_energy_collectors/init.lua b/equivalent_exchange_energy_collectors/init.lua new file mode 100644 index 0000000..8b0ac87 --- /dev/null +++ b/equivalent_exchange_energy_collectors/init.lua @@ -0,0 +1,4 @@ +dofile(minetest.get_modpath("equivalent_exchange_energy_collectors").."/energy_collector.lua") +dofile(minetest.get_modpath("equivalent_exchange_energy_collectors").."/normal_items.lua") + +print("[equivalent_exchange_energy_collectors] Mod loaded!") \ No newline at end of file diff --git a/equivalent_exchange_energy_collectors/normal_items.lua b/equivalent_exchange_energy_collectors/normal_items.lua new file mode 100644 index 0000000..fc76aeb --- /dev/null +++ b/equivalent_exchange_energy_collectors/normal_items.lua @@ -0,0 +1,152 @@ +-- Registering Nodes -- + +minetest.register_node("equivalent_exchange_energy_collectors:red_matter_block", { + description = "Red Matter Block", + tiles = { + "equivalent_exchange_red_matter_block.png", + "equivalent_exchange_red_matter_block.png", + "equivalent_exchange_red_matter_block.png", + "equivalent_exchange_red_matter_block.png", + "equivalent_exchange_red_matter_block.png", + "equivalent_exchange_red_matter_block.png" + }, + paramtype2 = "facedir", + groups = {cracky = 3}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + emc = 1253376 +}) + +minetest.register_node("equivalent_exchange_energy_collectors:antimatter_block", { + description = "Antimatter Block", + tiles = { + "equivalent_exchange_antimatter_block.png", + "equivalent_exchange_antimatter_block.png", + "equivalent_exchange_antimatter_block.png", + "equivalent_exchange_antimatter_block.png", + "equivalent_exchange_antimatter_block.png", + "equivalent_exchange_antimatter_block.png" + }, + paramtype2 = "facedir", + groups = {cracky = 3}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + emc = 4202496 +}) + +minetest.register_node("equivalent_exchange_energy_collectors:condensed_antimatter", { + description = "Condensed Antimatter", + tiles = { + "equivalent_exchange_condensed_antimatter.png", + "equivalent_exchange_condensed_antimatter.png", + "equivalent_exchange_condensed_antimatter.png", + "equivalent_exchange_condensed_antimatter.png", + "equivalent_exchange_condensed_antimatter.png", + "equivalent_exchange_condensed_antimatter.png" + }, + paramtype2 = "facedir", + groups = {cracky = 5}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + emc = 33628160 +}) + +-- Registering Craft Items -- + +minetest.register_craftitem("equivalent_exchange_energy_collectors:alchemical_crystal", { + description = "Alchemical Crystal", + inventory_image = "equivalent_exchange_alchemical_crystal.png", + emc = 512, +}) + +minetest.register_craftitem("equivalent_exchange_energy_collectors:mobius_fuel", { + description = "Mobius Fuel", + inventory_image = "equivalent_exchange_mobius_fuel.png", + emc = 2048, +}) + +minetest.register_craftitem("equivalent_exchange_energy_collectors:aeternalis_fuel", { + description = "Aeternalis Fuel", + inventory_image = "equivalent_exchange_aeternalis_fuel.png", + emc = 8192, +}) + +minetest.register_craftitem("equivalent_exchange_energy_collectors:red_matter", { + description = "Red Matter", + inventory_image = "equivalent_exchange_red_matter.png", + emc = 139264 +}) + +minetest.register_craftitem("equivalent_exchange_energy_collectors:antimatter", { + description = "Antimatter", + inventory_image = "equivalent_exchange_antimatter.png", + emc = 466944 +}) + +-- Registering Crafts -- + +local fuels = {"default:diamond","equivalent_exchange_energy_collectors:alchemical_crystal","equivalent_exchange_energy_collectors:mobius_fuel","equivalent_exchange_energy_collectors:aeternalis_fuel"} + +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({ + output = "equivalent_exchange_energy_collectors:red_matter", + recipe = { + {"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"}, + {"equivalent_exchange_energy_collectors:aeternalis_fuel", "default:mese", "equivalent_exchange_energy_collectors:aeternalis_fuel"}, + {"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"} + } +}) + +minetest.register_craft({ + output = "equivalent_exchange_energy_collectors:antimatter", + recipe = { + {"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"}, + {"equivalent_exchange_energy_collectors:red_matter","equivalent_exchange_energy_collectors:red_matter","equivalent_exchange_energy_collectors:red_matter"}, + {"equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:aeternalis_fuel"} + } +}) + +minetest.register_craft({ + output = "equivalent_exchange_energy_collectors:red_matter_block", + recipe = { + {"equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter"}, + {"equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter"}, + {"equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter", "equivalent_exchange_energy_collectors:red_matter"} + } +}) + +minetest.register_craft({ + output = "equivalent_exchange_energy_collectors:antimatter_block", + recipe = { + {"equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter"}, + {"equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter"}, + {"equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter", "equivalent_exchange_energy_collectors:antimatter"} + } +}) + +minetest.register_craft({ + output = "equivalent_exchange_energy_collectors:condensed_antimatter", + recipe = { + {"equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block"}, + {"equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:aeternalis_fuel", "equivalent_exchange_energy_collectors:antimatter_block"}, + {"equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block", "equivalent_exchange_energy_collectors:antimatter_block"} + } +}) \ No newline at end of file diff --git a/textures/equivalent_exchange_aeternalis_fuel.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_aeternalis_fuel.png similarity index 100% rename from textures/equivalent_exchange_aeternalis_fuel.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_aeternalis_fuel.png diff --git a/textures/equivalent_exchange_alchemical_crystal.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_alchemical_crystal.png similarity index 100% rename from textures/equivalent_exchange_alchemical_crystal.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_alchemical_crystal.png diff --git a/textures/equivalent_exchange_antimatter.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter.png similarity index 100% rename from textures/equivalent_exchange_antimatter.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter.png diff --git a/textures/equivalent_exchange_antimatter_block.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_block.png similarity index 100% rename from textures/equivalent_exchange_antimatter_block.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_block.png diff --git a/textures/equivalent_exchange_antimatter_collector_bottom.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_collector_bottom.png similarity index 100% rename from textures/equivalent_exchange_antimatter_collector_bottom.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_collector_bottom.png diff --git a/textures/equivalent_exchange_antimatter_collector_side.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_collector_side.png similarity index 100% rename from textures/equivalent_exchange_antimatter_collector_side.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_collector_side.png diff --git a/textures/equivalent_exchange_antimatter_collector_top.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_collector_top.png similarity index 100% rename from textures/equivalent_exchange_antimatter_collector_top.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_antimatter_collector_top.png diff --git a/textures/equivalent_exchange_condensed_antimatter.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_condensed_antimatter.png similarity index 100% rename from textures/equivalent_exchange_condensed_antimatter.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_condensed_antimatter.png diff --git a/textures/equivalent_exchange_energy_collector_mk1_bottom.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk1_bottom.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk1_bottom.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk1_bottom.png diff --git a/textures/equivalent_exchange_energy_collector_mk1_side.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk1_side.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk1_side.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk1_side.png diff --git a/textures/equivalent_exchange_energy_collector_mk1_top.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk1_top.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk1_top.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk1_top.png diff --git a/textures/equivalent_exchange_energy_collector_mk2_bottom.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk2_bottom.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk2_bottom.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk2_bottom.png diff --git a/textures/equivalent_exchange_energy_collector_mk2_side.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk2_side.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk2_side.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk2_side.png diff --git a/textures/equivalent_exchange_energy_collector_mk2_top.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk2_top.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk2_top.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk2_top.png diff --git a/textures/equivalent_exchange_energy_collector_mk3_bottom.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk3_bottom.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk3_bottom.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk3_bottom.png diff --git a/textures/equivalent_exchange_energy_collector_mk3_side.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk3_side.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk3_side.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk3_side.png diff --git a/textures/equivalent_exchange_energy_collector_mk3_top.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk3_top.png similarity index 100% rename from textures/equivalent_exchange_energy_collector_mk3_top.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_energy_collector_mk3_top.png diff --git a/textures/equivalent_exchange_interdiction_stone.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_interdiction_stone.png similarity index 100% rename from textures/equivalent_exchange_interdiction_stone.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_interdiction_stone.png diff --git a/textures/equivalent_exchange_mobius_fuel.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_mobius_fuel.png similarity index 100% rename from textures/equivalent_exchange_mobius_fuel.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_mobius_fuel.png diff --git a/textures/equivalent_exchange_red_matter.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_red_matter.png similarity index 100% rename from textures/equivalent_exchange_red_matter.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_red_matter.png diff --git a/textures/equivalent_exchange_red_matter_block.png b/equivalent_exchange_energy_collectors/textures/equivalent_exchange_red_matter_block.png similarity index 100% rename from textures/equivalent_exchange_red_matter_block.png rename to equivalent_exchange_energy_collectors/textures/equivalent_exchange_red_matter_block.png diff --git a/equivalent_exchange_extras/depends.txt b/equivalent_exchange_extras/depends.txt new file mode 100644 index 0000000..8cd1ff4 --- /dev/null +++ b/equivalent_exchange_extras/depends.txt @@ -0,0 +1,3 @@ +default +equivalent_exchange +equivalent_exchange_energy_collectors \ No newline at end of file diff --git a/equivalent_exchange_extras/init.lua b/equivalent_exchange_extras/init.lua new file mode 100644 index 0000000..127e429 --- /dev/null +++ b/equivalent_exchange_extras/init.lua @@ -0,0 +1 @@ +print ("[equivalent_exchange_extras] Mod loaded!") \ No newline at end of file diff --git a/modpack.txt b/modpack.txt new file mode 100644 index 0000000..e69de29 diff --git a/normal_items.lua b/normal_items.lua deleted file mode 100644 index 09f5ba5..0000000 --- a/normal_items.lua +++ /dev/null @@ -1,212 +0,0 @@ --- Registering Nodes -- - -minetest.register_node("equivalent_exchange:red_matter_block", { - description = "Red Matter Block", - tiles = { - "equivalent_exchange_red_matter_block.png", - "equivalent_exchange_red_matter_block.png", - "equivalent_exchange_red_matter_block.png", - "equivalent_exchange_red_matter_block.png", - "equivalent_exchange_red_matter_block.png", - "equivalent_exchange_red_matter_block.png" - }, - paramtype2 = "facedir", - groups = {cracky = 3}, - is_ground_content = false, - sounds = default.node_sound_stone_defaults(), - emc = 1253376 -}) - -minetest.register_node("equivalent_exchange:antimatter_block", { - description = "Antimatter Block", - tiles = { - "equivalent_exchange_antimatter_block.png", - "equivalent_exchange_antimatter_block.png", - "equivalent_exchange_antimatter_block.png", - "equivalent_exchange_antimatter_block.png", - "equivalent_exchange_antimatter_block.png", - "equivalent_exchange_antimatter_block.png" - }, - paramtype2 = "facedir", - groups = {cracky = 3}, - is_ground_content = false, - sounds = default.node_sound_stone_defaults(), - emc = 4202496 -}) - -minetest.register_node("equivalent_exchange:condensed_antimatter", { - description = "Condensed Antimatter", - tiles = { - "equivalent_exchange_condensed_antimatter.png", - "equivalent_exchange_condensed_antimatter.png", - "equivalent_exchange_condensed_antimatter.png", - "equivalent_exchange_condensed_antimatter.png", - "equivalent_exchange_condensed_antimatter.png", - "equivalent_exchange_condensed_antimatter.png" - }, - paramtype2 = "facedir", - groups = {cracky = 5}, - is_ground_content = false, - sounds = default.node_sound_stone_defaults(), - emc = 33628160 -}) - --- Registering Craft Items -- - -minetest.register_craftitem("equivalent_exchange:low_covalence", { - description = "Low Covalence Dust", - inventory_image = "equivalent_exchange_low_covalence.png", - emc = 1, -}) - -minetest.register_craftitem("equivalent_exchange:medium_covalence", { - description = "Medium Covalence Dust", - inventory_image = "equivalent_exchange_medium_covalence.png", - emc = 8, -}) - -minetest.register_craftitem("equivalent_exchange:high_covalence", { - description = "High Covalence Dust", - inventory_image = "equivalent_exchange_high_covalence.png", - emc = 208, -}) - -minetest.register_craftitem("equivalent_exchange:alchemical_crystal", { - description = "Alchemical Crystal", - inventory_image = "equivalent_exchange_alchemical_crystal.png", - emc = 512, -}) - -minetest.register_craftitem("equivalent_exchange:mobius_fuel", { - description = "Mobius Fuel", - inventory_image = "equivalent_exchange_mobius_fuel.png", - emc = 2048, -}) - -minetest.register_craftitem("equivalent_exchange:aeternalis_fuel", { - description = "Aeternalis Fuel", - inventory_image = "equivalent_exchange_aeternalis_fuel.png", - emc = 8192, -}) - -minetest.register_craftitem("equivalent_exchange:red_matter", { - description = "Red Matter", - inventory_image = "equivalent_exchange_red_matter.png", - emc = 139264 -}) - -minetest.register_craftitem("equivalent_exchange:antimatter", { - description = "Antimatter", - inventory_image = "equivalent_exchange_antimatter.png", - emc = 466944 -}) - --- Registering Crafts -- - -minetest.register_craft({ - type = "shapeless", - output = "equivalent_exchange:low_covalence 40", - recipe = {"default:cobble", "default:cobble", "default:cobble", - "default:cobble", "default:cobble", "default:cobble", - "default:cobble", "default:cobble", "default:coal_lump"} -}) - -minetest.register_craft({ - type = "shapeless", - output = "equivalent_exchange:medium_covalence 40", - recipe = {"default:steel_ingot", "default:bronze_ingot"} -}) - -minetest.register_craft({ - type = "shapeless", - output = "equivalent_exchange:high_covalence 40", - recipe = {"default:diamond", "default:mese_crystal"} -}) - -local materials = {"wood","stone","steel","bronze","mese","diamond"} -local covalence = {"low_covalence","low_covalence","medium_covalence","medium_covalence","high_covalence","high_covalence"} -local tools = {"pick_","shovel_","axe_","sword_","hoe_"} -local type = {"default:","default:","default:","default:","farming:"} - - -for i = 1,6 do - for j = 1,5 do - minetest["register_craft"]({ - type = "shapeless", - 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]} - }) - end -end - -minetest.register_craft({ - type = "shapeless", - output = "screwdriver:screwdriver", - recipe = {"equivalent_exchange:medium_covalence", "equivalent_exchange:medium_covalence", "equivalent_exchange:medium_covalence", "screwdriver:screwdriver"} -}) - -local fuels = {"default:diamond","equivalent_exchange:alchemical_crystal","equivalent_exchange:mobius_fuel","equivalent_exchange:aeternalis_fuel"} - -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({ - output = "equivalent_exchange:red_matter", - recipe = { - {"equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel"}, - {"equivalent_exchange:aeternalis_fuel", "default:mese", "equivalent_exchange:aeternalis_fuel"}, - {"equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel"} - } -}) - -minetest.register_craft({ - output = "equivalent_exchange:antimatter", - recipe = { - {"equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel"}, - {"equivalent_exchange:red_matter","equivalent_exchange:red_matter","equivalent_exchange:red_matter"}, - {"equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel", "equivalent_exchange:aeternalis_fuel"} - } -}) - -minetest.register_craft({ - output = "equivalent_exchange:red_matter_block", - recipe = { - {"equivalent_exchange:red_matter", "equivalent_exchange:red_matter", "equivalent_exchange:red_matter"}, - {"equivalent_exchange:red_matter", "equivalent_exchange:red_matter", "equivalent_exchange:red_matter"}, - {"equivalent_exchange:red_matter", "equivalent_exchange:red_matter", "equivalent_exchange:red_matter"} - } -}) - -minetest.register_craft({ - output = "equivalent_exchange:antimatter_block", - recipe = { - {"equivalent_exchange:antimatter", "equivalent_exchange:antimatter", "equivalent_exchange:antimatter"}, - {"equivalent_exchange:antimatter", "equivalent_exchange:antimatter", "equivalent_exchange:antimatter"}, - {"equivalent_exchange:antimatter", "equivalent_exchange:antimatter", "equivalent_exchange:antimatter"} - } -}) - -minetest.register_craft({ - output = "equivalent_exchange:condensed_antimatter", - recipe = { - {"equivalent_exchange:antimatter_block", "equivalent_exchange:antimatter_block", "equivalent_exchange:antimatter_block"}, - {"equivalent_exchange:antimatter_block", "equivalent_exchange:aeternalis_fuel", "equivalent_exchange:antimatter_block"}, - {"equivalent_exchange:antimatter_block", "equivalent_exchange:antimatter_block", "equivalent_exchange:antimatter_block"} - } -}) \ No newline at end of file