Skip to content

Commit

Permalink
elepower lighting initial and elepower inventory update
Browse files Browse the repository at this point in the history
Breaking Update:
~ elepower lighting added
  ~ light bulbs
  ~ flood lights
  ~ led panels
  ~ decorative shades
  ~ added to tome
~ improvements to dynamics inventory images
~ improvements to machine recipe storage
~ tome support for new recipes
~ additional elepower conduit types added with lighting and base
~ changes to compressing from 1 recipe slot to 2 slots (potential breaking change)
  • Loading branch information
sirrobzeroone committed Aug 8, 2021
1 parent 209b8a7 commit 56d89df
Show file tree
Hide file tree
Showing 187 changed files with 4,728 additions and 125 deletions.
107 changes: 93 additions & 14 deletions elepower_dynamics/compat/basic_materials.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,53 @@ if minetest.get_modpath("basic_materials") == nil then

minetest.register_craftitem(":basic_materials:oil_extract", {
description = "Oil Extract",
inventory_image = "elepower_oil_extract.png",
inventory_image = "elepower_bm_oil_extract.png",
})

minetest.register_craftitem(":basic_materials:paraffin", {
description = "Unprocessed Paraffin",
inventory_image = "elepower_paraffin.png",
inventory_image = "elepower_bm_paraffin.png",
})

minetest.register_alias("basic_materials:plastic_base", "basic_materials:paraffin")
minetest.register_alias("homedecor:plastic_base", "basic_materials:paraffin")
minetest.register_alias("homedecor:paraffin", "basic_materials:paraffin")
minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
minetest.register_alias("homedecor:oil_extract", "basic_materials:oil_extract")
minetest.register_alias("homedecor:plastic_sheeting", "basic_materials:plastic_sheet")
minetest.register_alias("homedecor:plastic_strips", "basic_materials:plastic_strip")
minetest.register_alias("homedecor:empty_spool", "basic_materials:empty_spool")

minetest.register_craftitem(":basic_materials:plastic_sheet", {
description = "Plastic Sheet",
inventory_image = "elepower_plastic_sheet.png",
inventory_image = "elepower_bm_plastic_sheet.png",
})

minetest.register_craftitem(":basic_materials:plastic_strip", {
description = "Plastic Strips",
groups = { strip = 1 },
inventory_image = "elepower_bm_strip.png^[colorize:#ffffff:200",
})

minetest.register_craftitem(":basic_materials:empty_spool", {
description = "Empty wire spool",
inventory_image = "elepower_bm_empty_spool.png"
})


minetest.register_craft( {
output = "basic_materials:plastic_strip 9",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
})

minetest.register_craft( {
output = "basic_materials:empty_spool 3",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "" , "basic_materials:plastic_sheet", "" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
})

minetest.register_craft({
Expand Down Expand Up @@ -74,17 +104,18 @@ if minetest.get_modpath("basic_materials") == nil then

minetest.register_craftitem(":basic_materials:copper_wire", {
description = "Copper Wire",
inventory_image = "elepower_copper_wire.png",
inventory_image = "elepower_bm_copper_wire.png",
groups = {copper = 1, wire = 1, component = 1}
})

minetest.register_craft({
output = "basic_materials:copper_wire 8",
minetest.register_craft( {
output = "basic_materials:copper_wire 2",
type = "shapeless",
recipe = {
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{"default:copper_ingot", "", "default:copper_ingot"},
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"}
}
"default:copper_ingot",
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
})

-----------
Expand All @@ -93,7 +124,7 @@ if minetest.get_modpath("basic_materials") == nil then

minetest.register_craftitem(":basic_materials:motor", {
description = "Motor",
inventory_image = "elepower_motor.png",
inventory_image = "elepower_bm_motor.png",
groups = {motor = 1, component = 1}
})

Expand All @@ -112,7 +143,7 @@ if minetest.get_modpath("basic_materials") == nil then

minetest.register_craftitem(":basic_materials:silicon", {
description = "Silicon",
inventory_image = "elepower_silicon.png",
inventory_image = "elepower_bm_silicon.png",
groups = {silicon = 1, lump = 1}
})

Expand All @@ -125,6 +156,54 @@ if minetest.get_modpath("basic_materials") == nil then
inventory_image = "elepower_brass_ingot.png",
groups = {brass = 1, ingot = 1}
})

-----------
-- STEEL --
-----------

minetest.register_craftitem(":basic_materials:steel_strip", {
description = "Steel Strip",
groups = { strip = 1 },
inventory_image = "elepower_bm_strip.png^[multiply:#ffffff"
})

minetest.register_craftitem(":basic_materials:steel_wire", {
description = "Spool of steel wire",
groups = { wire = 1 },
inventory_image = "elepower_bm_steel_wire.png"
})

minetest.register_craft( {
output = "basic_materials:steel_wire 2",
type = "shapeless",
recipe = {
"default:steel_ingot",
"basic_materials:empty_spool",
"basic_materials:empty_spool",
},
})

minetest.register_craft( {
output = "basic_materials:steel_strip 12",
recipe = {
{ "", "default:steel_ingot", "" },
{ "default:steel_ingot", "", "" },
},
})

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
12 changes: 10 additions & 2 deletions elepower_dynamics/components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ local list_def = {
{material = "viridisium", description = "Viridisium", color = "#5b9751", dust = true, plate = true, gear = true},
{material = "zinc", description = "Zinc", color = "#598a9e", dust = true, plate = true},
{material = "coal", description = "Coal", color = "#1f1f1f", dust = true},
{material = "mese", description = "Mese", color = "#fdff2d99", dust = true},
{material = "wood", description = "Wood", color = "#847454", dust = "Sawdust", gear = true}
}

Expand Down Expand Up @@ -50,7 +51,12 @@ 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

Expand All @@ -60,9 +66,11 @@ function elepd.register_dust(mat, data)
description = data.description
end



minetest.register_craftitem(itemname, {
description = description,
inventory_image = "elepower_dust.png^[multiply:" .. data.color,
inventory_image = image,
groups = {
["dust_" .. mat] = 1,
dust = 1
Expand Down
60 changes: 56 additions & 4 deletions elepower_dynamics/conduits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,67 @@ ele.register_conduit("elepower_dynamics:conduit", {
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_machine_side.png^elepower_power_port.png"},
tiles = {"elepower_conduit_wall.png"},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {oddly_breakable_by_hand = 1, cracky = 1}
groups = {cracky = 1}
})

ele.register_conduit("elepower_dynamics:conduit_dirt_with_grass", {
description = "Power Conduit Grass Outlet",
tiles = {"default_grass.png^elepower_conduit_node_socket.png",
"default_dirt.png",
"default_dirt.png^default_grass_side.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25}
})
})

ele.register_conduit("elepower_dynamics:conduit_dirt_with_dry_grass", {
description = "Power Conduit Dry Grass Outlet",
tiles = {"default_dry_grass.png^elepower_conduit_node_socket.png",
"default_dirt.png",
"default_dirt.png^default_dry_grass_side.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25}
})
})
--]]

ele.register_conduit("elepower_dynamics:conduit_stone_block", {
description = "Power Conduit Stone Block",
tiles = {"default_stone_block.png^elepower_conduit_node_socket.png",
"default_stone_block.png^elepower_conduit_node_socket.png",
"default_stone_block.png^elepower_conduit_node_socket.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})

ele.register_conduit("elepower_dynamics:conduit_stone_block_desert", {
description = "Power Conduit Desert Stone Block",
tiles = {"default_desert_stone_block.png^elepower_conduit_node_socket.png",
"default_desert_stone_block.png^elepower_conduit_node_socket.png",
"default_desert_stone_block.png^elepower_conduit_node_socket.png"
},
use_texture_alpha = "clip",
ele_conductor_density = 4/8,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})

-- Fluid
fluid_lib.register_transfer_node("elepower_dynamics:opaque_duct", {
description = "Opaque Fluid Duct",
Expand Down
47 changes: 47 additions & 0 deletions elepower_dynamics/crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,53 @@ 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",""}
}
})

minetest.register_craft({
output = "elepower_dynamics:conduit_dirt_with_grass 1",
recipe = {
{"","farming:seed_wheat",""},
{"","elepower_dynamics:conduit" ,""},
{"","default:dirt" ,""}
}
})

minetest.register_craft({
output = "elepower_dynamics:conduit_dirt_with_dry_grass 1",
recipe = {
{"","farming:wheat",""},
{"","elepower_dynamics:conduit" ,""},
{"","default:dirt" ,""}
}
})

minetest.register_craft({
output = "elepower_dynamics:conduit_stone_block 1",
recipe = {
{"" ,"stairs:slab_stone_block" ,""},
{"stairs:slab_stone_block","elepower_dynamics:conduit","stairs:slab_stone_block"},
{"" ,"stairs:slab_stone_block" ,""}
}
})

minetest.register_craft({
output = "elepower_dynamics:conduit_stone_block_desert 1",
recipe = {
{"" ,"stairs:slab_desert_stone_block" ,""},
{"stairs:slab_desert_stone_block","elepower_dynamics:conduit","stairs:slab_desert_stone_block"},
{"" ,"stairs:slab_desert_stone_block" ,""}
}
})



-- Opaque Fluid Duct
minetest.register_craft({
output = "elepower_dynamics:opaque_duct 3",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_coil.xcf
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_dust.xcf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_ic.xcf
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_ic_2.xcf
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_ic_3.xcf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_pcb.xcf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added elepower_dynamics/textures/GIMP/elepower_soc.xcf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified elepower_dynamics/textures/elepower_acidic_compound.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_battery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_blank_pcb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elepower_dynamics/textures/elepower_bm_motor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added elepower_dynamics/textures/elepower_bm_strip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_capacitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_carbon_fiber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_carbon_fiber_sheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_chip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_copper_coil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_dust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_gas_chlorine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_gas_container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_gas_helium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_gas_hydrogen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_gas_lithium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified elepower_dynamics/textures/elepower_gas_nitrogen.png
Binary file modified elepower_dynamics/textures/elepower_gas_oxygen.png
Binary file modified elepower_dynamics/textures/elepower_gear.png
Binary file modified elepower_dynamics/textures/elepower_graphite_rod.png
Binary file modified elepower_dynamics/textures/elepower_ic.png
Binary file modified elepower_dynamics/textures/elepower_ic_2.png
Binary file modified elepower_dynamics/textures/elepower_ic_3.png
Binary file modified elepower_dynamics/textures/elepower_induction_coil.png
Binary file modified elepower_dynamics/textures/elepower_induction_coil_advanced.png
Binary file modified elepower_dynamics/textures/elepower_lcd_panel.png
Binary file modified elepower_dynamics/textures/elepower_microcontroller.png
Binary file modified elepower_dynamics/textures/elepower_pcb.png
Binary file modified elepower_dynamics/textures/elepower_plate.png
Binary file modified elepower_dynamics/textures/elepower_pv_cell.png
Binary file modified elepower_dynamics/textures/elepower_servo_valve.png
Binary file modified elepower_dynamics/textures/elepower_silicon_wafer.png
Binary file modified elepower_dynamics/textures/elepower_silicon_wafer_solar.png
Binary file modified elepower_dynamics/textures/elepower_silver_coil.png
Binary file modified elepower_dynamics/textures/elepower_soc.png
Binary file modified elepower_dynamics/textures/elepower_tin_can.png
Binary file modified elepower_dynamics/textures/elepower_tree_tap.png
Binary file modified elepower_dynamics/textures/elepower_uv_bulb.png
Loading

0 comments on commit 56d89df

Please sign in to comment.