Merge 97f768f808
into 7013f2e5d4
|
@ -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'},
|
||||
}
|
||||
})
|
||||
|
|
After Width: | Height: | Size: 892 B |
After Width: | Height: | Size: 795 B |
After Width: | Height: | Size: 350 B |
|
@ -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
|
|
@ -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")
|
||||
|
|
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 369 B |