diff --git a/mesecons_extrawires/mesewire.lua b/mesecons_extrawires/mesewire.lua index 455f75f..ab88040 100644 --- a/mesecons_extrawires/mesewire.lua +++ b/mesecons_extrawires/mesewire.lua @@ -8,6 +8,7 @@ local mesewire_rules = {x = 0, y = 0, z =-1}, } +-- The sweet taste of a default override minetest.override_item("default:mese", { mesecons = {conductor = { state = mesecon.state.off, @@ -16,22 +17,57 @@ minetest.override_item("default:mese", { }} }) --- Copy node definition of powered mese from normal mese --- and brighten texture tiles to indicate mese is powered -local powered_def = mesecon.mergetable(minetest.registered_nodes["default:mese"], { +-- Now I got my own sweet Mese pixels, let's use those +minetest.register_node("mesecons_extrawires:mese_powered", { + description = "Meseblock On", + tiles = {"mesecons_meseblock_on.png"}, + light_source = 6, drop = "default:mese", - light_source = 5, + is_ground_content = false, + groups = {cracky = 3, level = 2}, mesecons = {conductor = { state = mesecon.state.on, offstate = "default:mese", rules = mesewire_rules - }}, - groups = {cracky = 1, not_in_creative_inventory = 1}, - on_blast = mesecon.on_blastnode, + }} + }) -for i, v in pairs(powered_def.tiles) do - powered_def.tiles[i] = v .. "^[brighten" -end +-- And now for some insanity +-- Lets add an Off state CobbleCon here +minetest.register_node("mesecons_extrawires:mese_cobble_off", { + description = "Mese Cobble Off", + tiles = {"mesecons_cobblecon_off.png"}, + is_ground_content = false, + groups = {cracky = 3, level = 2}, + mesecons = {conductor = { + state = mesecon.state.off, + onstate = "mesecons_extrawires:mese_cobble_on", + rules = mesewire_rules + }} +}) -minetest.register_node("mesecons_extrawires:mese_powered", powered_def) +-- Finishing strange with an On state Cobblecon here +minetest.register_node("mesecons_extrawires:mese_cobble_on", { + description = "Mese Cobble On", + tiles = {"mesecons_cobblecon_on.png"}, + light_source = 4, + drop = "mesecons_extrawires:mese_cobble_off", + is_ground_content = false, + groups = {cracky = 3, level = 2}, + mesecons = {conductor = { + state = mesecon.state.on, + offstate = "mesecons_extrawires:mese_cobble_off", + rules = mesewire_rules + }} +}) + +-- Ok ok, get out of the kitchen you, here's the recipe +minetest.register_craft({ + output = 'mesecons_extrawires:mese_cobble_off 5', + recipe = { + {'default:cobble', 'mesecons:wire_00000000_off', 'default:cobble'}, + {'mesecons:wire_00000000_off', 'default:cobble', 'mesecons:wire_00000000_off'}, + {'default:cobble', 'mesecons:wire_00000000_off', 'default:cobble'}, + } +}) diff --git a/mesecons_extrawires/textures/mesecons_cobblecon_off.png b/mesecons_extrawires/textures/mesecons_cobblecon_off.png new file mode 100644 index 0000000..d39444b Binary files /dev/null and b/mesecons_extrawires/textures/mesecons_cobblecon_off.png differ diff --git a/mesecons_extrawires/textures/mesecons_cobblecon_on.png b/mesecons_extrawires/textures/mesecons_cobblecon_on.png new file mode 100644 index 0000000..fabe37b Binary files /dev/null and b/mesecons_extrawires/textures/mesecons_cobblecon_on.png differ diff --git a/mesecons_extrawires/textures/mesecons_meseblock_on.png b/mesecons_extrawires/textures/mesecons_meseblock_on.png new file mode 100644 index 0000000..eadd9d1 Binary files /dev/null and b/mesecons_extrawires/textures/mesecons_meseblock_on.png differ diff --git a/mesecons_extrawires/textures/randomread.txt b/mesecons_extrawires/textures/randomread.txt new file mode 100644 index 0000000..46fcd43 --- /dev/null +++ b/mesecons_extrawires/textures/randomread.txt @@ -0,0 +1,3 @@ +-- This is just a place holder to inject pixel art to this fork. +-- By the way, these pixels are variants of the original default:mese and default:cobble nodes. +-- Modified by myself using gimp diff --git a/mesecons_lightstone/init.lua b/mesecons_lightstone/init.lua index 4e56ba2..cd05bb8 100644 --- a/mesecons_lightstone/init.lua +++ b/mesecons_lightstone/init.lua @@ -62,8 +62,8 @@ end mesecon.lightstone_add("red", "dye:red", "jeija_lightstone_red_off.png", "jeija_lightstone_red_on.png", "Red Lightstone") mesecon.lightstone_add("green", "dye:green", "jeija_lightstone_green_off.png", "jeija_lightstone_green_on.png", "Green Lightstone") mesecon.lightstone_add("blue", "dye:blue", "jeija_lightstone_blue_off.png", "jeija_lightstone_blue_on.png", "Blue Lightstone") -mesecon.lightstone_add("gray", "dye:grey", "jeija_lightstone_gray_off.png", "jeija_lightstone_gray_on.png", "Grey Lightstone") -mesecon.lightstone_add("darkgray", "dye:dark_grey", "jeija_lightstone_darkgray_off.png", "jeija_lightstone_darkgray_on.png", "Dark Grey Lightstone") +mesecon.lightstone_add("grey", "dye:grey", "jeija_lightstone_grey_off.png", "jeija_lightstone_grey_on.png", "Grey Lightstone") +mesecon.lightstone_add("darkgrey", "dye:dark_grey", "jeija_lightstone_darkgrey_off.png", "jeija_lightstone_darkgrey_on.png", "Dark Grey Lightstone") mesecon.lightstone_add("yellow", "dye:yellow", "jeija_lightstone_yellow_off.png", "jeija_lightstone_yellow_on.png", "Yellow Lightstone") mesecon.lightstone_add("orange", "dye:orange", "jeija_lightstone_orange_off.png", "jeija_lightstone_orange_on.png", "Orange Lightstone") mesecon.lightstone_add("white", "dye:white", "jeija_lightstone_white_off.png", "jeija_lightstone_white_on.png", "White Lightstone") diff --git a/mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png b/mesecons_lightstone/textures/jeija_lightstone_darkgrey_off.png similarity index 100% rename from mesecons_lightstone/textures/jeija_lightstone_darkgray_off.png rename to mesecons_lightstone/textures/jeija_lightstone_darkgrey_off.png diff --git a/mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png b/mesecons_lightstone/textures/jeija_lightstone_darkgrey_on.png similarity index 100% rename from mesecons_lightstone/textures/jeija_lightstone_darkgray_on.png rename to mesecons_lightstone/textures/jeija_lightstone_darkgrey_on.png diff --git a/mesecons_lightstone/textures/jeija_lightstone_gray_off.png b/mesecons_lightstone/textures/jeija_lightstone_grey_off.png similarity index 100% rename from mesecons_lightstone/textures/jeija_lightstone_gray_off.png rename to mesecons_lightstone/textures/jeija_lightstone_grey_off.png diff --git a/mesecons_lightstone/textures/jeija_lightstone_gray_on.png b/mesecons_lightstone/textures/jeija_lightstone_grey_on.png similarity index 100% rename from mesecons_lightstone/textures/jeija_lightstone_gray_on.png rename to mesecons_lightstone/textures/jeija_lightstone_grey_on.png diff --git a/mesecons_lightstone/textures/jeija_lightstone_white_off.png b/mesecons_lightstone/textures/jeija_lightstone_white_off.png index 78338c8..f523814 100644 Binary files a/mesecons_lightstone/textures/jeija_lightstone_white_off.png and b/mesecons_lightstone/textures/jeija_lightstone_white_off.png differ diff --git a/mesecons_lightstone/textures/jeija_lightstone_white_on.png b/mesecons_lightstone/textures/jeija_lightstone_white_on.png index 792d89d..828926f 100644 Binary files a/mesecons_lightstone/textures/jeija_lightstone_white_on.png and b/mesecons_lightstone/textures/jeija_lightstone_white_on.png differ