diff options
21 files changed, 91 insertions, 29 deletions
diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index aba1f5f..42f4de1 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -1,36 +1,56 @@ -- WALL BUTTON minetest.register_node("mesecons_button:button_off", { drawtype = "nodebox", - tile_images = {"jeija_wall_button_off.png"}, + tiles = { + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_off.png" + }, paramtype = "light", paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, selection_box = { type = "fixed", - fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5}, + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } }, node_box = { - type = "fixed", - fixed = {-0.2, -0.15, 0.3, 0.2, 0.15, 0.5}, + type = "fixed", + fixed = { + { -6/16, -6/16, 7/16, 6/16, 6/16, 8/16 }, -- the thin plate behind the button + { -4/16, -2/16, 5/16, 4/16, 2/16, 7/16 } -- the button itself + } }, groups = {dig_immediate=2}, description = "Button", }) minetest.register_node("mesecons_button:button_on", { drawtype = "nodebox", - tile_images = {"jeija_wall_button_on.png"}, + tiles = { + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_sides.png", + "jeija_wall_button_on.png" + }, paramtype = "light", paramtype2 = "facedir", legacy_wallmounted = true, walkable = false, selection_box = { type = "fixed", - fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5}, + fixed = { -6/16, -6/16, 5/16, 6/16, 6/16, 8/16 } }, node_box = { type = "fixed", - fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5}, + fixed = { + { -6/16, -6/16, 7/16, 6/16, 6/16, 8/16 }, + { -4/16, -2/16, 13/32, 4/16, 2/16, 7/16 } + } }, groups = {dig_immediate=2, not_in_creative_inventory=1}, drop = 'mesecons_button:button_off', diff --git a/mesecons_delayer/init.lua b/mesecons_delayer/init.lua index 03d73c2..282147f 100644 --- a/mesecons_delayer/init.lua +++ b/mesecons_delayer/init.lua @@ -1,7 +1,10 @@ minetest.register_node("mesecons_delayer:delayer_off_1", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_off_1.png"}, + tiles = { + "mesecons_delayer_off_1.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_off_1.png", wield_image = "mesecons_delayer_off_1.png", walkable = false, @@ -24,7 +27,10 @@ minetest.register_node("mesecons_delayer:delayer_off_1", { minetest.register_node("mesecons_delayer:delayer_off_2", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_off_2.png"}, + tiles = { + "mesecons_delayer_off_2.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_off_2.png", walkable = false, selection_box = { @@ -46,7 +52,10 @@ minetest.register_node("mesecons_delayer:delayer_off_2", { minetest.register_node("mesecons_delayer:delayer_off_3", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_off_3.png"}, + tiles = { + "mesecons_delayer_off_3.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_off_3.png", walkable = false, selection_box = { @@ -68,7 +77,10 @@ minetest.register_node("mesecons_delayer:delayer_off_3", { minetest.register_node("mesecons_delayer:delayer_off_4", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_off_4.png"}, + tiles = { + "mesecons_delayer_off_4.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_off_4.png", walkable = false, selection_box = { @@ -90,7 +102,10 @@ minetest.register_node("mesecons_delayer:delayer_off_4", { minetest.register_node("mesecons_delayer:delayer_on_1", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_on_1.png"}, + tiles = { + "mesecons_delayer_on_1.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_on_1.png", walkable = false, selection_box = { @@ -112,7 +127,10 @@ minetest.register_node("mesecons_delayer:delayer_on_1", { minetest.register_node("mesecons_delayer:delayer_on_2", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_on_2.png"}, + tiles = { + "mesecons_delayer_on_2.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_on_2.png", walkable = false, selection_box = { @@ -134,7 +152,10 @@ minetest.register_node("mesecons_delayer:delayer_on_2", { minetest.register_node("mesecons_delayer:delayer_on_3", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_on_3.png"}, + tiles = { + "mesecons_delayer_on_3.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_on_3.png", walkable = false, selection_box = { @@ -156,7 +177,10 @@ minetest.register_node("mesecons_delayer:delayer_on_3", { minetest.register_node("mesecons_delayer:delayer_on_4", { description = "Delayer", drawtype = "nodebox", - tile_images = {"mesecons_delayer_on_4.png"}, + tiles = { + "mesecons_delayer_on_4.png", + "mesecons_delayer_sides.png" + }, inventory_image = "mesecons_delayer_on_4.png", walkable = false, selection_box = { diff --git a/mesecons_delayer/textures/mesecons_delayer_off_1.png b/mesecons_delayer/textures/mesecons_delayer_off_1.png Binary files differindex 7c58076..42344b2 100644 --- a/mesecons_delayer/textures/mesecons_delayer_off_1.png +++ b/mesecons_delayer/textures/mesecons_delayer_off_1.png diff --git a/mesecons_delayer/textures/mesecons_delayer_off_2.png b/mesecons_delayer/textures/mesecons_delayer_off_2.png Binary files differindex 91f2b6b..e560a55 100644 --- a/mesecons_delayer/textures/mesecons_delayer_off_2.png +++ b/mesecons_delayer/textures/mesecons_delayer_off_2.png diff --git a/mesecons_delayer/textures/mesecons_delayer_off_3.png b/mesecons_delayer/textures/mesecons_delayer_off_3.png Binary files differindex 6564bcf..01a7503 100644 --- a/mesecons_delayer/textures/mesecons_delayer_off_3.png +++ b/mesecons_delayer/textures/mesecons_delayer_off_3.png diff --git a/mesecons_delayer/textures/mesecons_delayer_off_4.png b/mesecons_delayer/textures/mesecons_delayer_off_4.png Binary files differindex ef05d3c..deed284 100644 --- a/mesecons_delayer/textures/mesecons_delayer_off_4.png +++ b/mesecons_delayer/textures/mesecons_delayer_off_4.png diff --git a/mesecons_delayer/textures/mesecons_delayer_on_1.png b/mesecons_delayer/textures/mesecons_delayer_on_1.png Binary files differindex 5804969..cb1b364 100644 --- a/mesecons_delayer/textures/mesecons_delayer_on_1.png +++ b/mesecons_delayer/textures/mesecons_delayer_on_1.png diff --git a/mesecons_delayer/textures/mesecons_delayer_on_2.png b/mesecons_delayer/textures/mesecons_delayer_on_2.png Binary files differindex 02eb698..2174891 100644 --- a/mesecons_delayer/textures/mesecons_delayer_on_2.png +++ b/mesecons_delayer/textures/mesecons_delayer_on_2.png diff --git a/mesecons_delayer/textures/mesecons_delayer_on_3.png b/mesecons_delayer/textures/mesecons_delayer_on_3.png Binary files differindex c0e8376..5602df0 100644 --- a/mesecons_delayer/textures/mesecons_delayer_on_3.png +++ b/mesecons_delayer/textures/mesecons_delayer_on_3.png diff --git a/mesecons_delayer/textures/mesecons_delayer_on_4.png b/mesecons_delayer/textures/mesecons_delayer_on_4.png Binary files differindex 1e1273e..2a14de7 100644 --- a/mesecons_delayer/textures/mesecons_delayer_on_4.png +++ b/mesecons_delayer/textures/mesecons_delayer_on_4.png diff --git a/mesecons_delayer/textures/mesecons_delayer_sides.png b/mesecons_delayer/textures/mesecons_delayer_sides.png Binary files differnew file mode 100644 index 0000000..3e21e53 --- /dev/null +++ b/mesecons_delayer/textures/mesecons_delayer_sides.png diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 1ece13a..cad6870 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -6,7 +6,7 @@ minetest.register_node("mesecons_lamp:lamp_on", { paramtype2 = "wallmounted", legacy_wallmounted = true, sunlight_propagates = true, - walkable = false, + walkable = true, light_source = LIGHT_MAX, node_box = { type = "wallmounted", @@ -32,7 +32,7 @@ minetest.register_node("mesecons_lamp:lamp_off", { paramtype = "light", paramtype2 = "wallmounted", sunlight_propagates = true, - walkable = false, + walkable = true, node_box = { type = "wallmounted", wall_top = {-0.3125,0.375,-0.3125,0.3125,0.5,0.3125}, @@ -70,4 +70,4 @@ mesecon:register_on_signal_off(function(pos, node) minetest.env:add_node(pos, {name="mesecons_lamp:lamp_off", param2 = node.param2}) nodeupdate(pos) end -end)
\ No newline at end of file +end) diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index b3269bc..ccb5630 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -2,7 +2,7 @@ --registration normal one: minetest.register_node("mesecons_pistons:piston_normal", { description = "Piston", - tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"}, + tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"}, groups = {cracky=3}, paramtype2 = "facedir", after_dig_node = function(pos, oldnode) @@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_normal", { --registration sticky one: minetest.register_node("mesecons_pistons:piston_sticky", { description = "Sticky Piston", - tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"}, + tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"}, groups = {cracky=3}, paramtype2 = "facedir", after_dig_node = function(pos, oldnode) @@ -58,7 +58,7 @@ minetest.register_craft({ minetest.register_node("mesecons_pistons:piston_pusher_normal", { drawtype = "nodebox", - tile_images = {"jeija_piston_pusher_normal.png"}, + tiles = {"jeija_piston_pusher_normal.png"}, paramtype = "light", paramtype2 = "facedir", diggable = false, @@ -83,7 +83,14 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_pusher_sticky") minetest.register_node("mesecons_pistons:piston_pusher_sticky", { drawtype = "nodebox", - tile_images = {"jeija_piston_pusher_sticky.png"}, + tiles = { + "jeija_piston_pusher_normal.png", + "jeija_piston_pusher_normal.png", + "jeija_piston_pusher_normal.png", + "jeija_piston_pusher_normal.png", + "jeija_piston_pusher_normal.png", + "jeija_piston_pusher_sticky.png" + }, paramtype = "light", paramtype2 = "facedir", diggable = false, @@ -211,4 +218,4 @@ function mesecon:piston_get_direction(node) else --node.param2 == 0 return {x=0, y=0, z=-1} end -end
\ No newline at end of file +end diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index ae213c6..8a47b22 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -7,7 +7,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { wield_image = "jeija_pressure_plate_wood_off.png", paramtype = "light", is_ground_content = true, - walkable = false, + walkable = true, selection_box = { type = "fixed", fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45}, @@ -25,7 +25,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { tile_images = {"jeija_pressure_plate_wood_on.png"}, paramtype = "light", is_ground_content = true, - walkable = false, + walkable = true, selection_box = { type = "fixed", fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45}, @@ -89,7 +89,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", { wield_image = "jeija_pressure_plate_stone_off.png", paramtype = "light", is_ground_content = true, - walkable = false, + walkable = true, selection_box = { type = "fixed", fixed = {-0.45, -0.5, -0.45, 0.45, -0.45, 0.45}, @@ -107,7 +107,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", { tile_images = {"jeija_pressure_plate_stone_on.png"}, paramtype = "light", is_ground_content = true, - walkable = false, + walkable = true, selection_box = { type = "fixed", fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45}, diff --git a/mesecons_textures/textures/jeija_wall_button_off.png b/mesecons_textures/textures/jeija_wall_button_off.png Binary files differindex fadf3f3..0e3ff25 100644 --- a/mesecons_textures/textures/jeija_wall_button_off.png +++ b/mesecons_textures/textures/jeija_wall_button_off.png diff --git a/mesecons_textures/textures/jeija_wall_button_on.png b/mesecons_textures/textures/jeija_wall_button_on.png Binary files differindex 5d5f822..1d97464 100644 --- a/mesecons_textures/textures/jeija_wall_button_on.png +++ b/mesecons_textures/textures/jeija_wall_button_on.png diff --git a/mesecons_textures/textures/jeija_wall_button_sides.png b/mesecons_textures/textures/jeija_wall_button_sides.png Binary files differnew file mode 100644 index 0000000..9b79b57 --- /dev/null +++ b/mesecons_textures/textures/jeija_wall_button_sides.png diff --git a/mesecons_whiskers75/init.lua b/mesecons_whiskers75/init.lua index 15e4785..584e9f3 100644 --- a/mesecons_whiskers75/init.lua +++ b/mesecons_whiskers75/init.lua @@ -5,14 +5,25 @@ minetest.register_node("mesecons_whiskers75:andblock", { description = "AND block", - drawtype = "raillike", - tile_images = {"whiskers75andblock.png"}, + drawtype = "nodebox", + tiles = { + "whiskers75_andblock_top.png", + "whiskers75_andblock_sides.png" + }, inventory_image = {"whiskers75andblock.png"}, sunlight_propagates = true, paramtype = 'light', walkable = true, groups = {dig_immediate=2}, material = minetest.digprop_constanttime(1.0), + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}, + }, + node_box = { + type = "fixed", + fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}, + }, }) minetest.register_on_punchnode(function(pos, node, puncher) diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_sides.png b/mesecons_whiskers75/textures/whiskers75_andblock_sides.png Binary files differnew file mode 100644 index 0000000..ffabb6c --- /dev/null +++ b/mesecons_whiskers75/textures/whiskers75_andblock_sides.png diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_top.png b/mesecons_whiskers75/textures/whiskers75_andblock_top.png Binary files differnew file mode 100644 index 0000000..1b8df25 --- /dev/null +++ b/mesecons_whiskers75/textures/whiskers75_andblock_top.png diff --git a/mesecons_whiskers75/textures/whiskers75andblock.png b/mesecons_whiskers75/textures/whiskers75andblock.png Binary files differdeleted file mode 100644 index 63fc07a..0000000 --- a/mesecons_whiskers75/textures/whiskers75andblock.png +++ /dev/null |