Compare commits
No commits in common. "671546f103c636725313c80440f0b75d58dec88c" and "411dfd9e5b234cb69bc8538f8cabe15d8eb930f1" have entirely different histories.
671546f103
...
411dfd9e5b
@ -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://github.com/sirrobzeroone/fluid_lib)!**
|
||||
**Depends on [fluid_lib](https://gitlab.icynet.eu/evert/fluid_lib)!**
|
||||
|
||||
## Features
|
||||
|
||||
|
Before Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 119 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB |
@ -1,7 +1,3 @@
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epi = ele.external.ing
|
||||
|
||||
if minetest.get_modpath("basic_materials") == nil then
|
||||
|
||||
--------------
|
||||
@ -10,53 +6,23 @@ if minetest.get_modpath("basic_materials") == nil then
|
||||
|
||||
minetest.register_craftitem(":basic_materials:oil_extract", {
|
||||
description = "Oil Extract",
|
||||
inventory_image = "elepower_bm_oil_extract.png",
|
||||
inventory_image = "elepower_oil_extract.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(":basic_materials:paraffin", {
|
||||
description = "Unprocessed Paraffin",
|
||||
inventory_image = "elepower_bm_paraffin.png",
|
||||
inventory_image = "elepower_paraffin.png",
|
||||
})
|
||||
|
||||
minetest.register_alias("basic_materials:plastic_base", "basic_materials:paraffin")
|
||||
minetest.register_alias("homedecor:plastic_base", "basic_materials:paraffin")
|
||||
minetest.register_alias("homedecor:paraffin", "basic_materials:paraffin")
|
||||
minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
|
||||
minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
|
||||
minetest.register_alias("homedecor:plastic_strips", "basic_materials:plastic_strip")
|
||||
minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")
|
||||
minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
|
||||
|
||||
minetest.register_craftitem(":basic_materials:plastic_sheet", {
|
||||
description = "Plastic Sheet",
|
||||
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" }
|
||||
},
|
||||
inventory_image = "elepower_plastic_sheet.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -102,55 +68,23 @@ if minetest.get_modpath("basic_materials") == nil then
|
||||
burntime = 30,
|
||||
})
|
||||
|
||||
----------
|
||||
-- WIRE --
|
||||
----------
|
||||
-----------------
|
||||
-- COPPER WIRE --
|
||||
-----------------
|
||||
|
||||
minetest.register_craftitem(":basic_materials:copper_wire", {
|
||||
description = "Copper Wire",
|
||||
inventory_image = "elepower_bm_copper_wire.png",
|
||||
inventory_image = "elepower_copper_wire.png",
|
||||
groups = {copper = 1, wire = 1, component = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "basic_materials:copper_wire 2",
|
||||
type = "shapeless",
|
||||
output = "basic_materials:copper_wire 8",
|
||||
recipe = {
|
||||
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 }
|
||||
},
|
||||
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
|
||||
{"default:copper_ingot", "", "default:copper_ingot"},
|
||||
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"}
|
||||
}
|
||||
})
|
||||
|
||||
-----------
|
||||
@ -159,16 +93,16 @@ if minetest.get_modpath("basic_materials") == nil then
|
||||
|
||||
minetest.register_craftitem(":basic_materials:motor", {
|
||||
description = "Motor",
|
||||
inventory_image = "elepower_bm_motor.png",
|
||||
inventory_image = "elepower_motor.png",
|
||||
groups = {motor = 1, component = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "basic_materials:motor 3",
|
||||
recipe = {
|
||||
{epi.steel_ingot, "elepower_dynamics:wound_copper_coil", epi.steel_ingot},
|
||||
{"default:steel_ingot", "elepower_dynamics:wound_copper_coil", "default:steel_ingot"},
|
||||
{"basic_materials:copper_wire", "elepower_dynamics:wound_copper_coil", "basic_materials:copper_wire"},
|
||||
{epi.steel_ingot, "elepower_dynamics:capacitor", epi.steel_ingot},
|
||||
{"default:steel_ingot", "elepower_dynamics:capacitor", "default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -178,7 +112,7 @@ if minetest.get_modpath("basic_materials") == nil then
|
||||
|
||||
minetest.register_craftitem(":basic_materials:silicon", {
|
||||
description = "Silicon",
|
||||
inventory_image = "elepower_bm_silicon.png",
|
||||
inventory_image = "elepower_silicon.png",
|
||||
groups = {silicon = 1, lump = 1}
|
||||
})
|
||||
|
||||
@ -191,54 +125,6 @@ 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
|
||||
|
@ -17,7 +17,6 @@ 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}
|
||||
}
|
||||
|
||||
@ -51,11 +50,6 @@ 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
|
||||
@ -66,11 +60,9 @@ function elepd.register_dust(mat, data)
|
||||
description = data.description
|
||||
end
|
||||
|
||||
|
||||
|
||||
minetest.register_craftitem(itemname, {
|
||||
description = description,
|
||||
inventory_image = image,
|
||||
inventory_image = "elepower_dust.png^[multiply:" .. data.color,
|
||||
groups = {
|
||||
["dust_" .. mat] = 1,
|
||||
dust = 1
|
||||
|
@ -1,87 +1,15 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epg = ele.external.graphic
|
||||
local eps = ele.external.sounds
|
||||
|
||||
-- Electric power
|
||||
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}
|
||||
})
|
||||
|
@ -1,28 +1,23 @@
|
||||
|
||||
-- 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 = epi.steel_ingot})
|
||||
--minetest.clear_craft({type = "cooking", output = "default: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'},
|
||||
{'',epi.group_stick, ''},
|
||||
{'',epi.group_stick, ''},
|
||||
{'', 'group:stick', ''},
|
||||
{'', 'group:stick', ''},
|
||||
}
|
||||
})
|
||||
|
||||
@ -30,8 +25,8 @@ if ept.enable_iron_lead_tools == true then
|
||||
output = 'elepower_dynamics:pick_lead',
|
||||
recipe = {
|
||||
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
|
||||
{'',epi.group_stick, ''},
|
||||
{'',epi.group_stick, ''},
|
||||
{'', 'group:stick', ''},
|
||||
{'', 'group:stick', ''},
|
||||
}
|
||||
})
|
||||
|
||||
@ -41,8 +36,8 @@ if ept.enable_iron_lead_tools == true then
|
||||
output = 'elepower_dynamics:shovel_iron',
|
||||
recipe = {
|
||||
{'elepower_dynamics:iron_ingot'},
|
||||
{epi.group_stick},
|
||||
{epi.group_stick},
|
||||
{'group:stick'},
|
||||
{'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
@ -50,8 +45,8 @@ if ept.enable_iron_lead_tools == true then
|
||||
output = 'elepower_dynamics:shovel_lead',
|
||||
recipe = {
|
||||
{'elepower_dynamics:lead_ingot'},
|
||||
{epi.group_stick},
|
||||
{epi.group_stick},
|
||||
{'group:stick'},
|
||||
{'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
@ -61,8 +56,8 @@ if ept.enable_iron_lead_tools == true then
|
||||
output = 'elepower_dynamics:axe_iron',
|
||||
recipe = {
|
||||
{'elepower_dynamics:iron_ingot', 'elepower_dynamics:iron_ingot'},
|
||||
{'elepower_dynamics:iron_ingot',epi.group_stick},
|
||||
{'',epi.group_stick},
|
||||
{'elepower_dynamics:iron_ingot', 'group:stick'},
|
||||
{'', 'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
@ -70,8 +65,8 @@ if ept.enable_iron_lead_tools == true then
|
||||
output = 'elepower_dynamics:axe_lead',
|
||||
recipe = {
|
||||
{'elepower_dynamics:lead_ingot', 'elepower_dynamics:lead_ingot'},
|
||||
{'elepower_dynamics:lead_ingot',epi.group_stick},
|
||||
{'',epi.group_stick},
|
||||
{'elepower_dynamics:lead_ingot', 'group:stick'},
|
||||
{'', 'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
@ -82,7 +77,7 @@ if ept.enable_iron_lead_tools == true then
|
||||
recipe = {
|
||||
{'elepower_dynamics:iron_ingot'},
|
||||
{'elepower_dynamics:iron_ingot'},
|
||||
{epi.group_stick},
|
||||
{'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
@ -91,12 +86,12 @@ if ept.enable_iron_lead_tools == true then
|
||||
recipe = {
|
||||
{'elepower_dynamics:lead_ingot'},
|
||||
{'elepower_dynamics:lead_ingot'},
|
||||
{epi.group_stick},
|
||||
{'group:stick'},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Bucket
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'bucket:bucket_empty',
|
||||
recipe = {
|
||||
@ -135,61 +130,6 @@ 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",
|
||||
@ -204,9 +144,9 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:portable_tank",
|
||||
recipe = {
|
||||
{epi.glass,"elepower_dynamics:fluid_duct",epi.glass},
|
||||
{epi.glass,epi.glass,epi.glass},
|
||||
{epi.bronze_ingot,epi.bronze_ingot,epi.bronze_ingot},
|
||||
{"default:glass", "elepower_dynamics:fluid_duct", "default:glass"},
|
||||
{"default:glass", "default:glass", "default:glass"},
|
||||
{"default:bronze_ingot", "default:bronze_ingot", "default:bronze_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -217,9 +157,9 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:wound_copper_coil",
|
||||
recipe = {
|
||||
{"" ,epi.copper_ingot , ""},
|
||||
{epi.copper_ingot, "elepower_dynamics:iron_ingot", epi.copper_ingot},
|
||||
{"" , epi.copper_ingot , ""}
|
||||
{"", "default:copper_ingot", ""},
|
||||
{"default:copper_ingot", "elepower_dynamics:iron_ingot", "default:copper_ingot"},
|
||||
{"", "default:copper_ingot", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -241,9 +181,9 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:wound_silver_coil",
|
||||
recipe = {
|
||||
{"" , epi.silver_ingot, ""},
|
||||
{epi.silver_ingot, "elepower_dynamics:zinc_ingot",epi.silver_ingot},
|
||||
{"" , epi.silver_ingot, ""}
|
||||
{"", "moreores:silver_ingot", ""},
|
||||
{"moreores:silver_ingot", "elepower_dynamics:zinc_ingot", "moreores:silver_ingot"},
|
||||
{"", "moreores:silver_ingot", ""}
|
||||
}
|
||||
})
|
||||
|
||||
@ -273,8 +213,8 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:tree_tap",
|
||||
recipe = {
|
||||
{epi.steel_ingot, epi.steel_ingot, epi.steel_ingot},
|
||||
{"", "", epi.steel_ingot},
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
||||
{"", "", "default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -282,8 +222,8 @@ minetest.register_craft({
|
||||
output = "elepower_dynamics:chip 6",
|
||||
recipe = {
|
||||
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
||||
{epi.mese_crystal_fragment,epi.group_color_black, epi.mese_crystal_fragment},
|
||||
{epi.copper_ingot, epi.silver_ingot, epi.copper_ingot},
|
||||
{"default:mese_crystal_fragment", "group:color_black", "default:mese_crystal_fragment"},
|
||||
{"default:copper_ingot", "moreores:silver_ingot", "default:copper_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -291,17 +231,17 @@ minetest.register_craft({
|
||||
output = "elepower_dynamics:capacitor 6",
|
||||
recipe = {
|
||||
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
||||
{epi.silver_ingot, epi.mese_crystal, epi.silver_ingot},
|
||||
{epi.copper_ingot, epi.group_color_violet, epi.copper_ingot},
|
||||
{"moreores:silver_ingot", "default:mese_crystal", "moreores:silver_ingot"},
|
||||
{"default:copper_ingot", "group:color_violet", "default:copper_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:pcb_blank 3",
|
||||
recipe = {
|
||||
{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},
|
||||
{"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"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -309,7 +249,7 @@ minetest.register_craft({
|
||||
output = "elepower_dynamics:pcb_blank",
|
||||
recipe = {
|
||||
{"", "elepower_dynamics:copper_plate", ""},
|
||||
{epi.mese_crystal_fragment, epi.mese_crystal_fragment, epi.mese_crystal_fragment},
|
||||
{"default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment"},
|
||||
{"", "elepower_dynamics:gold_plate", ""},
|
||||
}
|
||||
})
|
||||
@ -322,16 +262,16 @@ minetest.register_craft({
|
||||
"elepower_dynamics:copper_dust",
|
||||
"elepower_dynamics:copper_dust",
|
||||
"elepower_dynamics:copper_dust",
|
||||
epi.seed_wheat,
|
||||
"farming:seed_wheat",
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:uv_bulb",
|
||||
recipe = {
|
||||
{epi.group_color_blue, epi.group_color_violet, epi.group_color_blue},
|
||||
{"", epi.mese_lamp, ""},
|
||||
{"", epi.glass, ""},
|
||||
{"group:color_blue", "group:color_violet", "group:color_blue"},
|
||||
{"", "default:meselamp", ""},
|
||||
{"", "default:glass", ""},
|
||||
}
|
||||
})
|
||||
|
||||
@ -340,9 +280,9 @@ minetest.clear_craft({output = "fluid_transfer:fluid_transfer_pump"})
|
||||
minetest.register_craft({
|
||||
output = "fluid_transfer:fluid_transfer_pump 3",
|
||||
recipe = {
|
||||
{epi.group_stone, "elepower_dynamics:control_circuit",epi.group_stone},
|
||||
{"group:stone", "elepower_dynamics:control_circuit", "group:stone"},
|
||||
{"elepower_dynamics:electrum_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:electrum_gear"},
|
||||
{epi.group_stone, "elepower_dynamics:fluid_duct", epi.group_stone},
|
||||
{"group:stone", "elepower_dynamics:fluid_duct", "group:stone"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -350,26 +290,26 @@ minetest.register_craft({
|
||||
output = "elepower_dynamics:battery 2",
|
||||
recipe = {
|
||||
{"elepower_dynamics:zinc_dust", "elepower_dynamics:graphite_rod", "elepower_dynamics:lead_dust"},
|
||||
{"elepower_dynamics:tin_plate", epi.mese_crystal_fragment, "elepower_dynamics:tin_plate"},
|
||||
{"elepower_dynamics:tin_plate", epi.mese_crystal_fragment, "elepower_dynamics:tin_plate"},
|
||||
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
|
||||
{"elepower_dynamics:tin_plate", "default:mese_crystal_fragment", "elepower_dynamics:tin_plate"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:lcd_panel",
|
||||
recipe = {
|
||||
{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, ""}
|
||||
{"group:color_red", "group:color_green", "group:color_blue"},
|
||||
{"moreores:silver_ingot", "elepower_dynamics:wound_copper_coil", "moreores:silver_ingot"},
|
||||
{"", "default:meselamp", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "elepower_dynamics:pv_cell",
|
||||
recipe = {
|
||||
{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}
|
||||
{"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"}
|
||||
}
|
||||
})
|
||||
|
||||
@ -378,7 +318,7 @@ minetest.register_craft({
|
||||
recipe = {
|
||||
{"elepower_dynamics:chip", "elepower_dynamics:chip", "elepower_dynamics:chip"},
|
||||
{"elepower_dynamics:capacitor", "elepower_dynamics:pcb", "elepower_dynamics:capacitor"},
|
||||
{epi.copper_ingot, epi.mese_crystal, epi.copper_ingot},
|
||||
{"default:copper_ingot", "default:mese_crystal", "default:copper_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -406,12 +346,12 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "elepower_dynamics:iron_ingot",
|
||||
recipe = epi.iron_lump
|
||||
recipe = "default:iron_lump"
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = epi.steel_ingot,
|
||||
output = "default:steel_ingot",
|
||||
recipe = "elepower_dynamics:iron_ingot"
|
||||
})
|
||||
|
||||
@ -451,7 +391,7 @@ for mat, data in pairs(elepd.registered_gears) do
|
||||
local immebreak = false
|
||||
|
||||
if mat == "wood" then
|
||||
found = epi.group_stick
|
||||
found = "group:stick"
|
||||
immebreak = true
|
||||
end
|
||||
|
||||
|
@ -1,9 +1,4 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epr = ele.external.ref
|
||||
local epi = ele.external.ing
|
||||
|
||||
----------------
|
||||
-- Craftitems --
|
||||
----------------
|
||||
@ -169,7 +164,7 @@ minetest.register_craftitem("elepower_dynamics:pcb_blank", {
|
||||
|
||||
-- Limited etchings
|
||||
if uses == 10 then
|
||||
minetest.set_node(pos, {name = epr.water_source})
|
||||
minetest.set_node(pos, {name = "default:water_source"})
|
||||
else
|
||||
meta:set_int("uses", uses)
|
||||
end
|
||||
@ -193,7 +188,7 @@ minetest.register_craftitem("elepower_dynamics:acidic_compound", {
|
||||
local pos = pointed_thing.under
|
||||
local node = minetest.get_node(pos)
|
||||
|
||||
if node.name ~= epr.water_source then
|
||||
if node.name ~= "default:water_source" then
|
||||
return itemstack
|
||||
end
|
||||
|
||||
@ -308,6 +303,6 @@ minetest.register_craftitem("elepower_dynamics:pv_cell", {
|
||||
-- Overrides --
|
||||
---------------
|
||||
|
||||
minetest.override_item(epi.steel_ingot, {
|
||||
description = "Low Carbon Steel Ingot"
|
||||
minetest.override_item("default:steel_ingot", {
|
||||
description = "Steel Ingot\nLow carbon steel"
|
||||
})
|
||||
|
@ -1,15 +1,11 @@
|
||||
|
||||
-- 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"},
|
||||
use_texture_alpha = "blend",
|
||||
alpha = 200,
|
||||
liquid_viscosity = 4,
|
||||
damage_per_second = 4,
|
||||
post_effect_color = {a = 103, r = 65, g = 8, b = 0},
|
||||
@ -25,7 +21,7 @@ ele.helpers.register_liquid("lithium", {
|
||||
special_tiles = {"elepower_lithium.png", "elepower_lithium.png"},
|
||||
liquid_viscosity = 4,
|
||||
damage_per_second = 1,
|
||||
use_texture_alpha = "blend",
|
||||
alpha = 200,
|
||||
gas_form = "elepower_dynamics:lithium_gas",
|
||||
post_effect_color = {a = 103, r = 229, g = 227, b = 196},
|
||||
groups = {lithium = 1, liquid = 3},
|
||||
@ -44,7 +40,7 @@ bucket.register_liquid("elepower_dynamics:lithium_source", "elepower_dynamics:li
|
||||
minetest.register_node("elepower_dynamics:steam", {
|
||||
description = "Steam",
|
||||
groups = {not_in_creative_inventory = 1, gas = 1},
|
||||
liquid_form = epr.water_source,
|
||||
liquid_form = "default:water_source",
|
||||
tiles = {"elepower_steam.png"},
|
||||
})
|
||||
|
||||
|
@ -1,9 +1,4 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epg = ele.external.graphic
|
||||
local eps = ele.external.sounds
|
||||
|
||||
---------------
|
||||
-- Overrides --
|
||||
---------------
|
||||
@ -19,34 +14,34 @@ minetest.register_alias_force("elepower_dynamics:fluid_duct", "fluid_transfer:fl
|
||||
|
||||
minetest.register_node("elepower_dynamics:stone_with_lead", {
|
||||
description = "Lead Ore",
|
||||
tiles = {epg.stone.."^elepower_mineral_lead.png"},
|
||||
tiles = {"default_stone.png^elepower_mineral_lead.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'elepower_dynamics:lead_lump',
|
||||
sounds = eps.node_sound_stone,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:stone_with_nickel", {
|
||||
description = "Nickel Ore",
|
||||
tiles = {epg.stone.."^elepower_mineral_nickel.png"},
|
||||
tiles = {"default_stone.png^elepower_mineral_nickel.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'elepower_dynamics:nickel_lump',
|
||||
sounds = eps.node_sound_stone,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:stone_with_viridisium", {
|
||||
description = "Viridisium Ore",
|
||||
tiles = {epg.stone.."^elepower_mineral_viridisium.png"},
|
||||
tiles = {"default_stone.png^elepower_mineral_viridisium.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'elepower_dynamics:viridisium_lump',
|
||||
sounds = eps.node_sound_stone,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:stone_with_zinc", {
|
||||
description = "Zinc Ore",
|
||||
tiles = {epg.stone.."^elepower_mineral_zinc.png"},
|
||||
tiles = {"default_stone.png^elepower_mineral_zinc.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'elepower_dynamics:zinc_lump',
|
||||
sounds = eps.node_sound_stone,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Other
|
||||
@ -56,18 +51,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 = eps.node_sound_wood,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:hardened_glass", {
|
||||
description = "Hardened Obsidian Glass\nDoes not let light through",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = {epg.obsidian_glass, "elepower_hard_glass_detail.png"},
|
||||
tiles = {"default_obsidian_glass.png", "elepower_hard_glass_detail.png"},
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = false,
|
||||
use_texture_alpha = "clip",
|
||||
sounds = eps.node_sound_glass,
|
||||
use_texture_alpha = true,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
@ -78,7 +73,7 @@ minetest.register_node("elepower_dynamics:viridisium_block", {
|
||||
tiles = {"elepower_viridisium_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = eps.node_sound_metal,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:lead_block", {
|
||||
@ -86,7 +81,7 @@ minetest.register_node("elepower_dynamics:lead_block", {
|
||||
tiles = {"elepower_lead_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 2},
|
||||
sounds = eps.node_sound_metal,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:invar_block", {
|
||||
@ -94,7 +89,7 @@ minetest.register_node("elepower_dynamics:invar_block", {
|
||||
tiles = {"elepower_invar_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
sounds = eps.node_sound_metal,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:nickel_block", {
|
||||
@ -102,7 +97,7 @@ minetest.register_node("elepower_dynamics:nickel_block", {
|
||||
tiles = {"elepower_nickel_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
sounds = eps.node_sound_metal,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("elepower_dynamics:zinc_block", {
|
||||
@ -110,5 +105,5 @@ minetest.register_node("elepower_dynamics:zinc_block", {
|
||||
tiles = {"elepower_zinc_block.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, level = 3},
|
||||
sounds = eps.node_sound_metal,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 998 B After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 396 B |
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 616 B |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 613 B |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 849 B After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 438 B |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 467 B |
@ -1,11 +1,6 @@
|
||||
|
||||
-- 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",
|
||||
@ -17,7 +12,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
minetest.register_tool("elepower_dynamics:pick_lead", {
|
||||
@ -31,7 +26,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
-- Shovels
|
||||
@ -48,7 +43,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=3},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
minetest.register_tool("elepower_dynamics:shovel_lead", {
|
||||
@ -63,7 +58,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
-- Axes
|
||||
@ -79,7 +74,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
minetest.register_tool("elepower_dynamics:axe_lead", {
|
||||
@ -93,7 +88,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
-- Swords
|
||||
@ -109,7 +104,7 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
minetest.register_tool("elepower_dynamics:sword_lead", {
|
||||
@ -123,7 +118,5 @@ if ele.external.tools.enable_iron_lead_tools == true then
|
||||
},
|
||||
damage_groups = {fleshy=7},
|
||||
},
|
||||
sound = {breaks = eps.tool_breaks},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
end
|
@ -1,17 +1,14 @@
|
||||
|
||||
-- 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 = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 12,
|
||||
clust_size = 3,
|
||||
@ -22,7 +19,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_lead",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 14 * 14 * 14,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -33,7 +30,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_lead",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -46,7 +43,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_nickel",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 25 * 25 * 25,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
@ -57,7 +54,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_nickel",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 25 * 25 * 25,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
@ -68,7 +65,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_nickel",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -79,7 +76,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_nickel",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 12 * 12 * 12,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -92,7 +89,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_viridisium",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 25 * 25 * 25,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -103,7 +100,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_viridisium",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 20 * 20 * 20,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -114,7 +111,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_viridisium",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -127,7 +124,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_zinc",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 25 * 25 * 25,
|
||||
clust_num_ores = 2,
|
||||
clust_size = 3,
|
||||
@ -138,7 +135,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_zinc",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 20 * 20 * 20,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
@ -149,7 +146,7 @@ minetest.register_ore({
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "elepower_dynamics:stone_with_zinc",
|
||||
wherein = epr.stone,
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 12 * 12 * 12,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
|
@ -1,8 +1,4 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epi = ele.external.ing
|
||||
|
||||
-----------
|
||||
-- Nodes --
|
||||
-----------
|
||||
@ -11,9 +7,9 @@ local epi = ele.external.ing
|
||||
minetest.register_craft({
|
||||
output = "elepower_farming:device_frame",
|
||||
recipe = {
|
||||
{"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"},
|
||||
{"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"},
|
||||
}
|
||||
})
|
||||
|
||||
@ -22,7 +18,7 @@ minetest.register_craft({
|
||||
output = "elepower_farming:planter",
|
||||
recipe = {
|
||||
{"elepower_dynamics:nickel_ingot", "elepower_dynamics:control_circuit", "elepower_dynamics:nickel_ingot"},
|
||||
{epi.hoe_steel, "elepower_farming:device_frame", epi.hoe_steel},
|
||||
{"farming:hoe_steel", "elepower_farming:device_frame", "farming:hoe_steel"},
|
||||
{"elepower_dynamics:wound_copper_coil", "basic_materials:motor", "elepower_dynamics:wound_copper_coil"},
|
||||
}
|
||||
})
|
||||
@ -32,7 +28,7 @@ minetest.register_craft({
|
||||
output = "elepower_farming:harvester",
|
||||
recipe = {
|
||||
{"elepower_dynamics:nickel_ingot", "elepower_dynamics:control_circuit", "elepower_dynamics:nickel_ingot"},
|
||||
{epi.axe_steel, "elepower_farming:device_frame", epi.hoe_steel},
|
||||
{"default:axe_steel", "elepower_farming:device_frame", "farming:hoe_steel"},
|
||||
{"basic_materials:motor", "elepower_dynamics:diamond_gear", "basic_materials:motor"},
|
||||
}
|
||||
})
|
||||
|
@ -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"},
|
||||
use_texture_alpha = "blend",
|
||||
alpha = 200,
|
||||
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"},
|
||||
use_texture_alpha = "blend",
|
||||
alpha = 200,
|
||||
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"},
|
||||
use_texture_alpha = "blend",
|
||||
alpha = 200,
|
||||
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"},
|
||||
use_texture_alpha = "blend",
|
||||
alpha = 200,
|
||||
liquid_viscosity = 7,
|
||||
post_effect_color = {a = 103, r = 255, g = 163, b = 0},
|
||||
groups = {biofuel = 3, liquid = 3},
|
||||
|
@ -1,13 +1,9 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epr = ele.external.ref
|
||||
|
||||
local function get_formspec(timer, biomass_buffer, output_buffer)
|
||||
return "size[8,8.5]"..
|
||||
epr.gui_bg..
|
||||
epr.gui_bg_img..
|
||||
epr.gui_slots..
|
||||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.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;]"..
|
||||
@ -18,7 +14,7 @@ local function get_formspec(timer, biomass_buffer, output_buffer)
|
||||
"listring[current_player;main]"..
|
||||
"listring[context;src]"..
|
||||
"listring[current_player;main]"..
|
||||
epr.get_hotbar_bg(0, 4.25)
|
||||
default.get_hotbar_bg(0, 4.25)
|
||||
end
|
||||
|
||||
local function is_plant(itemname)
|
||||
|
@ -1,8 +1,4 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epr = ele.external.ref
|
||||
|
||||
-- How many seconds there are between runs
|
||||
local HARVESTER_TICK = 10
|
||||
|
||||
@ -85,9 +81,9 @@ end
|
||||
|
||||
local function get_formspec(timer, power, sludge, state)
|
||||
return "size[8,8.5]"..
|
||||
epr.gui_bg..
|
||||
epr.gui_bg_img..
|
||||
epr.gui_slots..
|
||||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
ele.formspec.state_switcher(7, 2.5, state)..
|
||||
ele.formspec.power_meter(power)..
|
||||
ele.formspec.fluid_bar(7, 0, sludge)..
|
||||
@ -97,7 +93,7 @@ local function get_formspec(timer, power, sludge, state)
|
||||
"list[current_player;main;0,5.5;8,3;8]"..
|
||||
"listring[context;dst]"..
|
||||
"listring[current_player;main]"..
|
||||
epr.get_hotbar_bg(0, 4.25)
|
||||
default.get_hotbar_bg(0, 4.25)
|
||||
end
|
||||
|
||||
local function on_timer(pos, elapsed)
|
||||
|
@ -1,9 +1,4 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local eps = ele.external.sounds
|
||||
local epi = ele.external.ing
|
||||
|
||||
-- How many seconds there are between runs
|
||||
local PLANTER_TICK = 10
|
||||
|
||||
@ -57,30 +52,21 @@ 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]"
|
||||
"listring[current_player;main]"..
|
||||
default.get_hotbar_bg(0, 5.75)
|
||||
end
|
||||
|
||||
local function can_dig(pos, player)
|
||||
@ -132,7 +118,6 @@ 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)
|
||||
@ -147,7 +132,6 @@ local function plant(pos, range, stack, inv)
|
||||
end
|
||||
|
||||
local to_plant = stack:get_name()
|
||||
|
||||
local to_place = nil
|
||||
local amount = 0
|
||||
local till = true
|
||||
@ -172,7 +156,6 @@ 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)
|
||||
|
||||
@ -185,26 +168,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[epi.farming_soil] == nil then
|
||||
regN["farming:soil"] == nil then
|
||||
till = false
|
||||
end
|
||||
|
||||
if till then
|
||||
minetest.sound_play(eps.dig_crumbly, {
|
||||
minetest.sound_play("default_dig_crumbly", {
|
||||
pos = base_pos,
|
||||
gain = 0.5,
|
||||
})
|
||||
|
||||
local soil = regN[base_node.name].soil
|
||||
local wet_soil = epi.farming_soil_wet
|
||||
local wet_soil = "farming:soil_wet"
|
||||
|
||||
-- Determine soil name
|
||||
-- Make sure we don't replace wet soil
|
||||
if soil then
|
||||
wet_soil = soil.wet or epi_farming_soil_wet
|
||||
wet_soil = soil.wet or "farming:soil_wet"
|
||||
soil = soil.dry
|
||||
else
|
||||
soil = epi.farming_soil
|
||||
soil = "farming:soil"
|
||||
end
|
||||
|
||||
if base_node.name ~= soil and base_node.name ~= wet_soil then
|
||||
@ -258,7 +241,6 @@ local function on_timer(pos, elapsed)
|
||||
if work == PLANTER_TICK then
|
||||
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)
|
||||
|
@ -1,8 +1,4 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epr = ele.external.ref
|
||||
|
||||
-- How many seconds there are between runs
|
||||
local SPAWNER_TICK = 10
|
||||
|
||||
@ -95,9 +91,9 @@ end
|
||||
|
||||
local function get_formspec(timer, power, state)
|
||||
return "size[8,8.5]"..
|
||||
epr.gui_bg..
|
||||
epr.gui_bg_img..
|
||||
epr.gui_slots..
|
||||
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)..
|
||||
@ -108,7 +104,7 @@ local function get_formspec(timer, power, state)
|
||||
"listring[current_player;main]"..
|
||||
"listring[context;src]"..
|
||||
"listring[current_player;main]"..
|
||||
epr.get_hotbar_bg(0, 4.25)
|
||||
default.get_hotbar_bg(0, 4.25)
|
||||
end
|
||||
|
||||
local function on_timer(pos, elapsed)
|
||||
|
@ -1,16 +1,12 @@
|
||||
|
||||
-- see elepower_papi >> external_nodes_items.lua for explanation
|
||||
-- shorten table ref
|
||||
local epi = ele.external.ing
|
||||
|
||||
local CAPACITY = 8000
|
||||
|
||||
local fluid_table = {
|
||||
[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" },
|
||||
["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" },
|
||||
}
|
||||
|
||||
minetest.register_node("elepower_farming:tree_extractor", {
|
||||
|