Compare commits

..

No commits in common. "671546f103c636725313c80440f0b75d58dec88c" and "411dfd9e5b234cb69bc8538f8cabe15d8eb930f1" have entirely different histories.

353 changed files with 857 additions and 9416 deletions

View File

@ -4,7 +4,7 @@ A new *powerful* modpack for [Minetest](http://minetest.net) 5.0.0+!
**I do not recommend using this modpack with technic, as this modpack aims to become an all new technology mod. However, compatibility might be added at a later date.** **I do not recommend using this modpack with technic, as this modpack aims to become an all new technology mod. However, compatibility might be added at a later date.**
**Depends on [fluid_lib](https://github.com/sirrobzeroone/fluid_lib)!** **Depends on [fluid_lib](https://gitlab.icynet.eu/evert/fluid_lib)!**
## Features ## Features

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,7 +1,3 @@
-- 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 if minetest.get_modpath("basic_materials") == nil then
-------------- --------------
@ -10,53 +6,23 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:oil_extract", { minetest.register_craftitem(":basic_materials:oil_extract", {
description = "Oil Extract", description = "Oil Extract",
inventory_image = "elepower_bm_oil_extract.png", inventory_image = "elepower_oil_extract.png",
}) })
minetest.register_craftitem(":basic_materials:paraffin", { minetest.register_craftitem(":basic_materials:paraffin", {
description = "Unprocessed Paraffin", description = "Unprocessed Paraffin",
inventory_image = "elepower_bm_paraffin.png", inventory_image = "elepower_paraffin.png",
}) })
minetest.register_alias("basic_materials:plastic_base", "basic_materials:paraffin") minetest.register_alias("basic_materials:plastic_base", "basic_materials:paraffin")
minetest.register_alias("homedecor:plastic_base", "basic_materials:paraffin") minetest.register_alias("homedecor:plastic_base", "basic_materials:paraffin")
minetest.register_alias("homedecor:paraffin", "basic_materials:paraffin") minetest.register_alias("homedecor:paraffin", "basic_materials:paraffin")
minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet") minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
minetest.register_alias("homedecor:plastic_strips", "basic_materials:plastic_strip") minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")
minetest.register_craftitem(":basic_materials:plastic_sheet", { minetest.register_craftitem(":basic_materials:plastic_sheet", {
description = "Plastic Sheet", description = "Plastic Sheet",
inventory_image = "elepower_bm_plastic_sheet.png", inventory_image = "elepower_plastic_sheet.png",
})
minetest.register_craftitem(":basic_materials:plastic_strip", {
description = "Plastic Strips",
groups = { strip = 1 },
inventory_image = "elepower_bm_strip.png^[colorize:#ffffff:200",
})
minetest.register_craftitem(":basic_materials:empty_spool", {
description = "Empty wire spool",
inventory_image = "elepower_bm_empty_spool.png"
})
minetest.register_craft( {
output = "basic_materials:plastic_strip 9",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
})
minetest.register_craft( {
output = "basic_materials:empty_spool 3",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "" , "basic_materials:plastic_sheet", "" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
}) })
minetest.register_craft({ minetest.register_craft({
@ -102,55 +68,23 @@ if minetest.get_modpath("basic_materials") == nil then
burntime = 30, burntime = 30,
}) })
---------- -----------------
-- WIRE -- -- COPPER WIRE --
---------- -----------------
minetest.register_craftitem(":basic_materials:copper_wire", { minetest.register_craftitem(":basic_materials:copper_wire", {
description = "Copper Wire", description = "Copper Wire",
inventory_image = "elepower_bm_copper_wire.png", inventory_image = "elepower_copper_wire.png",
groups = {copper = 1, wire = 1, component = 1} groups = {copper = 1, wire = 1, component = 1}
}) })
minetest.register_craft( { minetest.register_craft({
output = "basic_materials:copper_wire 2", output = "basic_materials:copper_wire 8",
type = "shapeless",
recipe = { recipe = {
epi.copper_ingot, {"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
"basic_materials:empty_spool", {"default:copper_ingot", "", "default:copper_ingot"},
"basic_materials:empty_spool", {"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"}
}, }
})
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 }
},
}) })
----------- -----------
@ -159,16 +93,16 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:motor", { minetest.register_craftitem(":basic_materials:motor", {
description = "Motor", description = "Motor",
inventory_image = "elepower_bm_motor.png", inventory_image = "elepower_motor.png",
groups = {motor = 1, component = 1} groups = {motor = 1, component = 1}
}) })
minetest.register_craft({ minetest.register_craft({
output = "basic_materials:motor 3", output = "basic_materials:motor 3",
recipe = { recipe = {
{epi.steel_ingot, "elepower_dynamics:wound_copper_coil", epi.steel_ingot}, {"default:steel_ingot", "elepower_dynamics:wound_copper_coil", "default:steel_ingot"},
{"basic_materials:copper_wire", "elepower_dynamics:wound_copper_coil", "basic_materials:copper_wire"}, {"basic_materials:copper_wire", "elepower_dynamics:wound_copper_coil", "basic_materials:copper_wire"},
{epi.steel_ingot, "elepower_dynamics:capacitor", epi.steel_ingot}, {"default:steel_ingot", "elepower_dynamics:capacitor", "default:steel_ingot"},
} }
}) })
@ -178,7 +112,7 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:silicon", { minetest.register_craftitem(":basic_materials:silicon", {
description = "Silicon", description = "Silicon",
inventory_image = "elepower_bm_silicon.png", inventory_image = "elepower_silicon.png",
groups = {silicon = 1, lump = 1} groups = {silicon = 1, lump = 1}
}) })
@ -191,54 +125,6 @@ if minetest.get_modpath("basic_materials") == nil then
inventory_image = "elepower_brass_ingot.png", inventory_image = "elepower_brass_ingot.png",
groups = {brass = 1, ingot = 1} groups = {brass = 1, ingot = 1}
}) })
-----------
-- STEEL --
-----------
minetest.register_craftitem(":basic_materials:steel_strip", {
description = "Steel Strip",
groups = { strip = 1 },
inventory_image = "elepower_bm_strip.png^[multiply:#ffffff"
})
minetest.register_craftitem(":basic_materials:steel_wire", {
description = "Spool of steel wire",
groups = { wire = 1 },
inventory_image = "elepower_bm_steel_wire.png"
})
minetest.register_craft( {
output = "basic_materials:steel_wire 2",
type = "shapeless",
recipe = {
epi.steel_ingot,
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
})
minetest.register_craft( {
output = "basic_materials:steel_strip 12",
recipe = {
{ "", epi.steel_ingot, "" },
{ epi.steel_ingot, "", "" },
},
})
else else
minetest.clear_craft({output = "basic_materials:brass_ingot"}) minetest.clear_craft({output = "basic_materials:brass_ingot"})
local steel_strip_def = table.copy(minetest.registered_items["basic_materials:steel_strip"])
steel_strip_def.inventory_image = "elepower_bm_strip.png^[multiply:#ffffff"
minetest.register_craftitem(":basic_materials:steel_strip", steel_strip_def)
local copper_strip_def = table.copy(minetest.registered_items["basic_materials:copper_strip"])
copper_strip_def.inventory_image = "elepower_bm_strip.png^[multiply:#fcb15f"
minetest.register_craftitem(":basic_materials:copper_strip", copper_strip_def)
local plastic_strip_def = table.copy(minetest.registered_items["basic_materials:plastic_strip"])
plastic_strip_def.inventory_image = "elepower_bm_strip.png^[colorize:#ffffff:200"
minetest.register_craftitem(":basic_materials:plastic_strip", plastic_strip_def)
end end

View File

@ -17,7 +17,6 @@ local list_def = {
{material = "viridisium", description = "Viridisium", color = "#5b9751", dust = true, plate = true, gear = true}, {material = "viridisium", description = "Viridisium", color = "#5b9751", dust = true, plate = true, gear = true},
{material = "zinc", description = "Zinc", color = "#598a9e", dust = true, plate = true}, {material = "zinc", description = "Zinc", color = "#598a9e", dust = true, plate = true},
{material = "coal", description = "Coal", color = "#1f1f1f", dust = true}, {material = "coal", description = "Coal", color = "#1f1f1f", dust = true},
{material = "mese", description = "Mese", color = "#fdff2d99", dust = true},
{material = "wood", description = "Wood", color = "#847454", dust = "Sawdust", gear = true} {material = "wood", description = "Wood", color = "#847454", dust = "Sawdust", gear = true}
} }
@ -51,11 +50,6 @@ end
function elepd.register_dust(mat, data) function elepd.register_dust(mat, data)
local mod = minetest.get_current_modname() local mod = minetest.get_current_modname()
local itemname = mod..":"..mat.."_dust" local itemname = mod..":"..mat.."_dust"
local image = "elepower_dust.png^[multiply:" .. data.color
if mat == "mese" then
image = "elepower_dust.png^[colorize:" .. data.color.."^[multiply:" .. data.color
end
data.item = itemname data.item = itemname
elepd.registered_dusts[mat] = data elepd.registered_dusts[mat] = data
@ -66,11 +60,9 @@ function elepd.register_dust(mat, data)
description = data.description description = data.description
end end
minetest.register_craftitem(itemname, { minetest.register_craftitem(itemname, {
description = description, description = description,
inventory_image = image, inventory_image = "elepower_dust.png^[multiply:" .. data.color,
groups = { groups = {
["dust_" .. mat] = 1, ["dust_" .. mat] = 1,
dust = 1 dust = 1

View File

@ -1,87 +1,15 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epg = ele.external.graphic
local eps = ele.external.sounds
-- Electric power -- Electric power
ele.register_conduit("elepower_dynamics:conduit", { ele.register_conduit("elepower_dynamics:conduit", {
description = "Power Conduit", description = "Power Conduit",
tiles = {"elepower_conduit.png"}, tiles = {"elepower_conduit.png"},
use_texture_alpha = "clip",
groups = {oddly_breakable_by_hand = 1, cracky = 1} groups = {oddly_breakable_by_hand = 1, cracky = 1}
}) })
ele.register_conduit("elepower_dynamics:conduit_wall", {
description = "Power Conduit Wall Pass Through",
tiles = {"elepower_conduit_wall.png"},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 1}
})
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
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
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
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
fluid_lib.register_transfer_node("elepower_dynamics:opaque_duct", { fluid_lib.register_transfer_node("elepower_dynamics:opaque_duct", {
description = "Opaque Fluid Duct", description = "Opaque Fluid Duct",
tiles = {"elepower_opaque_duct.png"}, tiles = {"elepower_opaque_duct.png"},
use_texture_alpha = "clip",
duct_density = 1/5, duct_density = 1/5,
groups = {oddly_breakable_by_hand = 1, cracky = 1} groups = {oddly_breakable_by_hand = 1, cracky = 1}
}) })

View File

@ -1,102 +1,97 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epi = ele.external.ing
local ept = ele.external.tools
--------------- ---------------
-- Overrides -- -- Overrides --
--------------- ---------------
-- Remove iron_lump -> steel_ingot, because dynamics adds iron ingot -- Remove iron_lump -> steel_ingot, because dynamics adds iron ingot
--minetest.clear_craft({type = "cooking", output = epi.steel_ingot}) --minetest.clear_craft({type = "cooking", output = "default:steel_ingot"})
----------- -----------
-- Tools -- -- Tools --
----------- -----------
if ept.enable_iron_lead_tools == true then
-- Pickaxes -- Pickaxes
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:pick_iron', output = 'elepower_dynamics:pick_iron',
recipe = { recipe = {
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'}, {'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
{'',epi.group_stick, ''}, {'', 'group:stick', ''},
{'',epi.group_stick, ''}, {'', 'group:stick', ''},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:pick_lead', output = 'elepower_dynamics:pick_lead',
recipe = { recipe = {
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'}, {'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
{'',epi.group_stick, ''}, {'', 'group:stick', ''},
{'',epi.group_stick, ''}, {'', 'group:stick', ''},
} }
}) })
-- Shovels -- Shovels
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:shovel_iron', output = 'elepower_dynamics:shovel_iron',
recipe = { recipe = {
{'elepower_dynamics:iron_ingot'}, {'elepower_dynamics:iron_ingot'},
{epi.group_stick}, {'group:stick'},
{epi.group_stick}, {'group:stick'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:shovel_lead', output = 'elepower_dynamics:shovel_lead',
recipe = { recipe = {
{'elepower_dynamics:lead_ingot'}, {'elepower_dynamics:lead_ingot'},
{epi.group_stick}, {'group:stick'},
{epi.group_stick}, {'group:stick'},
} }
}) })
-- Axes -- Axes
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:axe_iron', output = 'elepower_dynamics:axe_iron',
recipe = { recipe = {
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'}, {'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot',epi.group_stick}, {'elepower_dynamics:iron_ingot', 'group:stick'},
{'',epi.group_stick}, {'', 'group:stick'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:axe_lead', output = 'elepower_dynamics:axe_lead',
recipe = { recipe = {
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'}, {'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot',epi.group_stick}, {'elepower_dynamics:lead_ingot', 'group:stick'},
{'',epi.group_stick}, {'', 'group:stick'},
} }
}) })
-- Swords -- Swords
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:sword_iron', output = 'elepower_dynamics:sword_iron',
recipe = { recipe = {
{'elepower_dynamics:iron_ingot'}, {'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot'}, {'elepower_dynamics:iron_ingot'},
{epi.group_stick}, {'group:stick'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'elepower_dynamics:sword_lead', output = 'elepower_dynamics:sword_lead',
recipe = { recipe = {
{'elepower_dynamics:lead_ingot'}, {'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot'}, {'elepower_dynamics:lead_ingot'},
{epi.group_stick}, {'group:stick'},
} }
}) })
end
-- Bucket -- Bucket
minetest.register_craft({ minetest.register_craft({
output = 'bucket:bucket_empty', output = 'bucket:bucket_empty',
recipe = { recipe = {
@ -135,67 +130,12 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = "elepower_dynamics:conduit_wall 1",
recipe = {
{"" ,"elepower_dynamics:lead_plate",""},
{"elepower_dynamics:lead_plate","elepower_dynamics:conduit" ,"elepower_dynamics:lead_plate"},
{"" ,"elepower_dynamics:lead_plate",""}
}
})
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
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
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
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
-- Opaque Fluid Duct -- Opaque Fluid Duct
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:opaque_duct 3", output = "elepower_dynamics:opaque_duct 3",
recipe = { recipe = {
{"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"}, {"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"}, {"elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot", "elepower_dynamics:lead_ingot"},
} }
}) })
@ -204,9 +144,9 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:portable_tank", output = "elepower_dynamics:portable_tank",
recipe = { recipe = {
{epi.glass,"elepower_dynamics:fluid_duct",epi.glass}, {"default:glass", "elepower_dynamics:fluid_duct", "default:glass"},
{epi.glass,epi.glass,epi.glass}, {"default:glass", "default:glass", "default:glass"},
{epi.bronze_ingot,epi.bronze_ingot,epi.bronze_ingot}, {"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
} }
}) })
@ -217,18 +157,18 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:wound_copper_coil", output = "elepower_dynamics:wound_copper_coil",
recipe = { recipe = {
{"" ,epi.copper_ingot , ""}, {"", "default:copper_ingot", ""},
{epi.copper_ingot, "elepower_dynamics:iron_ingot", epi.copper_ingot}, {"default:copper_ingot", "elepower_dynamics:iron_ingot", "default:copper_ingot"},
{"" , epi.copper_ingot , ""} {"", "default:copper_ingot", ""}
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:wound_copper_coil", output = "elepower_dynamics:wound_copper_coil",
recipe = { recipe = {
{"" ,"basic_materials:copper_wire", ""}, {"", "basic_materials:copper_wire", ""},
{"basic_materials:copper_wire","elepower_dynamics:iron_ingot", "basic_materials:copper_wire"}, {"basic_materials:copper_wire", "elepower_dynamics:iron_ingot", "basic_materials:copper_wire"},
{"" ,"basic_materials:copper_wire", ""} {"", "basic_materials:copper_wire", ""}
}, },
replacements = { replacements = {
{"basic_materials:copper_wire", "basic_materials:empty_spool"}, {"basic_materials:copper_wire", "basic_materials:empty_spool"},
@ -241,9 +181,9 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:wound_silver_coil", output = "elepower_dynamics:wound_silver_coil",
recipe = { recipe = {
{"" , epi.silver_ingot, ""}, {"", "moreores:silver_ingot", ""},
{epi.silver_ingot, "elepower_dynamics:zinc_ingot",epi.silver_ingot}, {"moreores:silver_ingot", "elepower_dynamics:zinc_ingot", "moreores:silver_ingot"},
{"" , epi.silver_ingot, ""} {"", "moreores:silver_ingot", ""}
} }
}) })
@ -273,8 +213,8 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:tree_tap", output = "elepower_dynamics:tree_tap",
recipe = { recipe = {
{epi.steel_ingot, epi.steel_ingot, epi.steel_ingot}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"", "", epi.steel_ingot}, {"", "", "default:steel_ingot"},
} }
}) })
@ -282,8 +222,8 @@ minetest.register_craft({
output = "elepower_dynamics:chip 6", output = "elepower_dynamics:chip 6",
recipe = { recipe = {
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}, {"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
{epi.mese_crystal_fragment,epi.group_color_black, epi.mese_crystal_fragment}, {"default:mese_crystal_fragment", "group:color_black", "default:mese_crystal_fragment"},
{epi.copper_ingot, epi.silver_ingot, epi.copper_ingot}, {"default:copper_ingot", "moreores:silver_ingot", "default:copper_ingot"},
} }
}) })
@ -291,17 +231,17 @@ minetest.register_craft({
output = "elepower_dynamics:capacitor 6", output = "elepower_dynamics:capacitor 6",
recipe = { recipe = {
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}, {"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
{epi.silver_ingot, epi.mese_crystal, epi.silver_ingot}, {"moreores:silver_ingot", "default:mese_crystal", "moreores:silver_ingot"},
{epi.copper_ingot, epi.group_color_violet, epi.copper_ingot}, {"default:copper_ingot", "group:color_violet", "default:copper_ingot"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:pcb_blank 3", output = "elepower_dynamics:pcb_blank 3",
recipe = { recipe = {
{epi.copper_ingot,epi.copper_ingot, epi.copper_ingot}, {"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{epi.copper_ingot,epi.mese_crystal, epi.copper_ingot}, {"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
{epi.gold_ingot ,epi.gold_ingot, epi.gold_ingot}, {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
} }
}) })
@ -309,7 +249,7 @@ minetest.register_craft({
output = "elepower_dynamics:pcb_blank", output = "elepower_dynamics:pcb_blank",
recipe = { recipe = {
{"", "elepower_dynamics:copper_plate", ""}, {"", "elepower_dynamics:copper_plate", ""},
{epi.mese_crystal_fragment, epi.mese_crystal_fragment, epi.mese_crystal_fragment}, {"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
{"", "elepower_dynamics:gold_plate", ""}, {"", "elepower_dynamics:gold_plate", ""},
} }
}) })
@ -322,16 +262,16 @@ minetest.register_craft({
"elepower_dynamics:copper_dust", "elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust", "elepower_dynamics:copper_dust",
"elepower_dynamics:copper_dust", "elepower_dynamics:copper_dust",
epi.seed_wheat, "farming:seed_wheat",
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:uv_bulb", output = "elepower_dynamics:uv_bulb",
recipe = { recipe = {
{epi.group_color_blue, epi.group_color_violet, epi.group_color_blue}, {"group:color_blue", "group:color_violet", "group:color_blue"},
{"", epi.mese_lamp, ""}, {"", "default:meselamp", ""},
{"", epi.glass, ""}, {"", "default:glass", ""},
} }
}) })
@ -340,9 +280,9 @@ minetest.clear_craft({output = "fluid_transfer:fluid_transfer_pump"})
minetest.register_craft({ minetest.register_craft({
output = "fluid_transfer:fluid_transfer_pump 3", output = "fluid_transfer:fluid_transfer_pump 3",
recipe = { recipe = {
{epi.group_stone, "elepower_dynamics:control_circuit",epi.group_stone}, {"group:stone", "elepower_dynamics:control_circuit", "group:stone"},
{"elepower_dynamics:electrum_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:electrum_gear"}, {"elepower_dynamics:electrum_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:electrum_gear"},
{epi.group_stone, "elepower_dynamics:fluid_duct", epi.group_stone}, {"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
} }
}) })
@ -350,26 +290,26 @@ minetest.register_craft({
output = "elepower_dynamics:battery 2", output = "elepower_dynamics:battery 2",
recipe = { recipe = {
{"elepower_dynamics:zinc_dust", "elepower_dynamics:graphite_rod", "elepower_dynamics:lead_dust"}, {"elepower_dynamics:zinc_dust", "elepower_dynamics:graphite_rod", "elepower_dynamics:lead_dust"},
{"elepower_dynamics:tin_plate", epi.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", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:lcd_panel", output = "elepower_dynamics:lcd_panel",
recipe = { recipe = {
{epi.group_color_red, epi.group_color_green, epi.group_color_blue}, {"group:color_red", "group:color_green", "group:color_blue"},
{epi.silver_ingot, "elepower_dynamics:wound_copper_coil", epi.silver_ingot}, {"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"},
{"", epi.mese_lamp, ""} {"", "default:meselamp", ""}
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "elepower_dynamics:pv_cell", output = "elepower_dynamics:pv_cell",
recipe = { recipe = {
{epi.glass, epi.glass, epi.glass}, {"default:glass", "default:glass", "default:glass"},
{epi.group_color_blue, "elepower_dynamics:silicon_wafer_doped", epi.group_color_blue}, {"group:color_blue", "elepower_dynamics:silicon_wafer_doped", "group:color_blue"},
{epi.mese_crystal_fragment, "elepower_dynamics:wound_copper_coil", epi.mese_crystal_fragment} {"default:mese_crystal_fragment", "elepower_dynamics:wound_copper_coil", "default:mese_crystal_fragment"}
} }
}) })
@ -378,7 +318,7 @@ minetest.register_craft({
recipe = { recipe = {
{"elepower_dynamics:chip", "elepower_dynamics:chip", "elepower_dynamics:chip"}, {"elepower_dynamics:chip", "elepower_dynamics:chip", "elepower_dynamics:chip"},
{"elepower_dynamics:capacitor", "elepower_dynamics:pcb", "elepower_dynamics:capacitor"}, {"elepower_dynamics:capacitor", "elepower_dynamics:pcb", "elepower_dynamics:capacitor"},
{epi.copper_ingot, epi.mese_crystal, epi.copper_ingot}, {"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
} }
}) })
@ -395,7 +335,7 @@ minetest.register_craft({
recipe = { 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"}, {"elepower_dynamics:steel_plate", "", "elepower_dynamics:steel_plate"},
{"" ,"elepower_dynamics:steel_plate", ""} {"", "elepower_dynamics:steel_plate", ""}
} }
}) })
@ -406,12 +346,12 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "elepower_dynamics:iron_ingot", output = "elepower_dynamics:iron_ingot",
recipe = epi.iron_lump recipe = "default:iron_lump"
}) })
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = epi.steel_ingot, output = "default:steel_ingot",
recipe = "elepower_dynamics:iron_ingot" recipe = "elepower_dynamics:iron_ingot"
}) })
@ -451,7 +391,7 @@ for mat, data in pairs(elepd.registered_gears) do
local immebreak = false local immebreak = false
if mat == "wood" then if mat == "wood" then
found = epi.group_stick found = "group:stick"
immebreak = true immebreak = true
end end

View File

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

View File

@ -1,15 +1,11 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
-- Etching Acid -- Etching Acid
ele.helpers.register_liquid("etching_acid", { ele.helpers.register_liquid("etching_acid", {
description = "Etching Acid", description = "Etching Acid",
tiles = {"elepower_etching_acid.png"}, tiles = {"elepower_etching_acid.png"},
special_tiles = {"elepower_etching_acid.png", "elepower_etching_acid.png"}, special_tiles = {"elepower_etching_acid.png", "elepower_etching_acid.png"},
use_texture_alpha = "blend", alpha = 200,
liquid_viscosity = 4, liquid_viscosity = 4,
damage_per_second = 4, damage_per_second = 4,
post_effect_color = {a = 103, r = 65, g = 8, b = 0}, post_effect_color = {a = 103, r = 65, g = 8, b = 0},
@ -25,7 +21,7 @@ ele.helpers.register_liquid("lithium", {
special_tiles = {"elepower_lithium.png", "elepower_lithium.png"}, special_tiles = {"elepower_lithium.png", "elepower_lithium.png"},
liquid_viscosity = 4, liquid_viscosity = 4,
damage_per_second = 1, damage_per_second = 1,
use_texture_alpha = "blend", alpha = 200,
gas_form = "elepower_dynamics:lithium_gas", gas_form = "elepower_dynamics:lithium_gas",
post_effect_color = {a = 103, r = 229, g = 227, b = 196}, post_effect_color = {a = 103, r = 229, g = 227, b = 196},
groups = {lithium = 1, liquid = 3}, groups = {lithium = 1, liquid = 3},
@ -44,7 +40,7 @@ bucket.register_liquid("elepower_dynamics:lithium_source", "elepower_dynamics:li
minetest.register_node("elepower_dynamics:steam", { minetest.register_node("elepower_dynamics:steam", {
description = "Steam", description = "Steam",
groups = {not_in_creative_inventory = 1, gas = 1}, groups = {not_in_creative_inventory = 1, gas = 1},
liquid_form = epr.water_source, liquid_form = "default:water_source",
tiles = {"elepower_steam.png"}, tiles = {"elepower_steam.png"},
}) })

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 998 B

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 849 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 467 B

View File

@ -1,12 +1,7 @@
-- see elepower_papi >> external_nodes_items.lua for explanation -- Pickaxes
-- shorten table ref
local eps = ele.external.sounds
if ele.external.tools.enable_iron_lead_tools == true then minetest.register_tool("elepower_dynamics:pick_iron", {
-- Pickaxes
minetest.register_tool("elepower_dynamics:pick_iron", {
description = "Iron Pickaxe", description = "Iron Pickaxe",
inventory_image = "elepower_tool_ironpick.png", inventory_image = "elepower_tool_ironpick.png",
tool_capabilities = { tool_capabilities = {
@ -17,10 +12,10 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("elepower_dynamics:pick_lead", { minetest.register_tool("elepower_dynamics:pick_lead", {
description = "Lead Pickaxe", description = "Lead Pickaxe",
inventory_image = "elepower_tool_leadpick.png", inventory_image = "elepower_tool_leadpick.png",
tool_capabilities = { tool_capabilities = {
@ -31,12 +26,12 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=5}, damage_groups = {fleshy=5},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
-- Shovels -- Shovels
minetest.register_tool("elepower_dynamics:shovel_iron", { minetest.register_tool("elepower_dynamics:shovel_iron", {
description = "Iron Shovel", description = "Iron Shovel",
inventory_image = "elepower_tool_ironshovel.png", inventory_image = "elepower_tool_ironshovel.png",
wield_image = "elepower_tool_ironshovel.png^[transformR90", wield_image = "elepower_tool_ironshovel.png^[transformR90",
@ -48,10 +43,10 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=3}, damage_groups = {fleshy=3},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("elepower_dynamics:shovel_lead", { minetest.register_tool("elepower_dynamics:shovel_lead", {
description = "Lead Shovel", description = "Lead Shovel",
inventory_image = "elepower_tool_leadshovel.png", inventory_image = "elepower_tool_leadshovel.png",
wield_image = "elepower_tool_leadshovel.png^[transformR90", wield_image = "elepower_tool_leadshovel.png^[transformR90",
@ -63,12 +58,12 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
-- Axes -- Axes
minetest.register_tool("elepower_dynamics:axe_iron", { minetest.register_tool("elepower_dynamics:axe_iron", {
description = "Iron Axe", description = "Iron Axe",
inventory_image = "elepower_tool_ironaxe.png", inventory_image = "elepower_tool_ironaxe.png",
tool_capabilities = { tool_capabilities = {
@ -79,10 +74,10 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=4}, damage_groups = {fleshy=4},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("elepower_dynamics:axe_lead", { minetest.register_tool("elepower_dynamics:axe_lead", {
description = "Lead Axe", description = "Lead Axe",
inventory_image = "elepower_tool_leadaxe.png", inventory_image = "elepower_tool_leadaxe.png",
tool_capabilities = { tool_capabilities = {
@ -93,12 +88,12 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=5}, damage_groups = {fleshy=5},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
-- Swords -- Swords
minetest.register_tool("elepower_dynamics:sword_iron", { minetest.register_tool("elepower_dynamics:sword_iron", {
description = "Iron Sword", description = "Iron Sword",
inventory_image = "elepower_tool_ironsword.png", inventory_image = "elepower_tool_ironsword.png",
tool_capabilities = { tool_capabilities = {
@ -109,10 +104,10 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=5}, damage_groups = {fleshy=5},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
minetest.register_tool("elepower_dynamics:sword_lead", { minetest.register_tool("elepower_dynamics:sword_lead", {
description = "Lead Sword", description = "Lead Sword",
inventory_image = "elepower_tool_leadsword.png", inventory_image = "elepower_tool_leadsword.png",
tool_capabilities = { tool_capabilities = {
@ -123,7 +118,5 @@ if ele.external.tools.enable_iron_lead_tools == true then
}, },
damage_groups = {fleshy=7}, damage_groups = {fleshy=7},
}, },
sound = {breaks = eps.tool_breaks}, sound = {breaks = "default_tool_breaks"},
}) })
end

View File

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

View File

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

View File

@ -5,7 +5,7 @@ ele.helpers.register_liquid("tree_sap", {
description = "Tree Sap", description = "Tree Sap",
tiles = {"elefarming_tree_sap.png"}, tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"}, special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
use_texture_alpha = "blend", alpha = 200,
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 103, r = 84, g = 34, b = 0}, post_effect_color = {a = 103, r = 84, g = 34, b = 0},
groups = {tree_sap = 3, liquid = 3, raw_bio = 1, tree_fluid = 1}, groups = {tree_sap = 3, liquid = 3, raw_bio = 1, tree_fluid = 1},
@ -17,7 +17,7 @@ ele.helpers.register_liquid("resin", {
description = "Resin", description = "Resin",
tiles = {"elefarming_tree_sap.png"}, tiles = {"elefarming_tree_sap.png"},
special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"}, special_tiles = {"elefarming_tree_sap.png", "elefarming_tree_sap.png"},
use_texture_alpha = "blend", alpha = 200,
liquid_viscosity = 8, liquid_viscosity = 8,
post_effect_color = {a = 103, r = 84, g = 34, b = 0}, post_effect_color = {a = 103, r = 84, g = 34, b = 0},
groups = {resin = 3, liquid = 3, raw_bio = 1, tree_fluid = 1}, groups = {resin = 3, liquid = 3, raw_bio = 1, tree_fluid = 1},
@ -29,7 +29,7 @@ ele.helpers.register_liquid("biomass", {
description = "Biomass", description = "Biomass",
tiles = {"elefarming_biomass.png"}, tiles = {"elefarming_biomass.png"},
special_tiles = {"elefarming_biomass.png", "elefarming_biomass.png"}, special_tiles = {"elefarming_biomass.png", "elefarming_biomass.png"},
use_texture_alpha = "blend", alpha = 200,
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 103, r = 0, g = 42, b = 0}, post_effect_color = {a = 103, r = 0, g = 42, b = 0},
groups = {biomass = 3, liquid = 3}, groups = {biomass = 3, liquid = 3},
@ -41,7 +41,7 @@ ele.helpers.register_liquid("biofuel", {
description = "Biofuel", description = "Biofuel",
tiles = {"elefarming_biofuel.png"}, tiles = {"elefarming_biofuel.png"},
special_tiles = {"elefarming_biofuel.png", "elefarming_biofuel.png"}, special_tiles = {"elefarming_biofuel.png", "elefarming_biofuel.png"},
use_texture_alpha = "blend", alpha = 200,
liquid_viscosity = 7, liquid_viscosity = 7,
post_effect_color = {a = 103, r = 255, g = 163, b = 0}, post_effect_color = {a = 103, r = 255, g = 163, b = 0},
groups = {biofuel = 3, liquid = 3}, groups = {biofuel = 3, liquid = 3},

View File

@ -1,13 +1,9 @@
-- 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) local function get_formspec(timer, biomass_buffer, output_buffer)
return "size[8,8.5]".. return "size[8,8.5]"..
epr.gui_bg.. default.gui_bg..
epr.gui_bg_img.. default.gui_bg_img..
epr.gui_slots.. default.gui_slots..
ele.formspec.fluid_bar(0, 0.75, biomass_buffer).. ele.formspec.fluid_bar(0, 0.75, biomass_buffer)..
ele.formspec.fluid_bar(7, 0.75, output_buffer).. ele.formspec.fluid_bar(7, 0.75, output_buffer)..
"list[context;src;1,0.5;3,3;]".. "list[context;src;1,0.5;3,3;]"..
@ -18,7 +14,7 @@ local function get_formspec(timer, biomass_buffer, output_buffer)
"listring[current_player;main]".. "listring[current_player;main]"..
"listring[context;src]".. "listring[context;src]"..
"listring[current_player;main]".. "listring[current_player;main]"..
epr.get_hotbar_bg(0, 4.25) default.get_hotbar_bg(0, 4.25)
end end
local function is_plant(itemname) local function is_plant(itemname)

View File

@ -1,8 +1,4 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
-- How many seconds there are between runs -- How many seconds there are between runs
local HARVESTER_TICK = 10 local HARVESTER_TICK = 10
@ -85,9 +81,9 @@ end
local function get_formspec(timer, power, sludge, state) local function get_formspec(timer, power, sludge, state)
return "size[8,8.5]".. return "size[8,8.5]"..
epr.gui_bg.. default.gui_bg..
epr.gui_bg_img.. default.gui_bg_img..
epr.gui_slots.. default.gui_slots..
ele.formspec.state_switcher(7, 2.5, state).. ele.formspec.state_switcher(7, 2.5, state)..
ele.formspec.power_meter(power).. ele.formspec.power_meter(power)..
ele.formspec.fluid_bar(7, 0, sludge).. ele.formspec.fluid_bar(7, 0, sludge)..
@ -97,7 +93,7 @@ local function get_formspec(timer, power, sludge, state)
"list[current_player;main;0,5.5;8,3;8]".. "list[current_player;main;0,5.5;8,3;8]"..
"listring[context;dst]".. "listring[context;dst]"..
"listring[current_player;main]".. "listring[current_player;main]"..
epr.get_hotbar_bg(0, 4.25) default.get_hotbar_bg(0, 4.25)
end end
local function on_timer(pos, elapsed) local function on_timer(pos, elapsed)

View File

@ -1,9 +1,4 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local eps = ele.external.sounds
local epi = ele.external.ing
-- How many seconds there are between runs -- How many seconds there are between runs
local PLANTER_TICK = 10 local PLANTER_TICK = 10
@ -57,30 +52,21 @@ local ranges = {
} }
local function get_formspec(timer, power, state) local function get_formspec(timer, power, state)
local layout_tt = "Item placed here\n will be planted\nout in a 3x3 area"
local layout_bi = "elepower_planter_layout.png"
return "size[8,10]".. return "size[8,10]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
ele.formspec.power_meter(power).. ele.formspec.power_meter(power)..
ele.formspec.state_switcher(7, 0, state).. ele.formspec.state_switcher(7, 0, state)..
ele.formspec.create_bar(1, 0, 100 - timer, "#00ff11", true).. ele.formspec.create_bar(1, 0, 100 - timer, "#00ff11", true)..
"list[context;layout;2.5,0;3,3;]".. "list[context;layout;2.5,0;3,3;]"..
"image[2.5,0;1,1;"..layout_bi.."]"..
"image[3.5,0;1,1;"..layout_bi.."]"..
"image[4.5,0;1,1;"..layout_bi.."]"..
"image[2.5,1;1,1;"..layout_bi.."]"..
"image[3.5,1;1,1;"..layout_bi.."]"..
"image[4.5,1;1,1;"..layout_bi.."]"..
"image[2.5,2;1,1;"..layout_bi.."]"..
"image[3.5,2;1,1;"..layout_bi.."]"..
"image[4.5,2;1,1;"..layout_bi.."]"..
"tooltip[2.5,0;4.5,2;"..layout_tt..";"..eletome.tooltip_color.."]"..
"list[context;src;0,3.5;8,2;]".. "list[context;src;0,3.5;8,2;]"..
"tooltip[0,3.5;8,2; Place stacks of items\n here to keep planter\nsupplied with items to plant;"..eletome.tooltip_color.."]"..
"list[current_player;main;0,5.75;8,1;]".. "list[current_player;main;0,5.75;8,1;]"..
"list[current_player;main;0,7;8,3;8]".. "list[current_player;main;0,7;8,3;8]"..
"listring[current_player;main]".. "listring[current_player;main]"..
"listring[context;src]".. "listring[context;src]"..
"listring[current_player;main]" "listring[current_player;main]"..
default.get_hotbar_bg(0, 5.75)
end end
local function can_dig(pos, player) local function can_dig(pos, player)
@ -132,7 +118,6 @@ local function allow_metadata_inventory_take(pos, listname, index, stack, player
end end
local function plant(pos, range, stack, inv) local function plant(pos, range, stack, inv)
local planted = 0 local planted = 0
local range_st = vector.add(ranges[range][1], pos) local range_st = vector.add(ranges[range][1], pos)
local range_end = vector.add(ranges[range][2], pos) local range_end = vector.add(ranges[range][2], pos)
@ -147,7 +132,6 @@ local function plant(pos, range, stack, inv)
end end
local to_plant = stack:get_name() local to_plant = stack:get_name()
local to_place = nil local to_place = nil
local amount = 0 local amount = 0
local till = true local till = true
@ -172,7 +156,6 @@ local function plant(pos, range, stack, inv)
for z = range_st.z, range_end.z do for z = range_st.z, range_end.z do
if amount == 0 then break end if amount == 0 then break end
local place_pos = {x = x, y = range_st.y + y_top, z = z} local place_pos = {x = x, y = range_st.y + y_top, z = z}
local base_pos = {x = place_pos.x, y = place_pos.y - 1, z = place_pos.z} local base_pos = {x = place_pos.x, y = place_pos.y - 1, z = place_pos.z}
local base_node = minetest.get_node_or_nil(base_pos) local base_node = minetest.get_node_or_nil(base_pos)
@ -185,26 +168,26 @@ local function plant(pos, range, stack, inv)
if (regN[base_node.name].soil == nil or if (regN[base_node.name].soil == nil or
regN[base_node.name].soil.wet == nil or regN[base_node.name].soil.wet == nil or
regN[base_node.name].soil.dry == nil) and regN[base_node.name].soil.dry == nil) and
regN[epi.farming_soil] == nil then regN["farming:soil"] == nil then
till = false till = false
end end
if till then if till then
minetest.sound_play(eps.dig_crumbly, { minetest.sound_play("default_dig_crumbly", {
pos = base_pos, pos = base_pos,
gain = 0.5, gain = 0.5,
}) })
local soil = regN[base_node.name].soil local soil = regN[base_node.name].soil
local wet_soil = epi.farming_soil_wet local wet_soil = "farming:soil_wet"
-- Determine soil name -- Determine soil name
-- Make sure we don't replace wet soil -- Make sure we don't replace wet soil
if soil then if soil then
wet_soil = soil.wet or epi_farming_soil_wet wet_soil = soil.wet or "farming:soil_wet"
soil = soil.dry soil = soil.dry
else else
soil = epi.farming_soil soil = "farming:soil"
end end
if base_node.name ~= soil and base_node.name ~= wet_soil then if base_node.name ~= soil and base_node.name ~= wet_soil then
@ -258,7 +241,6 @@ local function on_timer(pos, elapsed)
if work == PLANTER_TICK then if work == PLANTER_TICK then
local planted = 0 local planted = 0
for index, slot in ipairs(inv:get_list("layout")) do for index, slot in ipairs(inv:get_list("layout")) do
if planted >= 9 then break end if planted >= 9 then break end
if not slot:is_empty() then if not slot:is_empty() then
planted = planted + plant(pos, index, slot, inv) planted = planted + plant(pos, index, slot, inv)

View File

@ -1,8 +1,4 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epr = ele.external.ref
-- How many seconds there are between runs -- How many seconds there are between runs
local SPAWNER_TICK = 10 local SPAWNER_TICK = 10
@ -95,9 +91,9 @@ end
local function get_formspec(timer, power, state) local function get_formspec(timer, power, state)
return "size[8,8.5]".. return "size[8,8.5]"..
epr.gui_bg.. default.gui_bg..
epr.gui_bg_img.. default.gui_bg_img..
epr.gui_slots.. default.gui_slots..
ele.formspec.power_meter(power).. ele.formspec.power_meter(power)..
ele.formspec.state_switcher(7, 0, state).. ele.formspec.state_switcher(7, 0, state)..
ele.formspec.create_bar(1, 0, 100 - timer, "#00ff11", true).. ele.formspec.create_bar(1, 0, 100 - timer, "#00ff11", true)..
@ -108,7 +104,7 @@ local function get_formspec(timer, power, state)
"listring[current_player;main]".. "listring[current_player;main]"..
"listring[context;src]".. "listring[context;src]"..
"listring[current_player;main]".. "listring[current_player;main]"..
epr.get_hotbar_bg(0, 4.25) default.get_hotbar_bg(0, 4.25)
end end
local function on_timer(pos, elapsed) local function on_timer(pos, elapsed)

View File

@ -1,16 +1,12 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local epi = ele.external.ing
local CAPACITY = 8000 local CAPACITY = 8000
local fluid_table = { local fluid_table = {
[epi.tree] = { fpc = 100, fluid = "elepower_farming:tree_sap_source" }, ["default:tree"] = { fpc = 100, fluid = "elepower_farming:tree_sap_source" },
[epi.jungle_tree] = { fpc = 50, fluid = "elepower_farming:resin_source" }, ["default:jungletree"] = { fpc = 50, fluid = "elepower_farming:resin_source" },
[epi.pine_tree] = { fpc = 100, fluid = "elepower_farming:resin_source" }, ["default:pine_tree"] = { fpc = 100, fluid = "elepower_farming:resin_source" },
[epi.acacia_tree] = { fpc = 50, fluid = "elepower_farming:resin_source" }, ["default:acacia_tree"] = { fpc = 50, fluid = "elepower_farming:resin_source" },
[epi.aspen_tree] = { fpc = 50, fluid = "elepower_farming:resin_source" }, ["default:aspen_tree"] = { fpc = 50, fluid = "elepower_farming:resin_source" },
} }
minetest.register_node("elepower_farming:tree_extractor", { minetest.register_node("elepower_farming:tree_extractor", {

Some files were not shown because too many files have changed in this diff Show More