Compare commits
30 Commits
411dfd9e5b
...
671546f103
Author | SHA1 | Date | |
---|---|---|---|
|
671546f103 | ||
|
88d40fb89d | ||
|
cfca4304c0 | ||
|
5d14083f2c | ||
|
12eacba8f6 | ||
|
3d28ad39b5 | ||
|
56d89df934 | ||
|
209b8a7596 | ||
|
9ccb2becb8 | ||
|
dae174111a | ||
|
6c59fdc6e0 | ||
|
6988330919 | ||
|
0c13366b5a | ||
|
2e5298d40f | ||
|
dfbe1c8c62 | ||
|
b498fbb4fc | ||
|
2897e859b9 | ||
|
0a7cc0ce80 | ||
|
f72ce33ca0 | ||
|
aec0065987 | ||
|
56366fec62 | ||
|
2627e0c763 | ||
|
e489f0c714 | ||
|
b9de6b6ef6 | ||
|
b9ca4fc778 | ||
|
7cc6a489df | ||
|
bfb33c5805 | ||
|
f9d41a1425 | ||
|
c33c2361d7 | ||
|
79882877af |
@ -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://gitlab.icynet.eu/evert/fluid_lib)!**
|
**Depends on [fluid_lib](https://github.com/sirrobzeroone/fluid_lib)!**
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
BIN
elepower_documentation/diagram_craft_flow.png
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
elepower_documentation/diagram_machine_craft_flow.png
Normal file
After Width: | Height: | Size: 119 KiB |
BIN
elepower_documentation/grid_background.png
Normal file
After Width: | Height: | Size: 13 KiB |
0
elepower_documentation/init.lua
Normal file
BIN
elepower_documentation/power_network_examples.xcf
Normal file
BIN
elepower_documentation/power_network_simple_examples.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
elepower_documentation/power_network_simple_examples.xcf
Normal 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
|
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", {
|
minetest.register_craftitem(":basic_materials:oil_extract", {
|
||||||
description = "Oil Extract",
|
description = "Oil Extract",
|
||||||
inventory_image = "elepower_oil_extract.png",
|
inventory_image = "elepower_bm_oil_extract.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem(":basic_materials:paraffin", {
|
minetest.register_craftitem(":basic_materials:paraffin", {
|
||||||
description = "Unprocessed 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("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:plastic_sheeting", "basic_materials:plastic_sheet")
|
|
||||||
minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
|
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", {
|
minetest.register_craftitem(":basic_materials:plastic_sheet", {
|
||||||
description = "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({
|
minetest.register_craft({
|
||||||
@ -68,23 +102,55 @@ if minetest.get_modpath("basic_materials") == nil then
|
|||||||
burntime = 30,
|
burntime = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
-----------------
|
----------
|
||||||
-- COPPER WIRE --
|
-- WIRE --
|
||||||
-----------------
|
----------
|
||||||
|
|
||||||
minetest.register_craftitem(":basic_materials:copper_wire", {
|
minetest.register_craftitem(":basic_materials:copper_wire", {
|
||||||
description = "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}
|
groups = {copper = 1, wire = 1, component = 1}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft( {
|
||||||
output = "basic_materials:copper_wire 8",
|
output = "basic_materials:copper_wire 2",
|
||||||
|
type = "shapeless",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
epi.copper_ingot,
|
||||||
{"default:copper_ingot", "", "default:copper_ingot"},
|
"basic_materials:empty_spool",
|
||||||
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"}
|
"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", {
|
minetest.register_craftitem(":basic_materials:motor", {
|
||||||
description = "Motor",
|
description = "Motor",
|
||||||
inventory_image = "elepower_motor.png",
|
inventory_image = "elepower_bm_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 = {
|
||||||
{"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"},
|
{"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", {
|
minetest.register_craftitem(":basic_materials:silicon", {
|
||||||
description = "Silicon",
|
description = "Silicon",
|
||||||
inventory_image = "elepower_silicon.png",
|
inventory_image = "elepower_bm_silicon.png",
|
||||||
groups = {silicon = 1, lump = 1}
|
groups = {silicon = 1, lump = 1}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -125,6 +191,54 @@ 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
|
||||||
|
@ -17,6 +17,7 @@ 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}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,6 +51,11 @@ 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
|
||||||
@ -60,9 +66,11 @@ 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 = "elepower_dust.png^[multiply:" .. data.color,
|
inventory_image = image,
|
||||||
groups = {
|
groups = {
|
||||||
["dust_" .. mat] = 1,
|
["dust_" .. mat] = 1,
|
||||||
dust = 1
|
dust = 1
|
||||||
|
@ -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
|
-- 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}
|
||||||
})
|
})
|
||||||
|
@ -1,97 +1,102 @@
|
|||||||
|
|
||||||
|
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||||
|
-- shorten table ref
|
||||||
|
local epi = ele.external.ing
|
||||||
|
local ept = ele.external.tools
|
||||||
|
|
||||||
---------------
|
---------------
|
||||||
-- Overrides --
|
-- 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 = "default:steel_ingot"})
|
--minetest.clear_craft({type = "cooking", output = epi.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'},
|
||||||
{'', 'group:stick', ''},
|
{'',epi.group_stick, ''},
|
||||||
{'', 'group:stick', ''},
|
{'',epi.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'},
|
||||||
{'', 'group:stick', ''},
|
{'',epi.group_stick, ''},
|
||||||
{'', 'group:stick', ''},
|
{'',epi.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'},
|
||||||
{'group:stick'},
|
{epi.group_stick},
|
||||||
{'group:stick'},
|
{epi.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'},
|
||||||
{'group:stick'},
|
{epi.group_stick},
|
||||||
{'group:stick'},
|
{epi.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', 'group:stick'},
|
{'elepower_dynamics:iron_ingot',epi.group_stick},
|
||||||
{'', 'group:stick'},
|
{'',epi.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', 'group:stick'},
|
{'elepower_dynamics:lead_ingot',epi.group_stick},
|
||||||
{'', 'group:stick'},
|
{'',epi.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'},
|
||||||
{'group:stick'},
|
{epi.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'},
|
||||||
{'group:stick'},
|
{epi.group_stick},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- Bucket
|
-- Bucket
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'bucket:bucket_empty',
|
output = 'bucket:bucket_empty',
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -130,12 +135,67 @@ 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"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -144,9 +204,9 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:portable_tank",
|
output = "elepower_dynamics:portable_tank",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:glass", "elepower_dynamics:fluid_duct", "default:glass"},
|
{epi.glass,"elepower_dynamics:fluid_duct",epi.glass},
|
||||||
{"default:glass", "default:glass", "default:glass"},
|
{epi.glass,epi.glass,epi.glass},
|
||||||
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
{epi.bronze_ingot,epi.bronze_ingot,epi.bronze_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -157,18 +217,18 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:wound_copper_coil",
|
output = "elepower_dynamics:wound_copper_coil",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "default:copper_ingot", ""},
|
{"" ,epi.copper_ingot , ""},
|
||||||
{"default:copper_ingot", "elepower_dynamics:iron_ingot", "default:copper_ingot"},
|
{epi.copper_ingot, "elepower_dynamics:iron_ingot", epi.copper_ingot},
|
||||||
{"", "default:copper_ingot", ""}
|
{"" , epi.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"},
|
||||||
@ -181,9 +241,9 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:wound_silver_coil",
|
output = "elepower_dynamics:wound_silver_coil",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "moreores:silver_ingot", ""},
|
{"" , epi.silver_ingot, ""},
|
||||||
{"moreores:silver_ingot", "elepower_dynamics:zinc_ingot", "moreores:silver_ingot"},
|
{epi.silver_ingot, "elepower_dynamics:zinc_ingot",epi.silver_ingot},
|
||||||
{"", "moreores:silver_ingot", ""}
|
{"" , epi.silver_ingot, ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -213,8 +273,8 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:tree_tap",
|
output = "elepower_dynamics:tree_tap",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
{epi.steel_ingot, epi.steel_ingot, epi.steel_ingot},
|
||||||
{"", "", "default:steel_ingot"},
|
{"", "", epi.steel_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -222,8 +282,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"},
|
||||||
{"default:mese_crystal_fragment", "group:color_black", "default:mese_crystal_fragment"},
|
{epi.mese_crystal_fragment,epi.group_color_black, epi.mese_crystal_fragment},
|
||||||
{"default:copper_ingot", "moreores:silver_ingot", "default:copper_ingot"},
|
{epi.copper_ingot, epi.silver_ingot, epi.copper_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -231,17 +291,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"},
|
||||||
{"moreores:silver_ingot", "default:mese_crystal", "moreores:silver_ingot"},
|
{epi.silver_ingot, epi.mese_crystal, epi.silver_ingot},
|
||||||
{"default:copper_ingot", "group:color_violet", "default:copper_ingot"},
|
{epi.copper_ingot, epi.group_color_violet, epi.copper_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:pcb_blank 3",
|
output = "elepower_dynamics:pcb_blank 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
{epi.copper_ingot,epi.copper_ingot, epi.copper_ingot},
|
||||||
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
|
{epi.copper_ingot,epi.mese_crystal, epi.copper_ingot},
|
||||||
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
|
{epi.gold_ingot ,epi.gold_ingot, epi.gold_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -249,7 +309,7 @@ minetest.register_craft({
|
|||||||
output = "elepower_dynamics:pcb_blank",
|
output = "elepower_dynamics:pcb_blank",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "elepower_dynamics:copper_plate", ""},
|
{"", "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", ""},
|
{"", "elepower_dynamics:gold_plate", ""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -262,16 +322,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",
|
||||||
"farming:seed_wheat",
|
epi.seed_wheat,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:uv_bulb",
|
output = "elepower_dynamics:uv_bulb",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"group:color_blue", "group:color_violet", "group:color_blue"},
|
{epi.group_color_blue, epi.group_color_violet, epi.group_color_blue},
|
||||||
{"", "default:meselamp", ""},
|
{"", epi.mese_lamp, ""},
|
||||||
{"", "default:glass", ""},
|
{"", epi.glass, ""},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -280,9 +340,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 = {
|
||||||
{"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"},
|
{"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",
|
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", "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"},
|
{"elepower_dynamics:tin_plate", epi.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 = {
|
||||||
{"group:color_red", "group:color_green", "group:color_blue"},
|
{epi.group_color_red, epi.group_color_green, epi.group_color_blue},
|
||||||
{"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"},
|
{epi.silver_ingot, "elepower_dynamics:wound_copper_coil", epi.silver_ingot},
|
||||||
{"", "default:meselamp", ""}
|
{"", epi.mese_lamp, ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_dynamics:pv_cell",
|
output = "elepower_dynamics:pv_cell",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:glass", "default:glass", "default:glass"},
|
{epi.glass, epi.glass, epi.glass},
|
||||||
{"group:color_blue", "elepower_dynamics:silicon_wafer_doped", "group:color_blue"},
|
{epi.group_color_blue, "elepower_dynamics:silicon_wafer_doped", epi.group_color_blue},
|
||||||
{"default:mese_crystal_fragment", "elepower_dynamics:wound_copper_coil", "default:mese_crystal_fragment"}
|
{epi.mese_crystal_fragment, "elepower_dynamics:wound_copper_coil", epi.mese_crystal_fragment}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -318,7 +378,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"},
|
||||||
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
|
{epi.copper_ingot, epi.mese_crystal, epi.copper_ingot},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -335,7 +395,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", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -346,12 +406,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 = "default:iron_lump"
|
recipe = epi.iron_lump
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "cooking",
|
type = "cooking",
|
||||||
output = "default:steel_ingot",
|
output = epi.steel_ingot,
|
||||||
recipe = "elepower_dynamics:iron_ingot"
|
recipe = "elepower_dynamics:iron_ingot"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -391,7 +451,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 = "group:stick"
|
found = epi.group_stick
|
||||||
immebreak = true
|
immebreak = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -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 --
|
-- Craftitems --
|
||||||
----------------
|
----------------
|
||||||
@ -164,7 +169,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 = "default:water_source"})
|
minetest.set_node(pos, {name = epr.water_source})
|
||||||
else
|
else
|
||||||
meta:set_int("uses", uses)
|
meta:set_int("uses", uses)
|
||||||
end
|
end
|
||||||
@ -188,7 +193,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 ~= "default:water_source" then
|
if node.name ~= epr.water_source then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -303,6 +308,6 @@ minetest.register_craftitem("elepower_dynamics:pv_cell", {
|
|||||||
-- Overrides --
|
-- Overrides --
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
minetest.override_item("default:steel_ingot", {
|
minetest.override_item(epi.steel_ingot, {
|
||||||
description = "Steel Ingot\nLow carbon steel"
|
description = "Low Carbon Steel Ingot"
|
||||||
})
|
})
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
|
|
||||||
|
-- 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"},
|
||||||
alpha = 200,
|
use_texture_alpha = "blend",
|
||||||
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},
|
||||||
@ -21,7 +25,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,
|
||||||
alpha = 200,
|
use_texture_alpha = "blend",
|
||||||
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},
|
||||||
@ -40,7 +44,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 = "default:water_source",
|
liquid_form = epr.water_source,
|
||||||
tiles = {"elepower_steam.png"},
|
tiles = {"elepower_steam.png"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -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 --
|
-- Overrides --
|
||||||
---------------
|
---------------
|
||||||
@ -14,34 +19,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 = {"default_stone.png^elepower_mineral_lead.png"},
|
tiles = {epg.stone.."^elepower_mineral_lead.png"},
|
||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
drop = 'elepower_dynamics:lead_lump',
|
drop = 'elepower_dynamics:lead_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = eps.node_sound_stone,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:stone_with_nickel", {
|
minetest.register_node("elepower_dynamics:stone_with_nickel", {
|
||||||
description = "Nickel Ore",
|
description = "Nickel Ore",
|
||||||
tiles = {"default_stone.png^elepower_mineral_nickel.png"},
|
tiles = {epg.stone.."^elepower_mineral_nickel.png"},
|
||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
drop = 'elepower_dynamics:nickel_lump',
|
drop = 'elepower_dynamics:nickel_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = eps.node_sound_stone,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:stone_with_viridisium", {
|
minetest.register_node("elepower_dynamics:stone_with_viridisium", {
|
||||||
description = "Viridisium Ore",
|
description = "Viridisium Ore",
|
||||||
tiles = {"default_stone.png^elepower_mineral_viridisium.png"},
|
tiles = {epg.stone.."^elepower_mineral_viridisium.png"},
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
drop = 'elepower_dynamics:viridisium_lump',
|
drop = 'elepower_dynamics:viridisium_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = eps.node_sound_stone,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:stone_with_zinc", {
|
minetest.register_node("elepower_dynamics:stone_with_zinc", {
|
||||||
description = "Zinc Ore",
|
description = "Zinc Ore",
|
||||||
tiles = {"default_stone.png^elepower_mineral_zinc.png"},
|
tiles = {epg.stone.."^elepower_mineral_zinc.png"},
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
drop = 'elepower_dynamics:zinc_lump',
|
drop = 'elepower_dynamics:zinc_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = eps.node_sound_stone,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Other
|
-- Other
|
||||||
@ -51,18 +56,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 = default.node_sound_wood_defaults(),
|
sounds = eps.node_sound_wood,
|
||||||
})
|
})
|
||||||
|
|
||||||
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 = {"default_obsidian_glass.png", "elepower_hard_glass_detail.png"},
|
tiles = {epg.obsidian_glass, "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 = true,
|
use_texture_alpha = "clip",
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = eps.node_sound_glass,
|
||||||
groups = {cracky = 3},
|
groups = {cracky = 3},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -73,7 +78,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 = default.node_sound_metal_defaults(),
|
sounds = eps.node_sound_metal,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:lead_block", {
|
minetest.register_node("elepower_dynamics:lead_block", {
|
||||||
@ -81,7 +86,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 = default.node_sound_metal_defaults(),
|
sounds = eps.node_sound_metal,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:invar_block", {
|
minetest.register_node("elepower_dynamics:invar_block", {
|
||||||
@ -89,7 +94,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 = default.node_sound_metal_defaults(),
|
sounds = eps.node_sound_metal,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:nickel_block", {
|
minetest.register_node("elepower_dynamics:nickel_block", {
|
||||||
@ -97,7 +102,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 = default.node_sound_metal_defaults(),
|
sounds = eps.node_sound_metal,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("elepower_dynamics:zinc_block", {
|
minetest.register_node("elepower_dynamics:zinc_block", {
|
||||||
@ -105,5 +110,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 = default.node_sound_metal_defaults(),
|
sounds = eps.node_sound_metal,
|
||||||
})
|
})
|
||||||
|
BIN
elepower_dynamics/textures/GIMP/elepower_acidic_compound.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_battery.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_blank_pcb.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_capacitor.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_carbon_fiber.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_carbon_fiber_sheet.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_coil.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_dust.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_gas_container.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_graphite_rod.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_ic.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_ic_2.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_ic_3.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_induction_coil.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_lcd_panel.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_microcontroller.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_pcb.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_pv_cell.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_servo_valve.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_silicon_wafer.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_silicon_wafer_solar.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_soc.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_tin_can.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_tree_tap.xcf
Normal file
BIN
elepower_dynamics/textures/GIMP/elepower_uv_bulb.xcf
Normal file
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 8.6 KiB |
BIN
elepower_dynamics/textures/elepower_bm_copper_wire.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
elepower_dynamics/textures/elepower_bm_empty_spool.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
elepower_dynamics/textures/elepower_bm_heating_element.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
elepower_dynamics/textures/elepower_bm_motor.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
elepower_dynamics/textures/elepower_bm_oil_extract.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
elepower_dynamics/textures/elepower_bm_paraffin.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
elepower_dynamics/textures/elepower_bm_plastic_sheet.png
Normal file
After Width: | Height: | Size: 894 B |
BIN
elepower_dynamics/textures/elepower_bm_silicon.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
elepower_dynamics/textures/elepower_bm_silver_wire.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
elepower_dynamics/textures/elepower_bm_steel_wire.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
elepower_dynamics/textures/elepower_bm_strip.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 998 B |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 1.2 KiB |
BIN
elepower_dynamics/textures/elepower_conduit_node_socket.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
elepower_dynamics/textures/elepower_conduit_wall.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 849 B |
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 1.1 KiB |
@ -1,7 +1,12 @@
|
|||||||
|
|
||||||
-- Pickaxes
|
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||||
|
-- shorten table ref
|
||||||
|
local eps = ele.external.sounds
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:pick_iron", {
|
if ele.external.tools.enable_iron_lead_tools == true then
|
||||||
|
|
||||||
|
-- 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 = {
|
||||||
@ -12,10 +17,10 @@ minetest.register_tool("elepower_dynamics:pick_iron", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:pick_lead", {
|
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 = {
|
||||||
@ -26,12 +31,12 @@ minetest.register_tool("elepower_dynamics:pick_lead", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Shovels
|
-- Shovels
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:shovel_iron", {
|
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",
|
||||||
@ -43,10 +48,10 @@ minetest.register_tool("elepower_dynamics:shovel_iron", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=3},
|
damage_groups = {fleshy=3},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:shovel_lead", {
|
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",
|
||||||
@ -58,12 +63,12 @@ minetest.register_tool("elepower_dynamics:shovel_lead", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Axes
|
-- Axes
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:axe_iron", {
|
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 = {
|
||||||
@ -74,10 +79,10 @@ minetest.register_tool("elepower_dynamics:axe_iron", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:axe_lead", {
|
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 = {
|
||||||
@ -88,12 +93,12 @@ minetest.register_tool("elepower_dynamics:axe_lead", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Swords
|
-- Swords
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:sword_iron", {
|
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 = {
|
||||||
@ -104,10 +109,10 @@ minetest.register_tool("elepower_dynamics:sword_iron", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("elepower_dynamics:sword_lead", {
|
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 = {
|
||||||
@ -118,5 +123,7 @@ minetest.register_tool("elepower_dynamics:sword_lead", {
|
|||||||
},
|
},
|
||||||
damage_groups = {fleshy=7},
|
damage_groups = {fleshy=7},
|
||||||
},
|
},
|
||||||
sound = {breaks = "default_tool_breaks"},
|
sound = {breaks = eps.tool_breaks},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
end
|
@ -1,14 +1,17 @@
|
|||||||
|
|
||||||
|
-- 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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -19,7 +22,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -30,7 +33,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -43,7 +46,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -54,7 +57,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -65,7 +68,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -76,7 +79,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -89,7 +92,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -100,7 +103,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -111,7 +114,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -124,7 +127,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -135,7 +138,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 = "default:stone",
|
wherein = epr.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,
|
||||||
@ -146,7 +149,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 = "default:stone",
|
wherein = epr.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,
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||||
|
-- shorten table ref
|
||||||
|
local epi = ele.external.ing
|
||||||
|
|
||||||
-----------
|
-----------
|
||||||
-- Nodes --
|
-- Nodes --
|
||||||
-----------
|
-----------
|
||||||
@ -7,9 +11,9 @@
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "elepower_farming:device_frame",
|
output = "elepower_farming:device_frame",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet"},
|
{"basic_materials:plastic_sheet", epi.glass, "basic_materials:plastic_sheet"},
|
||||||
{"default:glass", "default:mese_crystal", "default:glass"},
|
{epi.glass, epi.mese_crystal, epi.glass},
|
||||||
{"basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet"},
|
{"basic_materials:plastic_sheet", epi.glass, "basic_materials:plastic_sheet"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -18,7 +22,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"},
|
||||||
{"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"},
|
{"elepower_dynamics:wound_copper_coil", "basic_materials:motor", "elepower_dynamics:wound_copper_coil"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -28,7 +32,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"},
|
||||||
{"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"},
|
{"basic_materials:motor", "elepower_dynamics:diamond_gear", "basic_materials:motor"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -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"},
|
||||||
alpha = 200,
|
use_texture_alpha = "blend",
|
||||||
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"},
|
||||||
alpha = 200,
|
use_texture_alpha = "blend",
|
||||||
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"},
|
||||||
alpha = 200,
|
use_texture_alpha = "blend",
|
||||||
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"},
|
||||||
alpha = 200,
|
use_texture_alpha = "blend",
|
||||||
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},
|
||||||
|
@ -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)
|
local function get_formspec(timer, biomass_buffer, output_buffer)
|
||||||
return "size[8,8.5]"..
|
return "size[8,8.5]"..
|
||||||
default.gui_bg..
|
epr.gui_bg..
|
||||||
default.gui_bg_img..
|
epr.gui_bg_img..
|
||||||
default.gui_slots..
|
epr.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;]"..
|
||||||
@ -14,7 +18,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]"..
|
||||||
default.get_hotbar_bg(0, 4.25)
|
epr.get_hotbar_bg(0, 4.25)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function is_plant(itemname)
|
local function is_plant(itemname)
|
||||||
|
@ -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
|
-- How many seconds there are between runs
|
||||||
local HARVESTER_TICK = 10
|
local HARVESTER_TICK = 10
|
||||||
|
|
||||||
@ -81,9 +85,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]"..
|
||||||
default.gui_bg..
|
epr.gui_bg..
|
||||||
default.gui_bg_img..
|
epr.gui_bg_img..
|
||||||
default.gui_slots..
|
epr.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)..
|
||||||
@ -93,7 +97,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]"..
|
||||||
default.get_hotbar_bg(0, 4.25)
|
epr.get_hotbar_bg(0, 4.25)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function on_timer(pos, elapsed)
|
local function on_timer(pos, elapsed)
|
||||||
|
@ -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
|
-- How many seconds there are between runs
|
||||||
local PLANTER_TICK = 10
|
local PLANTER_TICK = 10
|
||||||
|
|
||||||
@ -52,21 +57,30 @@ 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)
|
||||||
@ -118,6 +132,7 @@ 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)
|
||||||
@ -132,6 +147,7 @@ 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
|
||||||
@ -156,6 +172,7 @@ 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)
|
||||||
|
|
||||||
@ -168,26 +185,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["farming:soil"] == nil then
|
regN[epi.farming_soil] == nil then
|
||||||
till = false
|
till = false
|
||||||
end
|
end
|
||||||
|
|
||||||
if till then
|
if till then
|
||||||
minetest.sound_play("default_dig_crumbly", {
|
minetest.sound_play(eps.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 = "farming:soil_wet"
|
local wet_soil = epi.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 "farming:soil_wet"
|
wet_soil = soil.wet or epi_farming_soil_wet
|
||||||
soil = soil.dry
|
soil = soil.dry
|
||||||
else
|
else
|
||||||
soil = "farming:soil"
|
soil = epi.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
|
||||||
@ -241,6 +258,7 @@ 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)
|
||||||
|
@ -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
|
-- How many seconds there are between runs
|
||||||
local SPAWNER_TICK = 10
|
local SPAWNER_TICK = 10
|
||||||
|
|
||||||
@ -91,9 +95,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]"..
|
||||||
default.gui_bg..
|
epr.gui_bg..
|
||||||
default.gui_bg_img..
|
epr.gui_bg_img..
|
||||||
default.gui_slots..
|
epr.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)..
|
||||||
@ -104,7 +108,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]"..
|
||||||
default.get_hotbar_bg(0, 4.25)
|
epr.get_hotbar_bg(0, 4.25)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function on_timer(pos, elapsed)
|
local function on_timer(pos, elapsed)
|
||||||
|
@ -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 CAPACITY = 8000
|
||||||
|
|
||||||
local fluid_table = {
|
local fluid_table = {
|
||||||
["default:tree"] = { fpc = 100, fluid = "elepower_farming:tree_sap_source" },
|
[epi.tree] = { fpc = 100, fluid = "elepower_farming:tree_sap_source" },
|
||||||
["default:jungletree"] = { fpc = 50, fluid = "elepower_farming:resin_source" },
|
[epi.jungle_tree] = { fpc = 50, fluid = "elepower_farming:resin_source" },
|
||||||
["default:pine_tree"] = { fpc = 100, fluid = "elepower_farming:resin_source" },
|
[epi.pine_tree] = { fpc = 100, fluid = "elepower_farming:resin_source" },
|
||||||
["default:acacia_tree"] = { fpc = 50, fluid = "elepower_farming:resin_source" },
|
[epi.acacia_tree] = { fpc = 50, fluid = "elepower_farming:resin_source" },
|
||||||
["default:aspen_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", {
|
minetest.register_node("elepower_farming:tree_extractor", {
|
||||||
|