Decouple from default start and fixes

Start to remove all default references to default mod into a single file so they can be more easily updated.
Add recipes for blue/red paper.
Add Silver Wire to internal copy of basic materials
This commit is contained in:
Sirrobzeroone 2021-08-11 20:25:00 +10:00
parent 56d89df934
commit 3d28ad39b5
68 changed files with 2150 additions and 809 deletions

View File

@ -1,3 +1,7 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epi = ele.external.ing
if minetest.get_modpath("basic_materials") == nil then
--------------
@ -98,9 +102,9 @@ if minetest.get_modpath("basic_materials") == nil then
burntime = 30,
})
-----------------
-- COPPER WIRE --
-----------------
----------
-- WIRE --
----------
minetest.register_craftitem(":basic_materials:copper_wire", {
description = "Copper Wire",
@ -112,11 +116,42 @@ if minetest.get_modpath("basic_materials") == nil then
output = "basic_materials:copper_wire 2",
type = "shapeless",
recipe = {
"default:copper_ingot",
epi.copper_ingot,
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
})
minetest.register_craftitem(":basic_materials:silver_wire", {
description = "Silver Wire",
inventory_image = "elepower_bm_silver_wire.png",
groups = {copper = 1, wire = 1, component = 1}
})
minetest.register_craft( {
output = "basic_materials:silver_wire 2",
type = "shapeless",
recipe = {
epi.silver_ingot,
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
})
---------------------
-- Heating Element --
---------------------
minetest.register_craftitem(":basic_materials:heating_element", {
description = "Heating element",
inventory_image = "elepower_bm_heating_element.png",
})
minetest.register_craft( {
output = "basic_materials:heating_element 2",
recipe = {
{ epi.copper_ingot, epi.mese_crystal_fragment, epi.copper_ingot }
},
})
-----------
-- MOTOR --
@ -131,9 +166,9 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craft({
output = "basic_materials:motor 3",
recipe = {
{"default:steel_ingot", "elepower_dynamics:wound_copper_coil", "default:steel_ingot"},
{epi.steel_ingot, "elepower_dynamics:wound_copper_coil", epi.steel_ingot},
{"basic_materials:copper_wire", "elepower_dynamics:wound_copper_coil", "basic_materials:copper_wire"},
{"default:steel_ingot", "elepower_dynamics:capacitor", "default:steel_ingot"},
{epi.steel_ingot, "elepower_dynamics:capacitor", epi.steel_ingot},
}
})
@ -177,7 +212,7 @@ if minetest.get_modpath("basic_materials") == nil then
output = "basic_materials:steel_wire 2",
type = "shapeless",
recipe = {
"default:steel_ingot",
epi.steel_ingot,
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
@ -186,8 +221,8 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craft( {
output = "basic_materials:steel_strip 12",
recipe = {
{ "", "default:steel_ingot", "" },
{ "default:steel_ingot", "", "" },
{ "", epi.steel_ingot, "" },
{ epi.steel_ingot, "", "" },
},
})

View File

@ -1,4 +1,9 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epg = ele.external.graphic
local eps = ele.external.sounds
-- Electric power
ele.register_conduit("elepower_dynamics:conduit", {
description = "Power Conduit",
@ -15,57 +20,62 @@ ele.register_conduit("elepower_dynamics:conduit_wall", {
groups = {cracky = 1}
})
ele.register_conduit("elepower_dynamics:conduit_dirt_with_grass", {
description = "Power Conduit Grass Outlet",
tiles = {"default_grass.png^elepower_conduit_node_socket.png",
"default_dirt.png",
"default_dirt.png^default_grass_side.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25}
if ele.external.conduit_dirt_with_grass == true then
ele.register_conduit("elepower_dynamics:conduit_dirt_with_grass", {
description = "Power Conduit Grass Outlet",
tiles = {epg.grass.."^elepower_conduit_node_socket.png",
epg.dirt,
epg.dirt.."^"..epg.grass_side
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {crumbly = 3, soil = 1},
sounds = eps.node_sound_dirt_c
})
})
end
ele.register_conduit("elepower_dynamics:conduit_dirt_with_dry_grass", {
description = "Power Conduit Dry Grass Outlet",
tiles = {"default_dry_grass.png^elepower_conduit_node_socket.png",
"default_dirt.png",
"default_dirt.png^default_dry_grass_side.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25}
if ele.external.conduit_dirt_with_dry_grass == true then
ele.register_conduit("elepower_dynamics:conduit_dirt_with_dry_grass", {
description = "Power Conduit Dry Grass Outlet",
tiles = {epg.grass_dry.."^elepower_conduit_node_socket.png",
epg.dirt,
epg.dirt.."^"..epg.grass_side_dry
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {crumbly = 3, soil = 1},
sounds = eps.node_sound_dirt_c
})
})
end
ele.register_conduit("elepower_dynamics:conduit_stone_block", {
description = "Power Conduit Stone Block",
tiles = {"default_stone_block.png^elepower_conduit_node_socket.png",
"default_stone_block.png^elepower_conduit_node_socket.png",
"default_stone_block.png^elepower_conduit_node_socket.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
if ele.external.conduit_stone_block == true then
ele.register_conduit("elepower_dynamics:conduit_stone_block", {
description = "Power Conduit Stone Block",
tiles = {epg.stone_block.."^elepower_conduit_node_socket.png",
epg.stone_block.."^elepower_conduit_node_socket.png",
epg.stone_block.."^elepower_conduit_node_socket.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 2, stone = 1},
sounds = eps.node_sound_stone
})
end
ele.register_conduit("elepower_dynamics:conduit_stone_block_desert", {
description = "Power Conduit Desert Stone Block",
tiles = {"default_desert_stone_block.png^elepower_conduit_node_socket.png",
"default_desert_stone_block.png^elepower_conduit_node_socket.png",
"default_desert_stone_block.png^elepower_conduit_node_socket.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
if ele.external.conduit_stone_block_desert == true then
ele.register_conduit("elepower_dynamics:conduit_stone_block_desert", {
description = "Power Conduit Desert Stone Block",
tiles = {epg.desert_stone_block.."^elepower_conduit_node_socket.png",
epg.desert_stone_block.."^elepower_conduit_node_socket.png",
epg.desert_stone_block.."^elepower_conduit_node_socket.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 2, stone = 1},
sounds = eps.node_sound_stone
})
end
-- Fluid
fluid_lib.register_transfer_node("elepower_dynamics:opaque_duct", {

View File

@ -1,97 +1,102 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epi = ele.external.ing
local ept = ele.external.tools
---------------
-- Overrides --
---------------
-- Remove iron_lump -> steel_ingot, because dynamics adds iron ingot
--minetest.clear_craft({type = "cooking", output = "default:steel_ingot"})
--minetest.clear_craft({type = "cooking", output = epi.steel_ingot})
-----------
-- Tools --
-----------
if ept.enable_iron_lead_tools == true then
-- Pickaxes
minetest.register_craft({
output = 'elepower_dynamics:pick_iron',
recipe = {
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = 'elepower_dynamics:pick_iron',
recipe = {
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
{'',epi.group_stick, ''},
{'',epi.group_stick, ''},
}
})
minetest.register_craft({
output = 'elepower_dynamics:pick_lead',
recipe = {
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
{'', 'group:stick', ''},
{'', 'group:stick', ''},
}
})
minetest.register_craft({
output = 'elepower_dynamics:pick_lead',
recipe = {
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
{'',epi.group_stick, ''},
{'',epi.group_stick, ''},
}
})
-- Shovels
-- Shovels
minetest.register_craft({
output = 'elepower_dynamics:shovel_iron',
recipe = {
{'elepower_dynamics:iron_ingot'},
{'group:stick'},
{'group:stick'},
}
})
minetest.register_craft({
output = 'elepower_dynamics:shovel_iron',
recipe = {
{'elepower_dynamics:iron_ingot'},
{epi.group_stick},
{epi.group_stick},
}
})
minetest.register_craft({
output = 'elepower_dynamics:shovel_lead',
recipe = {
{'elepower_dynamics:lead_ingot'},
{'group:stick'},
{'group:stick'},
}
})
minetest.register_craft({
output = 'elepower_dynamics:shovel_lead',
recipe = {
{'elepower_dynamics:lead_ingot'},
{epi.group_stick},
{epi.group_stick},
}
})
-- Axes
-- Axes
minetest.register_craft({
output = 'elepower_dynamics:axe_iron',
recipe = {
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot', 'group:stick'},
{'', 'group:stick'},
}
})
minetest.register_craft({
output = 'elepower_dynamics:axe_iron',
recipe = {
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot',epi.group_stick},
{'',epi.group_stick},
}
})
minetest.register_craft({
output = 'elepower_dynamics:axe_lead',
recipe = {
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot', 'group:stick'},
{'', 'group:stick'},
}
})
minetest.register_craft({
output = 'elepower_dynamics:axe_lead',
recipe = {
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot',epi.group_stick},
{'',epi.group_stick},
}
})
-- Swords
-- Swords
minetest.register_craft({
output = 'elepower_dynamics:sword_iron',
recipe = {
{'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot'},
{'group:stick'},
}
})
minetest.register_craft({
output = 'elepower_dynamics:sword_iron',
recipe = {
{'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot'},
{epi.group_stick},
}
})
minetest.register_craft({
output = 'elepower_dynamics:sword_lead',
recipe = {
{'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot'},
{'group:stick'},
}
})
minetest.register_craft({
output = 'elepower_dynamics:sword_lead',
recipe = {
{'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot'},
{epi.group_stick},
}
})
end
-- Bucket
minetest.register_craft({
output = 'bucket:bucket_empty',
recipe = {
@ -139,41 +144,49 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "elepower_dynamics:conduit_dirt_with_grass 1",
recipe = {
{"","farming:seed_wheat",""},
{"","elepower_dynamics:conduit" ,""},
{"","default:dirt" ,""}
}
})
if ele.external.conduit_dirt_with_grass == true then
minetest.register_craft({
output = "elepower_dynamics:conduit_dirt_with_grass 1",
recipe = {
{"",epi.seed_wheat ,""},
{"","elepower_dynamics:conduit" ,""},
{"",epi.dirt ,""}
}
})
end
minetest.register_craft({
output = "elepower_dynamics:conduit_dirt_with_dry_grass 1",
recipe = {
{"","farming:wheat",""},
{"","elepower_dynamics:conduit" ,""},
{"","default:dirt" ,""}
}
})
if ele.external.conduit_dirt_with_dry_grass == true then
minetest.register_craft({
output = "elepower_dynamics:conduit_dirt_with_dry_grass 1",
recipe = {
{"",epi.wheat ,""},
{"","elepower_dynamics:conduit",""},
{"",epi.dirt ,""}
}
})
end
minetest.register_craft({
output = "elepower_dynamics:conduit_stone_block 1",
recipe = {
{"" ,"stairs:slab_stone_block" ,""},
{"stairs:slab_stone_block","elepower_dynamics:conduit","stairs:slab_stone_block"},
{"" ,"stairs:slab_stone_block" ,""}
}
})
if ele.external.conduit_stone_block == true then
minetest.register_craft({
output = "elepower_dynamics:conduit_stone_block 1",
recipe = {
{"" ,epi.slab_stone_block ,""},
{epi.slab_stone_block,"elepower_dynamics:conduit",epi.slab_stone_block},
{"" ,epi.slab_stone_block ,""}
}
})
end
minetest.register_craft({
output = "elepower_dynamics:conduit_stone_block_desert 1",
recipe = {
{"" ,"stairs:slab_desert_stone_block" ,""},
{"stairs:slab_desert_stone_block","elepower_dynamics:conduit","stairs:slab_desert_stone_block"},
{"" ,"stairs:slab_desert_stone_block" ,""}
}
})
if ele.external.conduit_stone_block_desert == true then
minetest.register_craft({
output = "elepower_dynamics:conduit_stone_block_desert 1",
recipe = {
{"" ,epi.slab_desert_stone_block ,""},
{epi.slab_desert_stone_block,"elepower_dynamics:conduit",epi.slab_desert_stone_block},
{"" ,epi.slab_desert_stone_block ,""}
}
})
end
@ -182,7 +195,7 @@ minetest.register_craft({
output = "elepower_dynamics:opaque_duct 3",
recipe = {
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
{"fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct", "fluid_transfer:fluid_duct"},
{"fluid_transfer:fluid_duct" , "fluid_transfer:fluid_duct" , "fluid_transfer:fluid_duct"},
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
}
})
@ -191,9 +204,9 @@ minetest.register_craft({
minetest.register_craft({
output = "elepower_dynamics:portable_tank",
recipe = {
{"default:glass", "elepower_dynamics:fluid_duct", "default:glass"},
{"default:glass", "default:glass", "default:glass"},
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
{epi.glass,"elepower_dynamics:fluid_duct",epi.glass},
{epi.glass,epi.glass,epi.glass},
{epi.bronze_ingot,epi.bronze_ingot,epi.bronze_ingot},
}
})
@ -204,18 +217,18 @@ minetest.register_craft({
minetest.register_craft({
output = "elepower_dynamics:wound_copper_coil",
recipe = {
{"", "default:copper_ingot", ""},
{"default:copper_ingot", "elepower_dynamics:iron_ingot", "default:copper_ingot"},
{"", "default:copper_ingot", ""}
{"" ,epi.copper_ingot , ""},
{epi.copper_ingot, "elepower_dynamics:iron_ingot", epi.copper_ingot},
{"" , epi.copper_ingot , ""}
}
})
minetest.register_craft({
output = "elepower_dynamics:wound_copper_coil",
recipe = {
{"", "basic_materials:copper_wire", ""},
{"basic_materials:copper_wire", "elepower_dynamics:iron_ingot", "basic_materials:copper_wire"},
{"", "basic_materials:copper_wire", ""}
{"" ,"basic_materials:copper_wire", ""},
{"basic_materials:copper_wire","elepower_dynamics:iron_ingot", "basic_materials:copper_wire"},
{"" ,"basic_materials:copper_wire", ""}
},
replacements = {
{"basic_materials:copper_wire", "basic_materials:empty_spool"},
@ -228,9 +241,9 @@ minetest.register_craft({
minetest.register_craft({
output = "elepower_dynamics:wound_silver_coil",
recipe = {
{"", "moreores:silver_ingot", ""},
{"moreores:silver_ingot", "elepower_dynamics:zinc_ingot", "moreores:silver_ingot"},
{"", "moreores:silver_ingot", ""}
{"" , epi.silver_ingot, ""},
{epi.silver_ingot, "elepower_dynamics:zinc_ingot",epi.silver_ingot},
{"" , epi.silver_ingot, ""}
}
})
@ -260,8 +273,8 @@ minetest.register_craft({
minetest.register_craft({
output = "elepower_dynamics:tree_tap",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"", "", "default:steel_ingot"},
{epi.steel_ingot, epi.steel_ingot, epi.steel_ingot},
{"", "", epi.steel_ingot},
}
})
@ -269,8 +282,8 @@ minetest.register_craft({
output = "elepower_dynamics:chip 6",
recipe = {
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
{"default:mese_crystal_fragment", "group:color_black", "default:mese_crystal_fragment"},
{"default:copper_ingot", "moreores:silver_ingot", "default:copper_ingot"},
{epi.mese_crystal_fragment,epi.group_color_black, epi.mese_crystal_fragment},
{epi.copper_ingot, epi.silver_ingot, epi.copper_ingot},
}
})
@ -278,17 +291,17 @@ minetest.register_craft({
output = "elepower_dynamics:capacitor 6",
recipe = {
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
{"moreores:silver_ingot", "default:mese_crystal", "moreores:silver_ingot"},
{"default:copper_ingot", "group:color_violet", "default:copper_ingot"},
{epi.silver_ingot, epi.mese_crystal, epi.silver_ingot},
{epi.copper_ingot, epi.group_color_violet, epi.copper_ingot},
}
})
minetest.register_craft({
output = "elepower_dynamics:pcb_blank 3",
recipe = {
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
{epi.copper_ingot,epi.copper_ingot, epi.copper_ingot},
{epi.copper_ingot,epi.mese_crystal, epi.copper_ingot},
{epi.gold_ingot ,epi.gold_ingot, epi.gold_ingot},
}
})
@ -296,7 +309,7 @@ minetest.register_craft({
output = "elepower_dynamics:pcb_blank",
recipe = {
{"", "elepower_dynamics:copper_plate", ""},
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
{epi.mese_crystal_fragment, epi.mese_crystal_fragment, epi.mese_crystal_fragment},
{"", "elepower_dynamics:gold_plate", ""},
}
})
@ -309,16 +322,16 @@ minetest.register_craft({
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust",
"farming:seed_wheat",
epi.seed_wheat,
}
})
minetest.register_craft({
output = "elepower_dynamics:uv_bulb",
recipe = {
{"group:color_blue", "group:color_violet", "group:color_blue"},
{"", "default:meselamp", ""},
{"", "default:glass", ""},
{epi.group_color_blue, epi.group_color_violet, epi.group_color_blue},
{"", epi.mese_lamp, ""},
{"", epi.glass, ""},
}
})
@ -327,9 +340,9 @@ minetest.clear_craft({output = "fluid_transfer:fluid_transfer_pump"})
minetest.register_craft({
output = "fluid_transfer:fluid_transfer_pump 3",
recipe = {
{"group:stone", "elepower_dynamics:control_circuit", "group:stone"},
{epi.group_stone, "elepower_dynamics:control_circuit",epi.group_stone},
{"elepower_dynamics:electrum_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:electrum_gear"},
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
{epi.group_stone, "elepower_dynamics:fluid_duct", epi.group_stone},
}
})
@ -337,26 +350,26 @@ minetest.register_craft({
output = "elepower_dynamics:battery 2",
recipe = {
{"elepower_dynamics:zinc_dust", "elepower_dynamics:graphite_rod", "elepower_dynamics:lead_dust"},
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
{"elepower_dynamics:tin_plate", epi.mese_crystal_fragment, "elepower_dynamics:tin_plate"},
{"elepower_dynamics:tin_plate", epi.mese_crystal_fragment, "elepower_dynamics:tin_plate"},
}
})
minetest.register_craft({
output = "elepower_dynamics:lcd_panel",
recipe = {
{"group:color_red", "group:color_green", "group:color_blue"},
{"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"},
{"", "default:meselamp", ""}
{epi.group_color_red, epi.group_color_green, epi.group_color_blue},
{epi.silver_ingot, "elepower_dynamics:wound_copper_coil", epi.silver_ingot},
{"", epi.mese_lamp, ""}
}
})
minetest.register_craft({
output = "elepower_dynamics:pv_cell",
recipe = {
{"default:glass", "default:glass", "default:glass"},
{"group:color_blue", "elepower_dynamics:silicon_wafer_doped", "group:color_blue"},
{"default:mese_crystal_fragment", "elepower_dynamics:wound_copper_coil", "default:mese_crystal_fragment"}
{epi.glass, epi.glass, epi.glass},
{epi.group_color_blue, "elepower_dynamics:silicon_wafer_doped", epi.group_color_blue},
{epi.mese_crystal_fragment, "elepower_dynamics:wound_copper_coil", epi.mese_crystal_fragment}
}
})
@ -365,7 +378,7 @@ minetest.register_craft({
recipe = {
{"elepower_dynamics:chip", "elepower_dynamics:chip", "elepower_dynamics:chip"},
{"elepower_dynamics:capacitor", "elepower_dynamics:pcb", "elepower_dynamics:capacitor"},
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
{epi.copper_ingot, epi.mese_crystal, epi.copper_ingot},
}
})
@ -382,7 +395,7 @@ minetest.register_craft({
recipe = {
{"elepower_dynamics:steel_plate", "", "elepower_dynamics:steel_plate"},
{"elepower_dynamics:steel_plate", "", "elepower_dynamics:steel_plate"},
{"", "elepower_dynamics:steel_plate", ""}
{"" ,"elepower_dynamics:steel_plate", ""}
}
})
@ -393,12 +406,12 @@ minetest.register_craft({
minetest.register_craft({
type = "cooking",
output = "elepower_dynamics:iron_ingot",
recipe = "default:iron_lump"
recipe = epi.iron_lump
})
minetest.register_craft({
type = "cooking",
output = "default:steel_ingot",
output = epi.steel_ingot,
recipe = "elepower_dynamics:iron_ingot"
})
@ -438,7 +451,7 @@ for mat, data in pairs(elepd.registered_gears) do
local immebreak = false
if mat == "wood" then
found = "group:stick"
found = epi.group_stick
immebreak = true
end

View File

@ -1,4 +1,9 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
local epi = ele.external.ing
----------------
-- Craftitems --
----------------
@ -164,7 +169,7 @@ minetest.register_craftitem("elepower_dynamics:pcb_blank", {
-- Limited etchings
if uses == 10 then
minetest.set_node(pos, {name = "default:water_source"})
minetest.set_node(pos, {name = epr.water_source})
else
meta:set_int("uses", uses)
end
@ -188,7 +193,7 @@ minetest.register_craftitem("elepower_dynamics:acidic_compound", {
local pos = pointed_thing.under
local node = minetest.get_node(pos)
if node.name ~= "default:water_source" then
if node.name ~= epi.water_source then
return itemstack
end
@ -303,6 +308,6 @@ minetest.register_craftitem("elepower_dynamics:pv_cell", {
-- Overrides --
---------------
minetest.override_item("default:steel_ingot", {
description = "Steel Ingot\nLow carbon steel"
minetest.override_item(epi.steel_ingot, {
description = "Low Carbon Steel Ingot"
})

View File

@ -1,4 +1,8 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
-- Etching Acid
ele.helpers.register_liquid("etching_acid", {
@ -40,7 +44,7 @@ bucket.register_liquid("elepower_dynamics:lithium_source", "elepower_dynamics:li
minetest.register_node("elepower_dynamics:steam", {
description = "Steam",
groups = {not_in_creative_inventory = 1, gas = 1},
liquid_form = "default:water_source",
liquid_form = epr.water_source,
tiles = {"elepower_steam.png"},
})

View File

@ -1,4 +1,9 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epg = ele.external.graphic
local eps = ele.external.sounds
---------------
-- Overrides --
---------------
@ -14,34 +19,34 @@ minetest.register_alias_force("elepower_dynamics:fluid_duct", "fluid_transfer:fl
minetest.register_node("elepower_dynamics:stone_with_lead", {
description = "Lead Ore",
tiles = {"default_stone.png^elepower_mineral_lead.png"},
tiles = {epg.stone.."^elepower_mineral_lead.png"},
groups = {cracky = 2},
drop = 'elepower_dynamics:lead_lump',
sounds = default.node_sound_stone_defaults(),
sounds = eps.node_sound_stone,
})
minetest.register_node("elepower_dynamics:stone_with_nickel", {
description = "Nickel Ore",
tiles = {"default_stone.png^elepower_mineral_nickel.png"},
tiles = {epg.stone.."^elepower_mineral_nickel.png"},
groups = {cracky = 2},
drop = 'elepower_dynamics:nickel_lump',
sounds = default.node_sound_stone_defaults(),
sounds = eps.node_sound_stone,
})
minetest.register_node("elepower_dynamics:stone_with_viridisium", {
description = "Viridisium Ore",
tiles = {"default_stone.png^elepower_mineral_viridisium.png"},
tiles = {epg.stone.."^elepower_mineral_viridisium.png"},
groups = {cracky = 3},
drop = 'elepower_dynamics:viridisium_lump',
sounds = default.node_sound_stone_defaults(),
sounds = eps.node_sound_stone,
})
minetest.register_node("elepower_dynamics:stone_with_zinc", {
description = "Zinc Ore",
tiles = {"default_stone.png^elepower_mineral_zinc.png"},
tiles = {epg.stone.."^elepower_mineral_zinc.png"},
groups = {cracky = 3},
drop = 'elepower_dynamics:zinc_lump',
sounds = default.node_sound_stone_defaults(),
sounds = eps.node_sound_stone,
})
-- Other
@ -51,18 +56,18 @@ minetest.register_node("elepower_dynamics:particle_board", {
tiles = {"elepower_particle_board.png"},
groups = {choppy = 2, wood = 1},
drop = 'elepower_dynamics:wood_dust 4',
sounds = default.node_sound_wood_defaults(),
sounds = eps.node_sound_wood,
})
minetest.register_node("elepower_dynamics:hardened_glass", {
description = "Hardened Obsidian Glass\nDoes not let light through",
drawtype = "glasslike_framed_optional",
tiles = {"default_obsidian_glass.png", "elepower_hard_glass_detail.png"},
tiles = {epg.obsidian_glass, "elepower_hard_glass_detail.png"},
paramtype2 = "glasslikeliquidlevel",
is_ground_content = false,
sunlight_propagates = false,
use_texture_alpha = "clip",
sounds = default.node_sound_glass_defaults(),
sounds = eps.node_sound_glass,
groups = {cracky = 3},
})
@ -73,7 +78,7 @@ minetest.register_node("elepower_dynamics:viridisium_block", {
tiles = {"elepower_viridisium_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_metal_defaults(),
sounds = eps.node_sound_metal,
})
minetest.register_node("elepower_dynamics:lead_block", {
@ -81,7 +86,7 @@ minetest.register_node("elepower_dynamics:lead_block", {
tiles = {"elepower_lead_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_metal_defaults(),
sounds = eps.node_sound_metal,
})
minetest.register_node("elepower_dynamics:invar_block", {
@ -89,7 +94,7 @@ minetest.register_node("elepower_dynamics:invar_block", {
tiles = {"elepower_invar_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 3},
sounds = default.node_sound_metal_defaults(),
sounds = eps.node_sound_metal,
})
minetest.register_node("elepower_dynamics:nickel_block", {
@ -97,7 +102,7 @@ minetest.register_node("elepower_dynamics:nickel_block", {
tiles = {"elepower_nickel_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 3},
sounds = default.node_sound_metal_defaults(),
sounds = eps.node_sound_metal,
})
minetest.register_node("elepower_dynamics:zinc_block", {
@ -105,5 +110,5 @@ minetest.register_node("elepower_dynamics:zinc_block", {
tiles = {"elepower_zinc_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 3},
sounds = default.node_sound_metal_defaults(),
sounds = eps.node_sound_metal,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,122 +1,129 @@
-- Pickaxes
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local eps = ele.external.sounds
minetest.register_tool("elepower_dynamics:pick_iron", {
description = "Iron Pickaxe",
inventory_image = "elepower_tool_ironpick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
cracky = {times={[1]=3.90, [2]=1.50, [3]=0.60}, uses=20, maxlevel=2},
if ele.external.tools.enable_iron_lead_tools == true then
-- Pickaxes
minetest.register_tool("elepower_dynamics:pick_iron", {
description = "Iron Pickaxe",
inventory_image = "elepower_tool_ironpick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
cracky = {times={[1]=3.90, [2]=1.50, [3]=0.60}, uses=20, maxlevel=2},
},
damage_groups = {fleshy=4},
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:pick_lead", {
description = "Lead Pickaxe",
inventory_image = "elepower_tool_leadpick.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
cracky = {times={[1]=3.90, [2]=1.60, [3]=0.50}, uses=20, maxlevel=2},
minetest.register_tool("elepower_dynamics:pick_lead", {
description = "Lead Pickaxe",
inventory_image = "elepower_tool_leadpick.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
cracky = {times={[1]=3.90, [2]=1.60, [3]=0.50}, uses=20, maxlevel=2},
},
damage_groups = {fleshy=5},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
-- Shovels
-- Shovels
minetest.register_tool("elepower_dynamics:shovel_iron", {
description = "Iron Shovel",
inventory_image = "elepower_tool_ironshovel.png",
wield_image = "elepower_tool_ironshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.40, [2]=0.80, [3]=0.20}, uses=30, maxlevel=2},
minetest.register_tool("elepower_dynamics:shovel_iron", {
description = "Iron Shovel",
inventory_image = "elepower_tool_ironshovel.png",
wield_image = "elepower_tool_ironshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.40, [2]=0.80, [3]=0.20}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=3},
},
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:shovel_lead", {
description = "Lead Shovel",
inventory_image = "elepower_tool_leadshovel.png",
wield_image = "elepower_tool_leadshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.50, [2]=0.50, [3]=0.10}, uses=30, maxlevel=2},
minetest.register_tool("elepower_dynamics:shovel_lead", {
description = "Lead Shovel",
inventory_image = "elepower_tool_leadshovel.png",
wield_image = "elepower_tool_leadshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.50, [2]=0.50, [3]=0.10}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=4},
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
-- Axes
-- Axes
minetest.register_tool("elepower_dynamics:axe_iron", {
description = "Iron Axe",
inventory_image = "elepower_tool_ironaxe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.40, [2]=1.30, [3]=0.80}, uses=20, maxlevel=2},
minetest.register_tool("elepower_dynamics:axe_iron", {
description = "Iron Axe",
inventory_image = "elepower_tool_ironaxe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.40, [2]=1.30, [3]=0.80}, uses=20, maxlevel=2},
},
damage_groups = {fleshy=4},
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:axe_lead", {
description = "Lead Axe",
inventory_image = "elepower_tool_leadaxe.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.40, [2]=1.20, [3]=0.70}, uses=20, maxlevel=2},
minetest.register_tool("elepower_dynamics:axe_lead", {
description = "Lead Axe",
inventory_image = "elepower_tool_leadaxe.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.40, [2]=1.20, [3]=0.70}, uses=20, maxlevel=2},
},
damage_groups = {fleshy=5},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
-- Swords
-- Swords
minetest.register_tool("elepower_dynamics:sword_iron", {
description = "Iron Sword",
inventory_image = "elepower_tool_ironsword.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
snappy={times={[1]=2.4, [2]=1.10, [3]=0.2}, uses=30, maxlevel=2},
minetest.register_tool("elepower_dynamics:sword_iron", {
description = "Iron Sword",
inventory_image = "elepower_tool_ironsword.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
snappy={times={[1]=2.4, [2]=1.10, [3]=0.2}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=5},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:sword_lead", {
description = "Lead Sword",
inventory_image = "elepower_tool_leadsword.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
snappy={times={[1]=2.2, [2]=1.00, [3]=0.1}, uses=30, maxlevel=2},
minetest.register_tool("elepower_dynamics:sword_lead", {
description = "Lead Sword",
inventory_image = "elepower_tool_leadsword.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
snappy={times={[1]=2.2, [2]=1.00, [3]=0.1}, uses=30, maxlevel=2},
},
damage_groups = {fleshy=7},
},
damage_groups = {fleshy=7},
},
sound = {breaks = "default_tool_breaks"},
})
sound = {breaks = eps.tool_breaks},
})
end

View File

@ -1,14 +1,17 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
--------------
-- Worldgen --
--------------
-- Lead
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_lead",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 12,
clust_size = 3,
@ -19,7 +22,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_lead",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 14 * 14 * 14,
clust_num_ores = 5,
clust_size = 3,
@ -30,7 +33,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_lead",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 10 * 10 * 10,
clust_num_ores = 5,
clust_size = 3,
@ -43,7 +46,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_nickel",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 25 * 25 * 25,
clust_num_ores = 4,
clust_size = 3,
@ -54,7 +57,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_nickel",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 25 * 25 * 25,
clust_num_ores = 4,
clust_size = 3,
@ -65,7 +68,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_nickel",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 5,
clust_size = 3,
@ -76,7 +79,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_nickel",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 12 * 12 * 12,
clust_num_ores = 5,
clust_size = 3,
@ -89,7 +92,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_viridisium",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 25 * 25 * 25,
clust_num_ores = 5,
clust_size = 3,
@ -100,7 +103,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_viridisium",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 20 * 20 * 20,
clust_num_ores = 5,
clust_size = 3,
@ -111,7 +114,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_viridisium",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 10 * 10 * 10,
clust_num_ores = 5,
clust_size = 3,
@ -124,7 +127,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_zinc",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 25 * 25 * 25,
clust_num_ores = 2,
clust_size = 3,
@ -135,7 +138,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_zinc",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 20 * 20 * 20,
clust_num_ores = 5,
clust_size = 3,
@ -146,7 +149,7 @@ minetest.register_ore({
minetest.register_ore({
ore_type = "scatter",
ore = "elepower_dynamics:stone_with_zinc",
wherein = "default:stone",
wherein = epr.stone,
clust_scarcity = 12 * 12 * 12,
clust_num_ores = 5,
clust_size = 3,

View File

@ -1,4 +1,8 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epi = ele.external.ing
-----------
-- Nodes --
-----------
@ -7,9 +11,9 @@
minetest.register_craft({
output = "elepower_farming:device_frame",
recipe = {
{"basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet"},
{"default:glass", "default:mese_crystal", "default:glass"},
{"basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet"},
{"basic_materials:plastic_sheet", epi.glass, "basic_materials:plastic_sheet"},
{epi.glass, epi.mese_crystal, epi.glass},
{"basic_materials:plastic_sheet", epi.glass, "basic_materials:plastic_sheet"},
}
})
@ -18,7 +22,7 @@ minetest.register_craft({
output = "elepower_farming:planter",
recipe = {
{"elepower_dynamics:nickel_ingot", "elepower_dynamics:control_circuit", "elepower_dynamics:nickel_ingot"},
{"farming:hoe_steel", "elepower_farming:device_frame", "farming:hoe_steel"},
{epi.hoe_steel, "elepower_farming:device_frame", epi.hoe_steel},
{"elepower_dynamics:wound_copper_coil", "basic_materials:motor", "elepower_dynamics:wound_copper_coil"},
}
})
@ -28,7 +32,7 @@ minetest.register_craft({
output = "elepower_farming:harvester",
recipe = {
{"elepower_dynamics:nickel_ingot", "elepower_dynamics:control_circuit", "elepower_dynamics:nickel_ingot"},
{"default:axe_steel", "elepower_farming:device_frame", "farming:hoe_steel"},
{epi.axe_steel, "elepower_farming:device_frame", epi.hoe_steel},
{"basic_materials:motor", "elepower_dynamics:diamond_gear", "basic_materials:motor"},
}
})

View File

@ -1,9 +1,13 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
local function get_formspec(timer, biomass_buffer, output_buffer)
return "size[8,8.5]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
epr.gui_bg..
epr.gui_bg_img..
epr.gui_slots..
ele.formspec.fluid_bar(0, 0.75, biomass_buffer)..
ele.formspec.fluid_bar(7, 0.75, output_buffer)..
"list[context;src;1,0.5;3,3;]"..
@ -14,7 +18,7 @@ local function get_formspec(timer, biomass_buffer, output_buffer)
"listring[current_player;main]"..
"listring[context;src]"..
"listring[current_player;main]"..
default.get_hotbar_bg(0, 4.25)
epr.get_hotbar_bg(0, 4.25)
end
local function is_plant(itemname)

View File

@ -1,4 +1,8 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
-- How many seconds there are between runs
local HARVESTER_TICK = 10
@ -81,9 +85,9 @@ end