Compare commits

...

30 Commits

Author SHA1 Message Date
Sirrobzeroone
671546f103
Merge pull request #11 from Awkanimus/main
Tome crash fix and fix acidic_compound
2023-01-22 20:12:40 +11:00
Awkanimus
88d40fb89d Fix acidic compound creation when right clicking water 2023-01-09 19:05:19 -05:00
Awkanimus
cfca4304c0 Fix tome edge-case when node_name is not found. 2023-01-09 19:05:07 -05:00
Sirrobzeroone
5d14083f2c Standalone Powercell, Lighting Fix's
Powercells can now power machines so long as they are charged up and connected to a machine/light bulb etc ie powercells can be a provider on there own now.

Lighting fixed a few issues:
Lights weren't getting power if you added them to a network while it was on powercell power rather than provider power.
Floodlights had the wrong drops listed
2021-09-26 22:35:44 +10:00
Sirrobzeroone
12eacba8f6 Floodlight and Powercell Fix
Floodlights reverted to Incandescent on active/inactive change - Thanks Yeti
Powercells wouldn't supply to machines in "Out of Power" state - Thanks Meise21
Both issues should now be resolved

Also pushed some changes I made to external_nodes_items.lua doesn't affect functionality purely tidy up
2021-09-26 10:11:12 +10:00
Sirrobzeroone
3d28ad39b5 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
2021-08-11 20:25:00 +10:00
Sirrobzeroone
56d89df934 elepower lighting initial and elepower inventory update
Breaking Update:
~ elepower lighting added
  ~ light bulbs
  ~ flood lights
  ~ led panels
  ~ decorative shades
  ~ added to tome
~ improvements to dynamics inventory images
~ improvements to machine recipe storage
~ tome support for new recipes
~ additional elepower conduit types added with lighting and base
~ changes to compressing from 1 recipe slot to 2 slots (potential breaking change)
2021-08-08 20:39:20 +10:00
Sirrobzeroone
209b8a7596 Guide/Tome - Add Wind Turbine Help
~ Also fix minor wind turbine bugs and limit to 100 epu's max of power gen
~ Also add Info for simple machines and clean up icons
2021-07-02 13:56:57 +10:00
Sirrobzeroone
9ccb2becb8 Tome/Guide: Shrink Image file sizes
Also remove xcf files to much bloat +4mb
2021-07-01 22:52:33 +10:00
Sirrobzeroone
dae174111a Tome/Guide - Add Auto Planter Help/Info
- minor addition to planter UI
2021-07-01 22:05:07 +10:00
Sirrobzeroone
6c59fdc6e0 Fix Minor bug in back button
remove trailing white space as well
2021-07-01 09:39:49 +10:00
Sirrobzeroone
6988330919 Remove debug line.... 2021-07-01 09:30:59 +10:00
Sirrobzeroone
0c13366b5a Tome Functionality - Add Back Button
~ Add back button to Tome/Guide
~ Move Help and Instructions into there own lua files
~ Fix minor mistake in electrolyzer tome txt Biofuel to Biomass
2021-07-01 09:25:37 +10:00
Sirrobzeroone
2e5298d40f Tome Addition - Help Upgrading Machines
Added a help page about upgrading machines and instructions on how to create a soldering iron.
2021-06-30 17:44:32 +10:00
Sirrobzeroone
dfbe1c8c62 Guide/Tome - add help for creating your first PCB
Small guide added to help show how to create the first PCB's the player will need
2021-06-28 18:04:44 +10:00
Sirrobzeroone
b498fbb4fc Minor Tome corrections 2021-06-27 22:58:38 +10:00
Sirrobzeroone
2897e859b9 User Guide/Tome additions
electrolyzer instructions
Simple getting started guide
Some new page layouts that can be used for additional information
2021-06-27 22:48:07 +10:00
Sirrobzeroone
0a7cc0ce80 Book/Tome update
Initial upload of Book/Tome of instructions of how to use elepower
Book will be given on initial logon
2021-06-25 18:06:16 +10:00
Sirrobzeroone
f72ce33ca0 Documentation and Icons initial
Adds some Icons and tooltips to machines
Adds elepower tome - user guide
2021-06-19 07:49:57 +10:00
Sirrobzeroone
aec0065987 comment out debug 2021-06-14 11:03:39 +10:00
Sirrobzeroone
56366fec62 Left network debug on 2021-06-14 10:48:45 +10:00
Sirrobzeroone
2627e0c763 Network fixes - Powercells/Batteries
- Powercells/Batteries now distribute power when Powergen for network is 0
- Powercells/Batteries will only distribute power to "Active" machines lowering network drain
- All machines/Powercells-Batteries act as power pass through ie no longer a network end point - note this only happened on reload of game they worked like this when laid out this way just game save/reload caused machines/Powercells to act as end point.
- fixed Issue max_stack to stack_max, https://gitlab.icynet.eu/evert/elepower/-/issues/5
2021-06-14 08:29:25 +10:00
Sirrobzeroone
e489f0c714 Update network.lua 2021-06-12 13:51:26 +10:00
Sirrobzeroone
b9de6b6ef6 Power Network Fixes
Fix power distribution so its spread evenly across all machines
Fix glitch when removing machines from network other machines can stop working
2021-06-12 13:47:52 +10:00
Sirrobzeroone
b9ca4fc778 Liquid "alpha" updated to blend
The liquids don't look like liquids so somethings still a bit off but at least the warnings are gone
2021-06-10 20:31:53 +10:00
Sirrobzeroone
7cc6a489df Minetest wants a blank init.lua in doco 2021-06-10 19:42:53 +10:00
Sirrobzeroone
bfb33c5805 Fix alpha texture warning
Change for  5.4 mesh/nodebox nodes now need a valid "use_texture_alpha" setting or logs fill up with warnings.
2021-06-10 19:19:07 +10:00
Sirrobzeroone
f9d41a1425 Minor Doc Update
Found Invar and Electrum
2021-06-10 17:39:22 +10:00
Sirrobzeroone
c33c2361d7 Document additions
Shrink Flow diagram file size
Add raw drawio file openable @ https://app.diagrams.net/
2021-06-10 16:02:44 +10:00
Sirrobzeroone
79882877af Start to add Documentation
Overview flow diagrams showing craft items and machines
2021-06-10 15:56:32 +10:00
353 changed files with 9418 additions and 859 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.**
**Depends on [fluid_lib](https://gitlab.icynet.eu/evert/fluid_lib)!**
**Depends on [fluid_lib](https://github.com/sirrobzeroone/fluid_lib)!**
## Features

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

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
--------------
@ -6,23 +10,53 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:oil_extract", {
description = "Oil Extract",
inventory_image = "elepower_oil_extract.png",
inventory_image = "elepower_bm_oil_extract.png",
})
minetest.register_craftitem(":basic_materials:paraffin", {
description = "Unprocessed Paraffin",
inventory_image = "elepower_paraffin.png",
inventory_image = "elepower_bm_paraffin.png",
})
minetest.register_alias("basic_materials: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:plastic_sheeting", "basic_materials:plastic_sheet")
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_strips", "basic_materials:plastic_strip")
minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")
minetest.register_craftitem(":basic_materials:plastic_sheet", {
description = "Plastic Sheet",
inventory_image = "elepower_plastic_sheet.png",
inventory_image = "elepower_bm_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({
@ -68,23 +102,55 @@ if minetest.get_modpath("basic_materials") == nil then
burntime = 30,
})
-----------------
-- COPPER WIRE --
-----------------
----------
-- WIRE --
----------
minetest.register_craftitem(":basic_materials:copper_wire", {
description = "Copper Wire",
inventory_image = "elepower_copper_wire.png",
inventory_image = "elepower_bm_copper_wire.png",
groups = {copper = 1, wire = 1, component = 1}
})
minetest.register_craft( {
output = "basic_materials:copper_wire 8",
output = "basic_materials:copper_wire 2",
type = "shapeless",
recipe = {
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{"default:copper_ingot", "", "default:copper_ingot"},
{"default:copper_ingot", "default:copper_ingot", "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 }
},
})
-----------
@ -93,16 +159,16 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:motor", {
description = "Motor",
inventory_image = "elepower_motor.png",
inventory_image = "elepower_bm_motor.png",
groups = {motor = 1, component = 1}
})
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},
}
})
@ -112,7 +178,7 @@ if minetest.get_modpath("basic_materials") == nil then
minetest.register_craftitem(":basic_materials:silicon", {
description = "Silicon",
inventory_image = "elepower_silicon.png",
inventory_image = "elepower_bm_silicon.png",
groups = {silicon = 1, lump = 1}
})
@ -125,6 +191,54 @@ if minetest.get_modpath("basic_materials") == nil then
inventory_image = "elepower_brass_ingot.png",
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
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

View File

@ -17,6 +17,7 @@ local list_def = {
{material = "viridisium", description = "Viridisium", color = "#5b9751", dust = true, plate = true, gear = true},
{material = "zinc", description = "Zinc", color = "#598a9e", dust = true, plate = 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}
}
@ -50,6 +51,11 @@ end
function elepd.register_dust(mat, data)
local mod = minetest.get_current_modname()
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
elepd.registered_dusts[mat] = data
@ -60,9 +66,11 @@ function elepd.register_dust(mat, data)
description = data.description
end
minetest.register_craftitem(itemname, {
description = description,
inventory_image = "elepower_dust.png^[multiply:" .. data.color,
inventory_image = image,
groups = {
["dust_" .. mat] = 1,
dust = 1

View File

@ -1,15 +1,87 @@
-- 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",
tiles = {"elepower_conduit.png"},
use_texture_alpha = "clip",
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_lib.register_transfer_node("elepower_dynamics:opaque_duct", {
description = "Opaque Fluid Duct",
tiles = {"elepower_opaque_duct.png"},
use_texture_alpha = "clip",
duct_density = 1/5,
groups = {oddly_breakable_by_hand = 1, cracky = 1}
})

View File

@ -1,23 +1,28 @@
-- 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', ''},
{'',epi.group_stick, ''},
{'',epi.group_stick, ''},
}
})
@ -25,8 +30,8 @@ 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', ''},
{'',epi.group_stick, ''},
{'',epi.group_stick, ''},
}
})
@ -36,8 +41,8 @@ minetest.register_craft({
output = 'elepower_dynamics:shovel_iron',
recipe = {
{'elepower_dynamics:iron_ingot'},
{'group:stick'},
{'group:stick'},
{epi.group_stick},
{epi.group_stick},
}
})
@ -45,8 +50,8 @@ minetest.register_craft({
output = 'elepower_dynamics:shovel_lead',
recipe = {
{'elepower_dynamics:lead_ingot'},
{'group:stick'},
{'group:stick'},
{epi.group_stick},
{epi.group_stick},
}
})
@ -56,8 +61,8 @@ 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'},
{'elepower_dynamics:iron_ingot',epi.group_stick},
{'',epi.group_stick},
}
})
@ -65,8 +70,8 @@ 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'},
{'elepower_dynamics:lead_ingot',epi.group_stick},
{'',epi.group_stick},
}
})
@ -77,7 +82,7 @@ minetest.register_craft({
recipe = {
{'elepower_dynamics:iron_ingot'},
{'elepower_dynamics:iron_ingot'},
{'group:stick'},
{epi.group_stick},
}
})
@ -86,12 +91,12 @@ minetest.register_craft({
recipe = {
{'elepower_dynamics:lead_ingot'},
{'elepower_dynamics:lead_ingot'},
{'group:stick'},
{epi.group_stick},
}
})
end
-- Bucket
minetest.register_craft({
output = 'bucket:bucket_empty',
recipe = {
@ -130,6 +135,61 @@ 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
minetest.register_craft({
output = "elepower_dynamics:opaque_duct 3",
@ -144,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},
}
})
@ -157,9 +217,9 @@ 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 , ""}
}
})
@ -181,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, ""}
}
})
@ -213,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},
}
})
@ -222,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},
}
})
@ -231,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},
}
})
@ -249,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", ""},
}
})
@ -262,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, ""},
}
})
@ -280,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},
}
})
@ -290,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}
}
})
@ -318,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},
}
})
@ -346,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"
})
@ -391,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 ~= epr.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,11 +1,15 @@
-- 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", {
description = "Etching Acid",
tiles = {"elepower_etching_acid.png"},
special_tiles = {"elepower_etching_acid.png", "elepower_etching_acid.png"},
alpha = 200,
use_texture_alpha = "blend",
liquid_viscosity = 4,
damage_per_second = 4,
post_effect_color = {a = 103, r = 65, g = 8, b = 0},
@ -21,7 +25,7 @@ ele.helpers.register_liquid("lithium", {
special_tiles = {"elepower_lithium.png", "elepower_lithium.png"},
liquid_viscosity = 4,
damage_per_second = 1,
alpha = 200,
use_texture_alpha = "blend",
gas_form = "elepower_dynamics:lithium_gas",
post_effect_color = {a = 103, r = 229, g = 227, b = 196},
groups = {lithium = 1, liquid = 3},
@ -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 = true,
sounds = default.node_sound_glass_defaults(),
use_texture_alpha = "clip",
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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 613 B

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 333 B

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 462 B

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 419 B

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 362 B

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 467 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,6 +1,11 @@
-- see elepower_papi >> external_nodes_items.lua for explanation
-- shorten table ref
local eps = ele.external.sounds
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",
@ -12,7 +17,7 @@ minetest.register_tool("elepower_dynamics:pick_iron", {
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:pick_lead", {
@ -26,7 +31,7 @@ minetest.register_tool("elepower_dynamics:pick_lead", {
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
-- Shovels
@ -43,7 +48,7 @@ minetest.register_tool("elepower_dynamics:shovel_iron", {
},
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:shovel_lead", {
@ -58,7 +63,7 @@ minetest.register_tool("elepower_dynamics:shovel_lead", {
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
-- Axes
@ -74,7 +79,7 @@ minetest.register_tool("elepower_dynamics:axe_iron", {
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:axe_lead", {
@ -88,7 +93,7 @@ minetest.register_tool("elepower_dynamics:axe_lead", {
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
-- Swords
@ -104,7 +109,7 @@ minetest.register_tool("elepower_dynamics:sword_iron", {
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
sound = {breaks = eps.tool_breaks},
})
minetest.register_tool("elepower_dynamics:sword_lead", {
@ -118,5 +123,7 @@ minetest.register_tool("elepower_dynamics:sword_lead", {
},
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

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

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
local function get_formspec(timer, power, sludge, state)
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.state_switcher(7, 2.5, state)..
ele.formspec.power_meter(power)..
ele.formspec.fluid_bar(7, 0, sludge)..
@ -93,7 +97,7 @@ local function get_formspec(timer, power, sludge, state)
"list[current_player;main;0,5.5;8,3;8]"..
"listring[context;dst]"..
"listring[current_player;main]"..
default.get_hotbar_bg(0, 4.25)
epr.get_hotbar_bg(0, 4.25)
end
local function on_timer(pos, elapsed)

View File

@ -1,4 +1,9 @@
-- 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
local PLANTER_TICK = 10
@ -52,21 +57,30 @@ local ranges = {
}
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]"..
default.gui_bg..
default.gui_bg_img..
default.gui_slots..
ele.formspec.power_meter(power)..
ele.formspec.state_switcher(7, 0, state)..
ele.formspec.create_bar(1, 0, 100 - timer, "#00ff11", true)..
"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;]"..
"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,7;8,3;8]"..
"listring[current_player;main]"..
"listring[context;src]"..
"listring[current_player;main]"..
default.get_hotbar_bg(0, 5.75)
"listring[current_player;main]"
end
local function can_dig(pos, player)
@ -118,6 +132,7 @@ local function allow_metadata_inventory_take(pos, listname, index, stack, player
end
local function plant(pos, range, stack, inv)
local planted = 0
local range_st = vector.add(ranges[range][1], pos)
local range_end = vector.add(ranges[range][2], pos)
@ -132,6 +147,7 @@ local function plant(pos, range, stack, inv)
end
local to_plant = stack:get_name()
local to_place = nil
local amount = 0
local till = true
@ -156,6 +172,7 @@ local function plant(pos, range, stack, inv)
for z = range_st.z, range_end.z do
if amount == 0 then break end
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_node = minetest.get_node_or_nil(base_pos)
@ -168,26 +185,26 @@ local function plant(pos, range, stack, inv)
if (regN[base_node.name].soil == nil or
regN[base_node.name].soil.wet == nil or
regN[base_node.name].soil.dry == nil) and
regN["farming:soil"] == nil then
regN[epi.farming_soil] == nil then
till = false
end
if till then
minetest.sound_play("default_dig_crumbly", {
minetest.sound_play(eps.dig_crumbly, {
pos = base_pos,
gain = 0.5,
})
local soil = regN[base_node.name].soil
local wet_soil = "farming:soil_wet"
local wet_soil = epi.farming_soil_wet
-- Determine soil name
-- Make sure we don't replace wet soil
if soil then
wet_soil = soil.wet or "farming:soil_wet"
wet_soil = soil.wet or epi_farming_soil_wet
soil = soil.dry
else
soil = "farming:soil"
soil = epi.farming_soil
end
if base_node.name ~= soil and base_node.name ~= wet_soil then
@ -241,6 +258,7 @@ local function on_timer(pos, elapsed)
if work == PLANTER_TICK then
local planted = 0
for index, slot in ipairs(inv:get_list("layout")) do
if planted >= 9 then break end
if not slot:is_empty() then
planted = planted + plant(pos, index, slot, inv)

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 SPAWNER_TICK = 10
@ -91,9 +95,9 @@ end
local function get_formspec(timer, power, state)
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.power_meter(power)..
ele.formspec.state_switcher(7, 0, state)..
ele.formspec.create_bar(1, 0, 100 - timer, "#00ff11", true)..
@ -104,7 +108,7 @@ local function get_formspec(timer, power, state)
"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 on_timer(pos, elapsed)

View File

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

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